avantgardnerio opened a new issue, #3729:
URL: https://github.com/apache/arrow-datafusion/issues/3729

   **Describe the bug**
   
   When running TPC-H query 1, this is the result:
   
   ```
   2022-10-05 14:42:16,272 [2560011]   WARN - 
#c.i.d.d.BaseDatabaseErrorHandler$UnknownErrorInfo - Error while executing SQL 
"select l_returnflag, l_linestatus, sum(l_quantity) as sum_qty, 
sum(l_extendedprice) as sum_base_price,
       sum(l_extendedprice * (1 - l_discount)) as sum_disc_price,
       sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) as sum_charge, 
avg(l_quantity) as avg_qty,
       avg(l_extendedprice) as avg_price, avg(l_discount) as avg_disc, count(*) 
as count_order
   from lineitem
   where l_shipdate <= date '1998-09-02'
   group by l_returnflag, l_linestatus
   order by l_returnflag, l_linestatus": Error executing plan: Error planning 
job l6OLwA0: DataFusionError(Internal("The type of Timestamp(Nanosecond, None) 
<= Date32 of binary physical should be same"))
   java.sql.SQLException: Error while executing SQL "select l_returnflag, 
l_linestatus, sum(l_quantity) as sum_qty, sum(l_extendedprice) as 
sum_base_price,
       sum(l_extendedprice * (1 - l_discount)) as sum_disc_price,
       sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) as sum_charge, 
avg(l_quantity) as avg_qty,
       avg(l_extendedprice) as avg_price, avg(l_discount) as avg_disc, count(*) 
as count_order
   from lineitem
   where l_shipdate <= date '1998-09-02'
   group by l_returnflag, l_linestatus
   order by l_returnflag, l_linestatus": Error executing plan: Error planning 
job l6OLwA0: DataFusionError(Internal("The type of Timestamp(Nanosecond, None) 
<= Date32 of binary physical should be same"))
   ```
   
   **To Reproduce**
   
   Run TPC-H query 1.
   
   **Expected behavior**
   
   A result is returned.


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