Slackbot
12/07/2022, 6:52 PMRyan Darling
12/07/2022, 6:57 PMBen Krug
12/07/2022, 11:09 PMGian Merlino
12/07/2022, 11:35 PMto_parquet call does the compression inside the parquet file, not as a regular gzip wrapperGian Merlino
12/07/2022, 11:36 PMmapping.parquet instead of mapping.parquet.gz. this is more correct since it's really parquet format (with gzip inside), not gzip format. if the extension is .parquet then druid will load it using the parquet reader without trying to gunzip it first, and i tshould workRyan Darling
12/07/2022, 11:38 PMGian Merlino
12/07/2022, 11:47 PMRyan Darling
12/08/2022, 2:37 PMdf = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]})
>>> df.to_parquet('df.parquet.gzip',
... compression='gzip')
>>> pd.read_parquet('df.parquet.gzip')Ryan Darling
12/08/2022, 2:38 PMGian Merlino
12/08/2022, 9:35 PMGian Merlino
12/08/2022, 9:35 PM.gz, so .gzip would be treated as a non-gzip-compressed fileGian Merlino
12/08/2022, 9:35 PM.parquet and .parquet.gzip are identical (both are treated as a parquet file) — whereas .parquet.gz is treated as a parquet file inside a gzip archiveRyan Darling
12/08/2022, 10:46 PM