Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Use compression in LoadJobConfig #1499

Closed

Description

@omerda123

I updated bigquery python client from version 1.27.2 to 2.34.3.
I used SNAPPY compression for LoadJobs and after the upgrade I'm getting this error message:
Property compression is unknown for <class 'google.cloud.bigquery.job.load.LoadJobConfig'>
according to this doc: https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#JobConfigurationLoad compression is supported.
Can I get some clarification here? There is any kind of compression? it's not longer supported? Didn't find any release notes / changelogs

Thanks!

Activity

  1. skudrow-figure commented on Apr 9, 2023

    @skudrow-figure

    Had the same issue. Ended up not specifying the compression at all and it successfully loaded my json.gz file

  2. meredithslota commented on Jun 13, 2023

    @meredithslota
    Contributor

    The last change here was, I think, #361 which refactored but didn't remove compression support (and the previous paths are still supported, as far as I know though I haven't investigated it deeply yet). This was in November 2020, which would have roughly corresponded to v2.3.0 — and any future versions.

    SNAPPY compression is supported for Avro files only. Can you share an example of how you're using this?

    https://github.com/googleapis/python-bigquery/blob/main/google/cloud/bigquery/enums.py for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions