-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opt: internal error in optbuilder #49240
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-sqlsmith
Comments
yuzefovich
added
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-sqlsmith
labels
May 19, 2020
Here is another reproduction:
|
Reduced:
|
Sure! |
Anthuang
added a commit
to Anthuang/cockroach
that referenced
this issue
May 19, 2020
Currently, if an ordered-set aggregate contains no WITHIN GROUP clause or no single ORDER BY column, no error is thrown and thus we end up with a panic when we try to access the missing ORDER BY column. Instead, throw a syntax error to the user. Resolves: cockroachdb#49240 Release note: None
craig bot
pushed a commit
that referenced
this issue
May 20, 2020
49287: opt: throw error if ordered-set aggregate is malformed r=RaduBerinde a=Anthuang Currently, if an ordered-set aggregate contains no WITHIN GROUP clause or no single ORDER BY column, no error is thrown and thus we end up with a panic when we try to access the missing ORDER BY column. Instead, throw a syntax error to the user. Resolves: #49240 Release note: None Co-authored-by: Anthony Huang <anthuang@umich.edu>
craig bot
pushed a commit
that referenced
this issue
May 21, 2020
49287: opt: throw error if ordered-set aggregate is malformed r=RaduBerinde a=Anthuang Currently, if an ordered-set aggregate contains no WITHIN GROUP clause or no single ORDER BY column, no error is thrown and thus we end up with a panic when we try to access the missing ORDER BY column. Instead, throw a syntax error to the user. Resolves: #49240 Release note: None Co-authored-by: Anthony Huang <anthuang@umich.edu>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-sqlsmith
Extracted from #47397.
results in
The text was updated successfully, but these errors were encountered: