You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
When writing long queries I tend to put split them onto serveral lines. The parenthesis and backslash Python string merge methods will work, but not the multiline string if you dont start with the SELECT keyword on the first line.
Example that works:
result=client.query("""select temperature from temperature where time > '2017-03-13 10:40:00.000' and time < '2017-03-13 12:30:00.000' order by time""")
Example that does not work but should IMO:
result=client.query("""select temperature from temperature where time > '2017-03-13 10:40:00.000' and time < '2017-03-13 12:30:00.000' order by time""")
Proposed fix: Add a call to Python's str.strip() method on this line.
I can write a pull request if you are ok to merge it (should be one line of code + verifying tests results + maybe adding a new test for this scenario).