You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "bvolpato (via GitHub)" <gi...@apache.org> on 2025/09/19 02:49:49 UTC

[I] Time literal support for Substrait [datafusion]

bvolpato opened a new issue, #17654:
URL: https://github.com/apache/datafusion/issues/17654

   ### Is your feature request related to a problem or challenge?
   
   Substrait consumer/producer don't currently support time literals.
   
   For example:
   ```sql
   SELECT TIME '12:34:56.789123';
   ```
   
   This works just fine on [datafusion-fiddle](https://datafusion-fiddle.vercel.app?q=eyJzdGF0ZW1lbnQiOiJTRUxFQ1QgVElNRSAnMTI6MzQ6NTYuNzg5MTIzJyBhcyB0aW1lX2NvbCIsImRpc3RyaWJ1dGVkIjpmYWxzZX0=)
   
   But in the Substrait path:
   ```rust
   #[tokio::test]
   async fn roundtrip_literal_time() -> Result<()> {
       roundtrip("SELECT TIME '12:34:56.789123' as time_col from data").await
   }
   ```
   
   We get
   ```
   Error: NotImplemented("Unsupported literal: Time64Nanosecond(\"45296789123000\")")
   ```
   
   
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _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@datafusion.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Time literal support for Substrait [datafusion]

Posted by "bvolpato (via GitHub)" <gi...@apache.org>.
bvolpato commented on issue #17654:
URL: https://github.com/apache/datafusion/issues/17654#issuecomment-3310327320

   take


-- 
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@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Time literal support for Substrait [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #17654: Time literal support for Substrait
URL: https://github.com/apache/datafusion/issues/17654


-- 
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@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org