implement GREATEST and LEAST functions#2921
Conversation
|
|
SummaryThis run exercised SQL query behavior for computed expressions across normal query flows and edge cases, including numeric comparison functions, ordering behavior, and default column-name formatting. Overall health is mixed: baseline expression handling looked stable in some paths, but key comparison-function behavior remains broken in core query execution. Not safe to merge yet — this PR is tied to multiple unresolved functional failures, including a high-severity break in core numeric comparison behavior and an additional medium-severity failure in the same query path, which makes common query patterns unreliable. There are also separate non-attributable column-label formatting issues that are worth tracking but are not the merge driver for this change. Tests run by ItoAdditional Findings DetailsThese findings are unrelated to the current changes but were observed during testing. 🟡 Unaliased reserved function column names leak quotes
Evidence Package⚪ Unaliased computed expression still returns quoted reserved-keyword headers
Evidence PackageTip Reply with @itoqa to send us feedback on this test run. |
Hydrocharged
left a comment
There was a problem hiding this comment.
I think you may have forgotten to include the expressions
| if strings.HasPrefix(inputExpression, "\"") && strings.HasSuffix(inputExpression, "\"") { | ||
| inputExpression = inputExpression[1 : len(inputExpression)-1] | ||
| } |
There was a problem hiding this comment.
What is this for? I don't see anything in the tests that exercises this
There was a problem hiding this comment.
This is for the column name that is displayed, e.g."greatest". It's tested as ExpectedColNames
| }, nil | ||
| case "greatest": | ||
| return vitess.InjectedExpr{ | ||
| Expression: &pgexprs.Greatest{}, |
There was a problem hiding this comment.
This doesn't seem to exist? And neither does Least
There was a problem hiding this comment.
Oh sorry, I didn't add the new file 😨 ( I thought I lost the changes, but luckily I found it in my stash )
|
Diff SummaryThis run covered core SQL behavior around GREATEST/LEAST in regular reads, filtering, and update-returning flows, plus mixed-type handling and invalid-input paths. The application behavior was broadly stable across happy-path computation, boundary/error handling, and metadata naming checks. Safe to merge — there are no regressions, new failures, or previously flagged still-failing issues attributable to this PR, and the exercised behaviors remained stable. The only failure is a minor unrelated additional finding, which is a follow-up item rather than a merge blocker. Tests run by ItoAdditional Findings DetailsThese findings are unrelated to the current changes but were observed during testing. ⚪ Wrapped subquery field name re-quotes normalized function labels
Evidence PackageTip Reply with @itoqa to send us feedback on this test run. |
|


No description provided.