cxzl25 opened a new issue, #1638:
URL: https://github.com/apache/auron/issues/1638

   **Describe the bug**
   
   ORC timestamp `0001-01-01 00:00:00`
   
   ```java
   Caused by: java.lang.RuntimeException: poll record batch error: Execution 
error: native execution panics: Execution error: Execution error: 
output_with_sender[Shuffle] error: Execution error: output_with_sender[Agg] 
error: Execution error: output_with_sender[Agg]: output() returns error: 
Execution error: Execution error: output_with_sender[Project]: output() returns 
error: Execution error: Execution error: output_with_sender[OrcScan]: output() 
returns error: Arrow error: External error: External error: Overflow while 
decoding timestamp (seconds=-62135798400, nanoseconds=0) to Nanosecond
        at org.apache.spark.sql.auron.JniBridge.nextBatch(Native Method)
        at 
org.apache.spark.sql.auron.AuronCallNativeWrapper$$anon$1.hasNext(AuronCallNativeWrapper.scala:86)
        at 
org.apache.spark.util.CompletionIterator.hasNext(CompletionIterator.scala:31)
        at scala.collection.Iterator.foreach(Iterator.scala:943)
        at scala.collection.Iterator.foreach$(Iterator.scala:943)
        at 
org.apache.spark.util.CompletionIterator.foreach(CompletionIterator.scala:25)
   ```
   
   https://github.com/datafusion-contrib/orc-rust/pull/67
   
   
   
   **To Reproduce**
   
   ```sql
   create table tmp_t1_ts (c1 timestamp) stored as orc;
   insert overwrite tmp_t1_ts values (timestamp '0001-01-01 00:00:00');
   select * from tmp_t1_ts;
   ```
   
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   **Screenshots**
   <!--
   If applicable, add screenshots to help explain your problem.
   -->
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->
   


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