File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed
partiql-planner/src/main/kotlin/org/partiql/planner Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,9 @@ Thank you to all who have contributed!
28
28
## [ Unreleased]
29
29
30
30
### Added
31
- - Adds the ability to define a user-defined-function in ConnectorMetadata
32
- - Move ConnectorMetadata map from PartiQLPlanner to PartiQLPlanner.Session for planner re-use.
31
+ - Adds the ability to define a user-defined-function in ` ConnectorMetadata `
32
+ - Move ` ConnectorMetadata ` map from ` PartiQLPlanner ` to ` PartiQLPlanner.Session ` for planner re-use.
33
+ - Deprecates 2 APIs in ` org.partiql.planner.PartiQLPlannerBuilder ` in favor of using the ConnectorMetadata map in ` PartiQLPlanner.Session ` .
33
34
34
35
### Changed
35
36
@@ -44,6 +45,7 @@ Thank you to all who have contributed!
44
45
### Contributors
45
46
Thank you to all who have contributed!
46
47
- @rchowell
48
+ - @johnedquinn
47
49
48
50
## [ 0.14.0-alpha] - 2023-12-15
49
51
Original file line number Diff line number Diff line change 1
1
package org.partiql.planner
2
2
3
+ import org.partiql.spi.connector.ConnectorMetadata
4
+
3
5
/* *
4
6
* PartiQLPlannerBuilder is used to programmatically construct a [PartiQLPlanner] implementation.
5
7
*
@@ -38,4 +40,29 @@ public class PartiQLPlannerBuilder {
38
40
public fun addPasses (vararg passes : PartiQLPlannerPass ): PartiQLPlannerBuilder = this .apply {
39
41
this .passes.addAll(passes)
40
42
}
43
+
44
+ /* *
45
+ * Java style method for assigning a Catalog name to [ConnectorMetadata].
46
+ *
47
+ * @param catalog
48
+ * @param metadata
49
+ * @return
50
+ */
51
+ @Deprecated(" This will be removed in v0.15.0+." , ReplaceWith (" Please use org.partiql.planner.PartiQLPlanner.Session" ))
52
+ public fun addCatalog (catalog : String , metadata : ConnectorMetadata ): PartiQLPlannerBuilder = this
53
+
54
+ /* *
55
+ * Kotlin style method for assigning Catalog names to [ConnectorMetadata].
56
+ *
57
+ * @param catalogs
58
+ * @return
59
+ */
60
+ @Deprecated(" This will be removed in v0.15.0+." , ReplaceWith (" Please use org.partiql.planner.PartiQLPlanner.Session" ))
61
+ public fun catalogs (vararg catalogs : Pair <String , ConnectorMetadata >): PartiQLPlannerBuilder = this
62
+
63
+ @Deprecated(" This will be removed in v0.15.0+." , ReplaceWith (" addPasses" ))
64
+ public fun passes (passes : List <PartiQLPlannerPass >): PartiQLPlannerBuilder = this .apply {
65
+ this .passes.clear()
66
+ this .passes.addAll(passes)
67
+ }
41
68
}
You can’t perform that action at this time.
0 commit comments