-
Notifications
You must be signed in to change notification settings - Fork 453
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
[VL] Fallback happens to vanilla spark if there is a cast from varchar to timestamp #8401
Comments
I modified the code so that varchar to timestamp cast is also gets pushed to velox. For PST it fails with below error but works fine if I give America/Los_Angeles Also at present timestamp to date cast is also not offloaded but when I tried doing that it gave correct result, shall we enable it? |
can #8357 fix it? |
@FelixYBW I did the same change in my local and it resolves the cast from varchar to timestamp offload issue but then I got the above error for from_utc_timestamp expression when I gave PST as parameter. Any suggestions for this as this would need change in velox? |
I see. I don't think we can fix this in Gluten itself. |
@ayushi-agarwal, I think abbreviated timezone name like "PST" is not supported in Velox, because it's ambiguous. And it is not recommended by Spark (see link). |
That makes sense now. Thank you for directing me to this code. |
Description
Currently there is only a support of conversion from date to timestamp -
incubator-gluten/cpp/velox/substrait/SubstraitToVeloxPlanValidator.cc
Line 273 in ff89539
An example expression for which fallback happens: cast(from_utc_timestamp(from_unixtime((cast(col as double) / 1000.0), 'yyyy-MM-dd HH:mm:ss'), 'PST') as date)
Is there a plan to support other data types also? @dcoliversun
The text was updated successfully, but these errors were encountered: