Skip to content

Typo in BQ Standard SQL samples. #536

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

Merged
merged 1 commit into from
Sep 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bigquery/api/async_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def async_query(
'priority': 'BATCH' if batch else 'INTERACTIVE',
# Set to False to use standard SQL syntax. See:
# https://cloud.google.com/bigquery/sql-reference/enabling-standard-sql
'useLegacySQL': use_legacy_sql
'useLegacySql': use_legacy_sql
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions bigquery/api/async_query_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def test_async_query(cloud_config, capsys):


def test_async_query_standard_sql(cloud_config, capsys):
query = (
'SELECT corpus FROM publicdata.samples.shakespeare '
'GROUP BY corpus;')
query = 'SELECT [1, 2, 3] AS arr;' # Only valid in standard SQL

main(
project_id=cloud_config.project,
Expand Down
2 changes: 1 addition & 1 deletion bigquery/api/sync_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def sync_query(
'timeoutMs': timeout,
# Set to False to use standard SQL syntax. See:
# https://cloud.google.com/bigquery/sql-reference/enabling-standard-sql
'useLegacySQL': use_legacy_sql
'useLegacySql': use_legacy_sql
}
return bigquery.jobs().query(
projectId=project_id,
Expand Down
4 changes: 1 addition & 3 deletions bigquery/api/sync_query_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ def test_sync_query(cloud_config, capsys):


def test_sync_query_standard_sql(cloud_config, capsys):
query = (
'SELECT corpus FROM publicdata.samples.shakespeare '
'GROUP BY corpus;')
query = 'SELECT [1, 2, 3] AS arr;' # Only valid in standard SQL

main(
project_id=cloud_config.project,
Expand Down