You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
$ cargo build
Compiling datafusion-proto v13.0.0 (arrow-datafusion/datafusion/proto)
error[E0599]: no variant or associated item named `CurrentDate` found for enum `datafusion::ScalarFunction` in the current scope
--> datafusion/proto/src/to_proto.rs:1181:57
|
1181 | BuiltinScalarFunction::CurrentDate => Self::CurrentDate,
| ^^^^^^^^^^^ variant or associated item not found in `datafusion::ScalarFunction`
|
::: datafusion/proto/src/generated/prost.rs:1154:1
If I go to prost.rs I dont see CurrentDate generated. I suppose BuiltinScalarFunction enum is the driver to generate new code?
Activity
comphead commentedon Oct 28, 2022
@alamb please assign the task to me.
And let me know how to regenerate
prost.rslocally to reflect latest changes for Scalar types?alamb commentedon Oct 29, 2022
Thanks @comphead
Done
It may be related to #3947 / #3979 . Maybe @avantgardnerio or @tustvold have some ideas or a doc pointer
avantgardnerio commentedon Oct 29, 2022
@tustvold I see you added instructions for installing protoc... would you mind adding the bash command you use to run it? 🙌
tustvold commentedon Oct 29, 2022
There is no command, just build the project as normal, the build script does the rest
comphead commentedon Oct 29, 2022
Hi @tustvold
I have tried to build it first
If I go to prost.rs I dont see CurrentDate generated. I suppose
BuiltinScalarFunctionenum is the driver to generate new code?tustvold commentedon Oct 29, 2022
Have you updated the protobuf definition in https://github.com/apache/arrow-datafusion/blob/master/datafusion/proto/proto/datafusion.proto ?
comphead commentedon Oct 29, 2022
Right, sorry, totally forgot about it! :-/