-
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
Implement current_date
Function
#3981
Comments
@alamb please assign the task to me. And let me know how to regenerate |
@tustvold I see you added instructions for installing protoc... would you mind adding the bash command you use to run it? 🙌 |
There is no command, just build the project as normal, the build script does the rest |
Hi @tustvold I have tried to build it first
If I go to prost.rs I dont see CurrentDate generated. I suppose |
Have you updated the protobuf definition in https://github.com/apache/arrow-datafusion/blob/master/datafusion/proto/proto/datafusion.proto ? |
Right, sorry, totally forgot about it! :-/ |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As we add more full featured date/time support for DataFusion users need to be able to use the current date to calculate things like "all data in the last 30 days"
Describe the solution you'd like
Support the
current_date
postgres function https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-CURRENTDescribe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
This is a feature request we got from an early (internal) user of InfluxDB IOx
I believe this is a good first issue as you can follow the existing implementation of
now()
query_execution_start_time
fieldIt would be a good exercise to add a new build in scalar function, physical planing support, and then tests
The text was updated successfully, but these errors were encountered: