arthurpassos commented on code in PR #35825:
URL: https://github.com/apache/arrow/pull/35825#discussion_r1236976783


##########
cpp/src/parquet/arrow/arrow_reader_writer_test.cc:
##########
@@ -3862,6 +3919,17 @@ TEST(TestArrowReaderAdHoc, CorruptedSchema) {
   TryReadDataFile(path, ::arrow::StatusCode::IOError);
 }
 
+TEST(TestArrowParquet, LargeByteArray) {
+  auto path = test::get_data_file("chunked_string_map.parquet");
+  TryReadDataFile(path, ::arrow::StatusCode::NotImplemented);
+  ArrowReaderProperties reader_properties;
+  reader_properties.set_use_large_binary_variants(true);
+  reader_properties.set_read_dictionary(0, false);

Review Comment:
   ```
   import pyarrow as pa
   import pyarrow.parquet as pq
   
   arr = pa.array([[("a" * 2**30, 1)]], type = pa.map_(pa.string(), pa.int32()))
   arr = pa.chunked_array([arr, arr])
   tab = pa.table({ "arr": arr, "dict_arr": arr})
   
   pq.write_table(tab, "test.parquet", compression='BROTLI', 
use_dictionary=['dict_arr'])
   ```
   
   I have written the above script, but I am not sure it's doing what it's 
supposed to do. Is there a way to verify it? `parquet-tools inspect` does not 
tell me much.
   
   @mapleFU @wgtmac 



-- 
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]

Reply via email to