eadwright edited a comment on pull request #902:
URL: https://github.com/apache/parquet-mr/pull/902#issuecomment-844246494


   I've tweaked the python to create a test file which Java can't read. The 
python can now run fine on a 16GB machine.
   
   ```
   import pandas as pd
   import numpy as np
   rand_array = np.random.rand(48000000, 3)
   df = pd.DataFrame(rand_array, columns=["number1", "number2", "number3"])
   df['string1'] = df["number1"].astype(str) + df["number2"].astype(str) + 
df["number3"].astype(str)
   df.drop(["number1", "number2", "number3"], axis=1, inplace=True)
   df.to_parquet("random.parquet", compression="snappy", engine="pyarrow", 
**{"row_group_size": 47800000})
   ```
   
   It creates 48M records, 47.8M of which are in the first row group, and the 
data for the `string1` column in the first row group is about 2.1GB in size, 
over the threshold to cause the Java bug.


-- 
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:
[email protected]


Reply via email to