-
Notifications
You must be signed in to change notification settings - Fork 2
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
Multi line SQL queries from Python cause problems with GA4GH Search #3
Comments
I'm going to take a look at this! |
This is the error
The new line characters (ascii 10) that end up in the query are illegal json and are rejected by the parser on the server. Using the following approach should have some portability across Windows and unix as new line characters vary across platforms. It works for me but I'm going on hearsay about the portability. Note that I also had to replace the tab character that was ending up in the query string. Some will frown that I have python code indented with tabs, but as far as making the code robust goes, protecting against people like me is a good practice. It makes best sense to handle this replacement in DiscoverySearchClient. |
Checked in a fix to DiscoverySearchClient. |
In my BigQuery example I can write a SQL statement which extends over multiple lines e.g.
This is helpful for readability.
If I submit a query formatted this way to DiscoverySearchClient the GA4GH Search implementation gives me an error.
The text was updated successfully, but these errors were encountered: