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

[GitHub] [arrow-datafusion] jackwener commented on issue #6596: simplify_expressions return expression with wrong type.

jackwener commented on issue #6596:
URL: https://github.com/apache/arrow-datafusion/issues/6596#issuecomment-1582112533

   ```sql
   SELECT DATE_TRUNC('MINUTE', TIMESTAMP '2022-08-03 14:38:50Z');
   
   "Projection: date_trunc(Utf8("MINUTE"), CAST(Utf8("2022-08-03 14:38:50Z") AS Timestamp(Nanosecond, None)))
     EmptyRelation"
   -->
   "Projection: TimestampSecond(1659537480, None) AS date_trunc(Utf8("MINUTE"),Utf8("2022-08-03 14:38:50Z"))
     EmptyRelation"
   ```
   
   expr type from timestamp nanosecond -> timestamp second.


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