Skip to content

Base.metadata.create_all not mapping to correct data type #31

Closed
@Neob91

Description

@Neob91

Hello,

I'm trying to create tables in bigquery using Base.metadata.create_all(engine), however what I'm getting is:

google.cloud.bigquery.dbapi.exceptions.DatabaseError: 400 GET https://www.googleapis.com/bigquery/v2/projects/REDACTED/queries/REDACTED?maxResults=0&location=US: Type not found: INTEGER at [3:15]

Looks like sqlalchemy columns aren't correctly mapped to the BigQuery SQL data type names.
Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions