wudidapaopao commented on PR #25536:
URL: https://github.com/apache/datafusion/pull/25536#issuecomment-5766357354

   > Could you please provide some instructions on how to reproduce these 
numbers?
   
   I converted the four non-nullable `Decimal128(15,2)` columns used by `Q1` to 
`Float64` starting from the existing `TPC-H SF1` Parquet data. And then I ran 
the unchanged `Q1` locally on a 14-core Apple Silicon Mac.
   ```Python
   import pyarrow as pa
   import pyarrow.compute as pc
   import pyarrow.parquet as pq
   source = "..."
   destination = "..."
   table = pq.read_table(source)
   for name in [
       "l_quantity",
       "l_extendedprice",
       "l_discount",
       "l_tax",
   ]:
       index = table.schema.get_field_index(name)
       table = table.set_column(
           index,
           pa.field(name, pa.float64(), nullable=False),
           pc.cast(table.column(index), pa.float64()),
       )
   pq.write_table(
       table,
       destination,
       compression="zstd",
       compression_level=1,
       row_group_size=131072,
   )
   ```


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

Reply via email to