You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "itsjunetime (via GitHub)" <gi...@apache.org> on 2024/10/14 20:33:37 UTC
[I] Add `CURRENT_TIMESTAMP` function [datafusion]
itsjunetime opened a new issue, #12925:
URL: https://github.com/apache/datafusion/issues/12925
### Is your feature request related to a problem or challenge?
Many other databases, such as Postgres, support the common standard function `CURRENT_TIMESTAMP`, but datafusion does not, as of yet. Support for this function was also mentioned in #251, but not implemented there either. It would be nice to have this function to improve compatibility and make it easier for people who are used to having this function to use datafusion.
### Describe the solution you'd like
This should be as easy as adding an override for the `aliases` function in the `impl ScalarUDFImpl for CurrentTimeFunc` block. It could just return `&["CURRENT_TIMESTAMP".into()]`, afaict.
### Describe alternatives you've considered
None
### Additional context
Supporting `CURRENT_TIMESTAMP` as an alias for `now()` is even mentioned in the documentation for the `aliases` function in the `ScalarUDFImpl` trait definition, so I worry that I am missing some context regarding why `CURRENT_TIMESTAMP` isn't supported in datafusion yet, but if I am, I can't tell what it is.
--
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] Add `CURRENT_TIMESTAMP` function [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #12925: Add `CURRENT_TIMESTAMP` function
URL: https://github.com/apache/datafusion/issues/12925
--
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] Add `CURRENT_TIMESTAMP` function [datafusion]
Posted by "Omega359 (via GitHub)" <gi...@apache.org>.
Omega359 commented on issue #12925:
URL: https://github.com/apache/datafusion/issues/12925#issuecomment-2412621607
Good first issue.
--
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] Add `CURRENT_TIMESTAMP` function [datafusion]
Posted by "jonathanc-n (via GitHub)" <gi...@apache.org>.
jonathanc-n commented on issue #12925:
URL: https://github.com/apache/datafusion/issues/12925#issuecomment-2414659112
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