-
Notifications
You must be signed in to change notification settings - Fork 75
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
Fix duckdb leading comments #895
Conversation
@marshallwhiteorg any updates here? |
…in general. This parses the query and converts the expression back to sql, stripping comments in the process.
@edublancas still some issues, will continue in the AM https://github.com/ploomber/jupysql/actions/runs/6320834470/job/17163937282?pr=895 |
some of these look like matplotlib issues. I think it got upgraded recently and we had to pin the version: Line 47 in cf824ca
merging from master might help |
I have all the tests passing except some of the docs are failing to build. My code is using
The error is in here: https://readthedocs.org/projects/jupysql/builds/22054160/ Here's an example.
Can you see what I am doing wrong, or do you know why this used to work? Is there some preprocessing step that sqlglot requires for this query? It looks like valid duckdb syntax based on their docs. Also, it works with double quotes but not single quotes. Thanks! |
I can see this query is failing:
The issue might be in this line : It looks like |
…nt. This may happen in the case of a statement like INSTALL 'xxx'. In these cases we assume the statement is not select or summarize.
@edublancas @idomic @neelasha23 Okay I've made the requested changes, please let me know if you see issues with the new version. I was skeptical that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor stuff. remember to respond to PR comments with a link to your changes: https://ploomber-contributing.readthedocs.io/en/latest/contributing/responding-pr-review.html
@marshallwhiteorg addressed the comments. please check the open conversations and request my review when done |
@edublancas Thanks for the comments, I just responded to both and made the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. @neelasha23 please run some manual tests and let us know if everything looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
please resolve merge conflicts @marshallwhiteorg |
@marshallwhiteorg please resolve merge conflicts and let me know so we can merge this |
8c12067
@edublancas @neelasha23 Fixed merge conflicts |
@marshallwhiteorg tests are failing |
@edublancas fixed |
Describe your changes
Fix empty result in certain duckdb
SELECT
andSUMMARIZE
queries with leading commentsIssue number
Closes #892
Checklist before requesting a review
pkgmt format
📚 Documentation preview 📚: https://jupysql--895.org.readthedocs.build/en/895/