-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Change: add support for Standard SQL in BigQuery query runner #1198
Change: add support for Standard SQL in BigQuery query runner #1198
Conversation
@@ -132,6 +136,7 @@ def _get_total_bytes_processed(self, jobs, query): | |||
job_data = { | |||
"query": query, | |||
"dryRun": True, | |||
"useLegacySql": self.configuration.get('useLegacySql', False), |
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.
Unless I misunderstand this, the default should be True
because otherwise it will break all existing queries...
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.
And because it goes unchecked by default, let's change the configuration name to "Use Standard SQL (Beta)".
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.
Thanks you for your comment!
I'll try to fix that.
Thanks! See my comment. |
@@ -103,6 +103,10 @@ def configuration_schema(cls): | |||
'userDefinedFunctionResourceUri': { | |||
"type": "string", | |||
'title': 'UDF Source URIs (i.e. gs://bucket/date_utils.js, gs://bucket/string_utils.js )' | |||
}, | |||
'useStandardSql(Beta)': { |
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.
Why have the (Beta)
part in the key name?
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.
Sorry, I misunderstand your comment. I'll remove (Beta)
from key name.
…sql-type Change: add support for Standard SQL in BigQuery query runner
add checkbox to specify whether to use legacy or standard sql.
legacy: https://cloud.google.com/bigquery/query-reference
standard: https://cloud.google.com/bigquery/sql-reference/
updated: