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 2022/07/11 15:52:36 UTC
[GitHub] [arrow-datafusion] andygrove opened a new issue, #2871: Implement `from_unixtime` function
andygrove opened a new issue, #2871:
URL: https://github.com/apache/arrow-datafusion/issues/2871
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
In the SO post https://stackoverflow.com/questions/72888852/extract-year-month-day-from-unix-timestamp-column-in-rust-datafusion-dataframe/72941102#72941102 the user needed help with translating a unixtime to a timestamp. The solution now is to use a cast and this is verbose and not obvious. It would be nice to have a specific `from_unixtime` function.
**Describe the solution you'd like**
See https://spark.apache.org/docs/2.3.0/api/sql/index.html#from_unixtime for Spark's version
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
--
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
[GitHub] [arrow-datafusion] waitingkuo commented on issue #2871: Implement `from_unixtime` function
Posted by GitBox <gi...@apache.org>.
waitingkuo commented on issue #2871:
URL: https://github.com/apache/arrow-datafusion/issues/2871#issuecomment-1186212707
@comphead i finally figured out how to add a new function, thank you~
@andygrove
the current implementation only support Int64 as input value, should we support floating number and utf-8 as well?
the pyspark version has the second argument to render user preferred time format, should we support that in this pr?
--
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
[GitHub] [arrow-datafusion] alamb closed issue #2871: Implement `from_unixtime` function
Posted by GitBox <gi...@apache.org>.
alamb closed issue #2871: Implement `from_unixtime` function
URL: https://github.com/apache/arrow-datafusion/issues/2871
--
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
[GitHub] [arrow-datafusion] waitingkuo commented on issue #2871: Implement `from_unixtime` function
Posted by GitBox <gi...@apache.org>.
waitingkuo commented on issue #2871:
URL: https://github.com/apache/arrow-datafusion/issues/2871#issuecomment-1180596336
@andygrove
would you mind giving me some hint? I'm still new to this project. thanks~
Is this the right place to begin with [https://github.com/apache/arrow-datafusion/blob/master/datafusion/expr/src/built_in_function.rs#L150](https://github.com/apache/arrow-datafusion/blob/master/datafusion/expr/src/built_in_function.rs#L150) ?
--
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
[GitHub] [arrow-datafusion] comphead commented on issue #2871: Implement `from_unixtime` function
Posted by GitBox <gi...@apache.org>.
comphead commented on issue #2871:
URL: https://github.com/apache/arrow-datafusion/issues/2871#issuecomment-1180657519
@waitingkuo https://github.com/apache/arrow-datafusion/blob/master/CONTRIBUTING.md#how-to-add-a-new-scalar-function this can be some start for you
--
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
[GitHub] [arrow-datafusion] comphead commented on issue #2871: Implement `from_unixtime` function
Posted by GitBox <gi...@apache.org>.
comphead commented on issue #2871:
URL: https://github.com/apache/arrow-datafusion/issues/2871#issuecomment-1180659591
https://github.com/apache/arrow-datafusion/pull/2324 please check this PR also
--
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
[GitHub] [arrow-datafusion] waitingkuo commented on issue #2871: Implement `from_unixtime` function
Posted by GitBox <gi...@apache.org>.
waitingkuo commented on issue #2871:
URL: https://github.com/apache/arrow-datafusion/issues/2871#issuecomment-1180665947
thank you @comphead !
--
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