Skip to content

bug: BigQuery backend's create_table function has incorrect behavior on partition_by parameter #11526

@jhurst22

Description

@jhurst22

What happened?

BigQuery backend's create_table method has two issues on its partition_by parameter.

  • The parameter is typed as str, but it expects an iterable of str.
  • The parameter is documented to accept BQ DDL for specifying partitions, but it attempts to backtick-quote the values that are passed in, which invalidates some partitioning DDL, such as DATE_TRUNC(<date_column>, MONTH)

What version of ibis are you using?

10.7.0

What backend(s) are you using, if any?

BigQuery

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior inside of ibis

    Type

    No type

    Projects

    Status

    backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions