Skip to content
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

BUG: Failure to convert SQL query #42

Open
miriam-z opened this issue Jul 19, 2021 · 0 comments
Open

BUG: Failure to convert SQL query #42

miriam-z opened this issue Jul 19, 2021 · 0 comments
Assignees
Labels

Comments

@miriam-z
Copy link

miriam-z commented Jul 19, 2021

Description

I tried using sqlitis to convert a SQL query and received an error.

Failing command (required)

FIXME: PASTE SQLITIS COMMAND AND FULL OUTPUT HERE
sqlitis "select value from camdummy.targets where date between '2020-01-01' and '2021-07-01' and name = 'MY_WEEKLY_GMV'"  

ERROR: Failed to convert SQL: select value from camdummy.targets where date between '2020-01-01' and '2021-07-01' and name = 'MY_WEEKLY_GMV'
invalid comparison clause: [<Builtin 'date' at 0x7FF8D015BBE0>, <Keyword 'between' at 0x7FF8D015BE20>, <Single ''2020-...' at 0x7FF8D015BEE0>, <Keyword 'and' at 0x7FF8D015BFA0>, <Single ''2021-...' at 0x7FF8D01660A0>, <Keyword 'and' at 0x7FF8D0166160>, <Comparison 'name =...' at 0x7FF8D0126E40>]

Any idea thanks as the original syntax works in psycopg2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants