pitrou commented on a change in pull request #10321: URL: https://github.com/apache/arrow/pull/10321#discussion_r639830246
########## File path: cpp/src/arrow/csv/reader.cc ########## @@ -319,11 +319,12 @@ class ReaderMixin { public: ReaderMixin(io::IOContext io_context, std::shared_ptr<io::InputStream> input, const ReadOptions& read_options, const ParseOptions& parse_options, - const ConvertOptions& convert_options) + const ConvertOptions& convert_options, bool count_rows) : io_context_(std::move(io_context)), read_options_(read_options), parse_options_(parse_options), convert_options_(convert_options), + num_rows_seen_(count_rows ? 1 : -1), Review comment: Having separate member variables would be clearer IMO. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org