We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DISTINCT
The following query generates incorrect results -
SELECT DISTINCT order2s.`status` FROM order2s
The result for this query is -
+--------+ | status | +--------+ | 3 | | 2 | | 0 | | 1 | | 2 | | 0 | | 1 | | 3 | +--------+
The problem has been traced back to Gen4 planning. The V3 plan is as follows
{ "QueryType": "SELECT", "Original": "select distinct user.`intcol` from user", "Instructions": { "OperatorType": "Aggregate", "Variant": "Ordered", "GroupBy": "0", "Inputs": [ { "OperatorType": "Route", "Variant": "SelectScatter", "Keyspace": { "Name": "user", "Sharded": true }, "FieldQuery": "select `user`.intcol from `user` where 1 != 1", "OrderBy": "0 ASC", "Query": "select distinct `user`.intcol from `user` order by intcol asc", "Table": "`user`" } ] } }
The difference between V3 and Gen4 is as follows
- "OrderBy": "0 ASC", - "Query": "select distinct `user`.intcol from `user` order by intcol asc", + "Query": "select distinct `user`.intcol from `user`",
Steps to reproduce this issue, example:
onecase.txt
TestOneCase
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Overview of the Issue
The following query generates incorrect results -
The result for this query is -
The problem has been traced back to Gen4 planning. The V3 plan is as follows
The difference between V3 and Gen4 is as follows
Reproduction Steps
Steps to reproduce this issue, example:
onecase.txt
TestOneCase
Binary version
The text was updated successfully, but these errors were encountered: