-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add system tests for legacy data types. #3116
Add system tests for legacy data types. #3116
Conversation
Hold off on review: the |
OK, I've pushed a version which flips the flag and drops the couldn't-possibly-work standard-SQL-only examples. |
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.
Mostly looks good
@@ -479,6 +479,63 @@ def _job_done(instance): | |||
# raise an error, and that the job completed (in the `retry()` | |||
# above). | |||
|
|||
def test_sync_query_w_legacy_sql_types(self): | |||
import datetime |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
system_tests/bigquery.py
Outdated
from google.cloud.bigquery._helpers import ScalarQueryParameter | ||
from google.cloud.bigquery._helpers import StructQueryParameter | ||
naive = datetime.datetime(2016, 12, 5, 12, 41, 9) | ||
stamp = "%s %s" % (naive.date().isoformat(), naive.time().isoformat()) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
system_tests/bigquery.py
Outdated
for example in EXAMPLES: | ||
query = Config.CLIENT.run_sync_query( | ||
example['sql'], | ||
query_parameters=example.get('query_parameters', ())) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
LGTM, but ping me once CI is green so I can do a final pass? |
@dhermes CI is green. |
…-legacy_datatypes Add system tests for legacy data types.
Toward #3029.