all I'm working with apache arrow now.
When reading csv file with arrow::csv::TableReader::Read function, I want to read this file as a file with no header.
But, it reads csv file and treat first row as csv header(data field). Is there any options to read csv file with no header?
Thanks
Check out the
ParserOptions
It can be defined as third argument in
TableReader::Make(...)
.Check the documentation: https://arrow.apache.org/docs/cpp/namespacearrow_1_1csv.html
and these test files: https://github.com/apache/arrow/tree/3cf8f355e1268dd8761b99719ab09cc20d372185/cpp/src/arrow/csv
You can't at the moment. You'll got an error if header_rows == 0:
(https://github.com/apache/arrow/blob/3cf8f355e1268dd8761b99719ab09cc20d372185/cpp/src/arrow/csv/reader.cc)