-
Notifications
You must be signed in to change notification settings - Fork 733
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
GLOB operator is not supported for duckdb and sqlite #1066
Comments
Hey! First of all, since this operator is supported by at least two dialects, e.g. duckdb and sqlite, I'd say it's worth to add in the base Parser, Generator classes. We generally try to make these handle as much SQL as possible, especially when it helps reuse logic across different dialects. Regarding how you can tackle this issue: look up the Let me know if you need any help in case you wanna tackle this. Otherwise, I can post a fix tomorrow and ping you. |
Wow, thanks for the fast response and helpful pointers. I took at a stab at adding it. There was much monkey see, monkey do, so please feel free to discard/adapt if that's faster, and I'll just watch from the sidelines to learn for next time. |
* add GLOB for sqlite, duckdb fixes #1066 * black * PR feedback * black
Hi, sqlglot is amazing! Thank you for this library.
I noticed that this fails:
I expected it to print
SELECT 'foo' GLOB '?'
, but it gave an exception:Searching the code base, I think this operator isn't supported for any dialect yet. I'm not sure which flavours of SQL support it - duckdb (docs) and sqlite (docs) do.
I imagine this might be an easy fix, but I don't know where to start
The text was updated successfully, but these errors were encountered: