-
Notifications
You must be signed in to change notification settings - Fork 16
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
{fn timestampadd} gets translated to {fn dateadd} #2
Comments
I already did such rewrites to get rid of fn and ts jdbc driver level, so I could do a fast pull request to manage this |
I've actually modified The only proper solution I can think of is writing a full-blown SQL parser that breaks the SQL into tokens, goes thru the nested structure of the SQL, then remove the tokens Having said that, this gives me the idea that the proper-proper solution would be to remove the |
I did the same way to make omniscidb work with JDBC generic data sources in Tableau. |
CalciteAdapter.cpp replaces timestampadd with dateadd.
However, in cases where timestampadd(...) is used as a jdbc espace function, as in "{fn timestampadd(...)}", CalciteAdapter should also remove the enclosing "{fn" and "}".
Otherwise, we are getting an error saying that "{fn DATEADD}" is not supported.
The text was updated successfully, but these errors were encountered: