betodealmeida opened a new pull request #11904:
URL: https://github.com/apache/incubator-superset/pull/11904


   ### SUMMARY
   <!--- Describe the change below, including rationale and design decisions -->
   
   When running multiple statements, BigQuery will not keep track of state 
during the lifetime of the cursor. This means that queries like this one will 
fail:
   
   ```sql
   DECLARE d DATE DEFAULT CURRENT_DATE();
   CREATE TEMP FUNCTION Add(x INT64, y INT64) AS (x + y);
   SELECT Add(3, 4);
   ```
   
   See discussion here: https://github.com/googleapis/python-bigquery/issues/377
   
   This PR solves this problem by running queries as a single statement
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   
   
![2020-12-02-162506_564x568_scrot](https://user-images.githubusercontent.com/1534870/100947717-11608900-34bb-11eb-8bc7-5b3969086052.png)
   
   
   ### TEST PLAN
   <!--- What steps should be taken to verify the changes -->
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Changes UI
   - [ ] Requires DB Migration.
   - [ ] Confirm DB Migration upgrade and downgrade tested.
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to