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

unexpected '' #979

Open
tekumara opened this issue Jan 7, 2024 · 3 comments
Open

unexpected '' #979

tekumara opened this issue Jan 7, 2024 · 3 comments

Comments

@tekumara
Copy link

tekumara commented Jan 7, 2024

What happens?

This valid Snowflake SQL:

%sql show terse objects in db1.schema1 starts with 'a' limit 1 from 'b';

Errors with:

RuntimeError: If using snippets, you may pass the --with argument explicitly.
For more details please refer: https://jupysql.ploomber.io/en/latest/compose.html#with-argument


Original error message from DB driver:
(snowflake.connector.errors.ProgrammingError) 001003 (42000): SQL compilation error:
syntax error line 1 at position 5 unexpected ''a''.
[SQL: with 'a' limit 1 from 'b' ;]

To Reproduce

%sql show terse objects in db1.schema1 starts with 'a' limit 1 from 'b';

OS:

Linux

JupySQL Version:

0.10.7

Full Name:

Oliver Mannion

Affiliation:

Xero

@edublancas
Copy link

edublancas commented Jan 9, 2024

@tekumara does it also error if you use the %%sql cell magic?

@tekumara
Copy link
Author

tekumara commented Jan 9, 2024

%%sql works fine.

@edublancas
Copy link

thanks for reporting this, we'll get to it!

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

No branches or pull requests

2 participants