Skip to content
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

Merged
merged 3 commits into from
Jul 24, 2016

Conversation

mystelynx
Copy link
Contributor

@mystelynx mystelynx commented Jul 21, 2016

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:
image

@@ -132,6 +136,7 @@ def _get_total_bytes_processed(self, jobs, query):
job_data = {
"query": query,
"dryRun": True,
"useLegacySql": self.configuration.get('useLegacySql', False),
Copy link
Member

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...

Copy link
Member

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)".

Copy link
Contributor Author

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.

@arikfr
Copy link
Member

arikfr commented Jul 21, 2016

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)': {
Copy link
Member

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?

Copy link
Contributor Author

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.

@arikfr arikfr changed the title add bigquery configuration to specify legacy/standard sql Change: add BigQuery configuration to specify legacy/standard SQL Jul 21, 2016
@arikfr arikfr changed the title Change: add BigQuery configuration to specify legacy/standard SQL Change: add support for Standard SQL in BigQuery query runner Jul 21, 2016
@arikfr arikfr merged commit 5d43cbe into getredash:master Jul 24, 2016
simo7 pushed a commit to pubnative/redash that referenced this pull request Sep 22, 2016
…sql-type

Change: add support for Standard SQL in BigQuery query runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants