You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/07/29 20:09:47 UTC

[GitHub] [arrow-datafusion] alamb commented on issue #194: Can't subtract timestamps

alamb commented on issue #194:
URL: https://github.com/apache/arrow-datafusion/issues/194#issuecomment-889425187


   BTW there is a (fairly nasty) workaround to cast to an integer and do the math that way
   
   So for example, rather than 
   
   ```sql
   select now() - interval '10 minutes'
   ```
   
   You can write something like
   
   ```sql
    select CAST(now() as bigint) - 10*60*(1000000000) 
   ```
   
   Which is definitely not very pretty 😢  but it does work


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