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

   ### Describe the bug
   
   test datasource::file_format::csv::tests::test_csv_parallel_one_col::case_1 
... ok
   test datasource::file_format::csv::tests::test_csv_parallel_one_col::case_2 
... ok
   test datasource::file_format::csv::tests::test_csv_parallel_one_col::case_3 
... ok
   test datasource::file_format::csv::tests::test_csv_parallel_one_col::case_4 
... ok
   test datasource::file_format::csv::tests::test_csv_parallel_one_col::case_5 
... ok
   thread 
'datasource::file_format::csv::tests::test_csv_parallel_one_col::case_6' 
panicked at datafusion\core\src\datasource\file_format\csv.rs:1267:9:
   assertion `left == right` failed
     left: 30
    right: 20
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   test datasource::file_format::csv::tests::test_csv_parallel_one_col::case_6 
... FAILED
   
   failures:
   
   failures:
   failures:
   failures:
       datasource::file_format::csv::tests::test_csv_parallel_one_col::case_6
   failures:
       datasource::file_format::csv::tests::test_csv_parallel_one_col::case_6
   
   test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 708 filtered 
out; finished in 0.11s
   
   error: test failed, to rerun pass `--lib`
   
   D:\workspace\rust\datafusion\datafusion\core>
   
   
   failures:
       datasource::file_format::csv::tests::test_csv_parallel_one_col::case_6
   
   test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 708 filtered 
out; finished in 0.11s
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   I notice that, below code, which gets file_size of `one_col.csv` by 
target_os. I don't think this is right.
   
https://github.com/apache/datafusion/blob/5da7ab300215c44ca5dc16771091890de22af99b/datafusion/core/src/datasource/file_format/csv.rs#L1254-L1258
   Because `tests/data/one_col.csv` is save as `lf` instead of `crlf`, won't 
apprear `\r\n`. I got file info in windows machine. according file info, this 
file is 20bytes.
   ```cmd
    Directory of D:\workspace\rust\datafusion\datafusion\core\tests\data
   
   2024/06/19  21:40                20 one_col.csv
                  1 File(s)             20 bytes
                  0 Dir(s)   4,626,849,792 bytes free
   ```


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to