Skip to content

TypeError(_NEED_TABLE_ARGUMENT) error using read_gbq #481

Closed
@Bizetremi

Description

@Bizetremi

Hello,

Version 0.17.0 introduced the error below when using read_gbq.

Example query used

UPDATE mydb.mytable set field1 = null
                             WHERE field1 = 'string' ;
UPDATE  mydb.mytable set field2 = null
                             WHERE field2 < 0

Environment details

  • OS type and version:
  • Python version: 3.7
  • pandas-gbq version: 0.17.0

Code example

pandas_gbq.read_gbq(
                sql,
                project_id=project_id,
                dialect='standard',
                progress_bar_type=None,
                use_bqstorage_api=True,
                max_results=0,)

Stack trace

File "/layers/google.python.pip/pip/lib/python3.7/site-packages/pandas_gbq/gbq.py", line 870, in read_gbq dtypes=dtypes, File "/layers/google.python.pip/pip/lib/python3.7/site-packages/pandas_gbq/gbq.py", line 499, in run_query query_reply.destination, max_results=max_results File "/layers/google.python.pip/pip/lib/python3.7/site-packages/google/cloud/bigquery/client.py", line 3780, in list_rows raise TypeError(_NEED_TABLE_ARGUMENT) TypeError: The table argument should be a table ID string, Table, or TableReference

Best,

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery-pandas API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions