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
#5132 added a check that made certain SQL queries error rather than give wrong results (❤️ thanks to @xiaoyong-z !)
However, the way the check is implemented is to match the pattern built by the sql planner for this kind of query. However, if the query is built directly (via a DataFrame or someone using LogicalPlanBuilder directly) it is probably incorrect to throw an error here (as they may have meant to to run the distinct before the sort for some reason)
alamb
changed the title
DISTINCT with ORDER BY error
Error "For SELECT DISTINCT, ORDER BY expressions id must appear in select list" may be over eager
Feb 11, 2023
#5132 added a check that made certain SQL queries error rather than give wrong results (❤️ thanks to @xiaoyong-z !)
However, the way the check is implemented is to match the pattern built by the sql planner for this kind of query. However, if the query is built directly (via a DataFrame or someone using LogicalPlanBuilder directly) it is probably incorrect to throw an error here (as they may have meant to to run the distinct before the sort for some reason)
cc @alamb
Originally posted by @liukun4515 in #5132 (comment)
The text was updated successfully, but these errors were encountered: