-
Notifications
You must be signed in to change notification settings - Fork 19
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
Year Extract not Supported #454
Comments
Thanks for reporting @joshua-frat ! |
I am executing against Facebook Velox, and my tpc-h09 code is as follows: Doesn't work in Velox, extracting year not supported in compiler
You may notice a few other things about this code. For one, Velox doesn't like casting constant literals, so operations involving the literal 1 had to be made as Int32 beforehand. Also, Aggregations that are more complex than sums, means, or counts do not work unless the intermediary steps are set as select statements for the inputs to the aggregation. Another noteworthy thing is that join key predicates must be present in their respective left or right side tables based on which side they're on in the predicate. For example, |
Thanks @joshua-frat -- that's helpful! Could you also paste in the python string representation of the substrait protobuf message? Not the byte-string but the representation that's almost JSON? |
Sure, here it is:
|
Thanks @joshua-frat -- can you confirm which version of |
I'm using V2.18.0 |
Huh -- and which version of Ibis are you using? I would expect to see the following towards the end of your substrait plan:
|
I'm using ibis 3.2.0 |
Hm, well, running your tpc_h09 expression with ibis-substrait 2.18.0 and ibis 3.2.0 on my end adds in the |
Thanks, I tried reinstalling ibis and it didn't work. Unfortunately I didn't install ibis-substrait as outlined in CONTRIBUTING.md and instead cloned the repository and used a modified version of the test files to output the protobuf binaries using pytest. Maybe the different environment has something to do with it or one of the files got modified, but I can try installing it and executing the test function differently and see if that has any effect. Will let you know on the results later if I do. |
Hi, I am executing the substrait plans created by tpc-h09, and I noticed the plan does not execute due to the extract call made. I'm not sure, but it looks like it is incomplete. Either that, or it could be replaced by a year call in the plan. Removing the year call in the Python allows the plan to execute to completion. Just wanted to let you know for future changes to the compiler, if this is the case. Thanks.
The text was updated successfully, but these errors were encountered: