-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXTRACT(EPOCH from column) #2785
Comments
Here is an example of how other parts were added: #1974 This may require adding |
I have a draft in #2786 ; I tried it out with datafusion-cli Next, I'll:
|
BTW here is a nice contained test case:
I think this would be a good first issue |
Hello Andrew,
I need to, and want to help datafusion project.
I think it is a good start for me.
I am new to Rust language and this will be the first open source support
for me.
I am familiar with software engineering and I have read Andrew Grove's book.
Best Regards,
Toprak Deniz
Andrew Lamb ***@***.***>, 12 Oca 2023 Per, 00:01 tarihinde
şunu yazdı:
… BTW here is a nice contained test case:
❯ select extract(epoch from '1825-08-29T07:29:01.256'::timestamp);
ArrowError(ExternalError(Execution("Date part 'EPOCH' not supported")))
I think this would be a good first issue
—
Reply to this email directly, view it on GitHub
<#2785 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKZX6ZCZX3DRUBRTDJGPHP3WR4NRLANCNFSM5ZYEUSKA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Welcome to the community @toprakdeniz ! We have many first time Rust enthusiasts work on DataFusion and look forward to helping get this feature done. |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Datafusion supports a few date parts like "year" or "seconds" in the
EXTRACT
operator.Postgres offers a few more. In particular it offers an
EPOCH
date part which extracts the number of seconds since 1970-01-01 00:00:00-00 (can be negative).See https://www.postgresql.org/docs/8.1/functions-datetime.html
My particular use case is using pre-existing grafana postgres plugin, which crafts queries with such a construct. But I think it would be generally useful to support converting a timestamp to a unix epoch.
Describe the solution you'd like
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: