mapleFU commented on code in PR #38885:
URL: https://github.com/apache/arrow/pull/38885#discussion_r1411644279
##########
cpp/src/arrow/dataset/dataset_writer_test.cc:
##########
@@ -277,6 +277,37 @@ TEST_F(DatasetWriterTestFixture, MaxRowsOneWrite) {
{"testdir/chunk-3.arrow", 30, 5}});
}
+TEST_F(DatasetWriterTestFixture, MaxRowsOneWrite2) {
+ // GH-38884: This test is to make sure that the writer can handle
+ // throttle resources in `WriteRecordBatch`.
+
+ // CalculateMaxRowsStaged will make at least 1 << 23 rows for
+ // `rows_in_flight` throttle. So we set the limit to 1 << 23.
+ constexpr auto FILE_SIZE_LIMIT = static_cast<uint64_t>(1 << 23);
Review Comment:
Oh I made it wrong here. It easier than I expected.
--
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]