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

   ### Describe the bug
   
   ```sql
   CREATE TABLE test (vendor_id INT)
   SELECT * FROM test ORDER BY by app_id
   ```
   ```rust
   Fails with DataFusion error: SanityCheckPlan caused by Error during 
planning: Plan: [\"SortExec: expr=[vendor_id@0 ASC NULLS LAST], 
preserve_partitioning=[false]\", \"  DataSourceExec: file_groups={0 groups: 
[]}, projection=[vendor_id], file_type=parquet\"] does not satisfy distribution 
requirements: SinglePartition. Child-0 output partitioning: 
UnknownPartitioning(0)
   ```
   
   ### To Reproduce
   
   ```sql
   CREATE TABLE test (vendor_id INT)
   SELECT * FROM test ORDER BY by app_id
   ```
   
   ### Expected behavior
   
   Return empty records batch
   
   ### 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