mapleFU opened a new pull request, #56:
URL: https://github.com/apache/parquet-testing/pull/56
Generate script: (with pyarrow 16.1.0 )
```python
>>> import pyarrow as pa
>>> import pyarrow.parquet as pq
>>> sorting_columns = (pq.SortingColumn(column_index=0, descending=True,
nulls_first=True), pq.SortingColumn(column_index=1, descending=False))
>>> table = pa.table({'a': [null, 2, 1], 'b': ['a', 'b', 'c']})
>>> pq.write_table(table, "sorting_columns.parquet",
sorting_columns=sorting_columns)
```
File Metadata:
```
{
"Version": "2.6",
"CreatedBy": "parquet-cpp-arrow version 16.1.0",
"TotalRows": "3",
"NumberOfRowGroups": "1",
"NumberOfRealColumns": "2",
"NumberOfColumns": "2",
"Columns": [
{ "Id": "0", "Name": "a", "PhysicalType": "INT64", "ConvertedType":
"NONE", "LogicalType": {"Type": "None"} },
{ "Id": "1", "Name": "b", "PhysicalType": "BYTE_ARRAY",
"ConvertedType": "UTF8", "LogicalType": {"Type": "String"} }
],
"RowGroups": [
{
"Id": "0", "TotalBytes": "166", "TotalCompressedBytes": "174",
"SortColumns": ["{"column_idx":0, "descending":1, "nulls_first": 1},
"{"column_idx":1, "descending":0, "nulls_first": 0}], "Rows": "3",
"ColumnChunks": [
{"Id": "0", "Values": "3", "StatsSet": "True", "Stats":
{"NumNulls": "1", "Max": "2", "Min": "1" },
"Compression": "SNAPPY", "Encodings": "PLAIN(DICT_PAGE)
RLE_DICTIONARY", "UncompressedSize": "100", "CompressedSize": "104" },
{"Id": "1", "Values": "3", "StatsSet": "True", "Stats":
{"NumNulls": "0", "Max": "c", "Min": "a" },
"Compression": "SNAPPY", "Encodings": "PLAIN(DICT_PAGE)
RLE_DICTIONARY", "UncompressedSize": "66", "CompressedSize": "70" }
]
}
]
}
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]