You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Dandandan (via GitHub)" <gi...@apache.org> on 2023/10/17 07:13:20 UTC

[I] Precision loss when coercing date_part utf8 argument [arrow-datafusion]

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

   ### Describe the bug
   
   In a recent version of DataFusion 
   
   
   ```
   select date_part('second', '2020-09-08T12:00:12.12345678+00:00');
   +----------------------------------------------------------------------+
   | date_part(Utf8("second"),Utf8("2020-09-08T12:00:12.12345678+00:00")) |
   +----------------------------------------------------------------------+
   | 12.0                                                                 |
   +----------------------------------------------------------------------+
   ```
   
   Expected (I get this answer in DataFusion 28).
   
   ```
   ❯ select date_part('second', '2020-09-08T12:00:12.12345678+00:00');
   +----------------------------------------------------------------------+
   | date_part(Utf8("second"),Utf8("2020-09-08T12:00:12.12345678+00:00")) |
   +----------------------------------------------------------------------+
   | 12.12345678                                                          |
   +----------------------------------------------------------------------+
   1 row in set. Query took 0.015 seconds.
   ```
   
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Precision loss when coercing date_part utf8 argument [arrow-datafusion]

Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan closed issue #7847: Precision loss when coercing date_part utf8 argument
URL: https://github.com/apache/arrow-datafusion/issues/7847


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org