pepijnve opened a new issue, #17411:
URL: https://github.com/apache/datafusion/issues/17411

   ### Describe the bug
   
   At 
https://datafusion.apache.org/user-guide/sql/ddl.html#example-with-order-clause 
the documentation states
   
   > This applies even if the expression used for sorting is complex, allowing 
for greater flexibility.
   
   and then an example is given using
   
   ```
   WITH ORDER (c2 ASC, c5 + c8 DESC NULL FIRST)
   ```
   
   If you actually try to run this you get an error stating
   
   ```
   Expected single column reference in sort_order[0][0], got c5 + c8
   ```
   
   I've traced the origin of this check all the way back to a change by @alamb 
for #4170
   
   ### To Reproduce
   
   Run a query on the table from the example at 
https://datafusion.apache.org/user-guide/sql/ddl.html#example-with-order-clause
   
   ### Expected behavior
   
   The example works
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to