r4ntix commented on issue #5942:
URL: 
https://github.com/apache/arrow-datafusion/issues/5942#issuecomment-1509859218

   > > I think `l_quantity` should be of type `Decimal`. I checked the schema 
generated by SparkSQL tpch tool.
   > 
   > It is also what is specified in the TPC-H document 
[pdf](https://www.tpc.org/tpc_documents_current_versions/pdf/tpc-h_v2.17.1.pdf):
   > 
   > Column Name        Datatype Requirements
   > L_QUANTITY decimal
   
   In the TPC-H documentation, `l_quantity` is defined as a `decimal` type.
   However, duckdb incorrectly defines it as an `INTEGER` type, as can be seen 
in the duckdb source code: 
https://github.com/duckdb/duckdb/blob/eaf507009fd06573d74cc5742a8643481883a0ff/extension/tpch/dbgen/dbgen.cpp#L405-L415


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