You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -33,14 +33,18 @@ Thank you to all who have contributed!
33
33
### Changed
34
34
- Change `StaticType.AnyOfType`'s `.toString` to not perform `.flatten()`
35
35
- Change modeling of `COALESCE` and `NULLIF` to dedicated nodes in logical plan
36
+
- Function resolution logic: Now the function resolver would match all possible candidate (based on if the argument can be coerced to the Signature parameter type). If there are multiple match it will first attempt to pick the one requires the least cast, then pick the function with the highest precedence.
37
+
-**Behavioral change**: The COUNT aggregate function now returns INT64.
36
38
37
39
### Deprecated
38
40
- The current SqlBlock, SqlDialect, and SqlLayout are marked as deprecated and will be slightly changed in the next release.
41
+
- Deprecates constructor and properties `variableName` and `caseSensitive` of `org.partiql.planner.PlanningProblemDetails.UndefinedVariable`
42
+
in favor of newly added constructor and properties `name` and `inScopeVariables`.
39
43
40
44
### Fixed
41
45
-`StaticType.flatten()` on an `AnyOfType` with `AnyType` will return `AnyType`
42
46
- Updates the default `.sql()` method to use a more efficient (internal) printer implementation.
43
-
47
+
- Fixes aggregations of attribute references to values of union types. This fix also allows for proper error handling by passing the UnknownAggregateFunction problem to the ProblemCallback. Please note that, with this change, the planner will no longer immediately throw an IllegalStateException for this exact scenario.
44
48
45
49
### Removed
46
50
@@ -51,6 +55,7 @@ Thank you to all who have contributed!
val humanReadableName = PlanUtils.identifierToString(name)
36
+
"Variable $humanReadableName does not exist in the database environment and is not an attribute of the following in-scope variables $inScopeVariables." +
37
+
quotationHint(isSymbolAndCaseSensitive(name))
38
+
}
39
+
) {
40
+
41
+
@Deprecated("This will be removed in a future major version release.", replaceWith =ReplaceWith("name"))
42
+
val variableName:String=when (name) {
43
+
isIdentifier.Symbol-> name.symbol
44
+
isIdentifier.Qualified->when (name.steps.size) {
45
+
0-> name.root.symbol
46
+
else-> name.steps.last().symbol
33
47
}
48
+
}
49
+
50
+
@Deprecated("This will be removed in a future major version release.", replaceWith =ReplaceWith("name"))
0 commit comments