Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

README Sample Code Throws Errors #1163

Copy link
Copy link
Open
@nigelainscoe

Description

@nigelainscoe
Issue body actions

Environment details

  • OS type and version: Windows 11 24H2
  • Python version: 3.11.4
  • pip version: 25
  • sqlalchemy-bigquery version: 1.12.1

Steps to reproduce

When running the sample code from the README, the line:

table = Table('dataset.table', MetaData(bind=engine), autoload=True)

returns the following error:

    table = Table('dataset.table', MetaData(bind=engine), autoload=True)
                                                ^^^^^^^^^^^^^^^^^^^^^
TypeError: MetaData.__init__() got an unexpected keyword argument 'bind'

The following line:

print(select([func.count('*')], from_obj=table().scalar()))

also contains a compiler warning that 'Table' object is not callable

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery-sqlalchemy API.Issues related to the googleapis/python-bigquery-sqlalchemy API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.