alamb commented on code in PR #10467: URL: https://github.com/apache/datafusion/pull/10467#discussion_r1633451584
########## datafusion/sqllogictest/test_files/csv_files.slt: ########## @@ -202,3 +202,27 @@ select * from stored_table_with_necessary_quoting; 2 f|f|f 3 g|g|g 4 h|h|h + +# Read CSV file with comments +statement ok +COPY (VALUES + ('column1,column2'), + ('#second line is a comment'), + ('2,3')) +TO 'test_files/scratch/csv_files/file_with_comments.csv' +OPTIONS ('format.delimiter' '|'); + +statement ok +CREATE EXTERNAL TABLE stored_table_with_comments ( + c1 VARCHAR, + c2 VARCHAR +) STORED AS CSV +LOCATION 'test_files/scratch/csv_files/file_with_comments.csv' +OPTIONS ('format.comment' '#', + 'format.delimiter' ','); + +query TT +SELECT * from stored_table_with_comments; Review Comment: 👍 Love it -- 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 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