mustafasrepo opened a new issue, #6850:
URL: https://github.com/apache/arrow-datafusion/issues/6850

   ### Describe the bug
   
   In `explain.slt` file we create a table with following statement
   ```sql
   statement ok
   CREATE EXTERNAL TABLE aggregate_test_100_with_order (
           c1  VARCHAR NOT NULL,
           c2  TINYINT NOT NULL,
           c3  SMALLINT NOT NULL,
           c4  SMALLINT NOT NULL,
           c5  INTEGER NOT NULL,
           c6  BIGINT NOT NULL,
           c7  SMALLINT NOT NULL,
           c8  INT NOT NULL,
           c9  INT UNSIGNED NOT NULL,
           c10 BIGINT UNSIGNED NOT NULL,
           c11 FLOAT NOT NULL,
           c12 DOUBLE NOT NULL,
           c13 VARCHAR NOT NULL
       )
   STORED AS CSV
   WITH HEADER ROW
   WITH ORDER (c1 ASC)
   LOCATION '../../testing/data/csv/aggregate_test_100.csv';
   ```
   It says that, table is ordered according to `c1 ASC`. However, file at path 
`../../testing/data/csv/aggregate_test_100.csv` is not ordered. Since tests 
with this table checks physical plans, everything works as expected. 
   However, if we were to run query using this table, we would receive wrong 
results because contract doesn't hold.
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   I would like to have a new variant of the csv file 
(`../../testing/data/csv/aggregate_test_100.csv`), where `c1 ASC` is satisfied 
in the file.
   
   
   ### 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]

Reply via email to