Unfortunately, this doesn't work. The output of table.full_table_id is: myProject:myDataSet.myTable but queries need to be formatted with period separated values, aka: myProject.myDataSet.myTable.
Question: How should I be constructing queries from a bigquery.Table object?
Right now the work around I am using is this:
statement = f"""
But this feels icky.
To search find this issue, this is the exception I was getting:
Traceback (most recent call last):
File "me.py", line 74, in me
result = list(query_job.result())
File "/usr/local/lib/python3.7/site-packages/google/cloud/bigquery/job.py", line 3230, in result
super(QueryJob, self).result(retry=retry, timeout=timeout)
File "/usr/local/lib/python3.7/site-packages/google/cloud/bigquery/job.py", line 835, in result
return super(_AsyncJob, self).result(timeout=timeout)
File "/usr/local/lib/python3.7/site-packages/google/api_core/future/polling.py", line 130, in result
google.api_core.exceptions.BadRequest: 400 Syntax error: Unexpected ":" at [3:30]
I can see from issue #115 that this is the intended behaviour of full_table_id, but I am still curious if there is a cleaner solution to what I am doing.
The text was updated successfully, but these errors were encountered:
This is the natural inverse of the `TableReference.from_string` method.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)