Skip to content

expose biglakeConfiguration properties on Table #2157

Closed
@tswast

Description

@tswast

Is your feature request related to a problem? Please describe.

I'd like to lookup some info about my biglake tables with the Python client. Specifically, I'd like to check if the tableFormat is ICEBERG and if it is, then try to read the parquet files from the storageUri.

Describe the solution you'd like

A Table.biglake_configuration property that returns some BigLakeConfiguration object would make the most sense to me and align with the REST API for BigLakeConfiguration.

Describe alternatives you've considered

My workaround:

table_resource = table.to_api_repr()
if (data_config := table_resource.get("biglakeConfiguration", None)) is not None:
    if (
        (data_config.get("tableFormat", None) == "ICEBERG")
        and (data_config.get("fileFormat", None) == "PARQUET")
        and ((uri := data_config.get("storageUri")) is not None)
    ):
        print(uri)

Additional context

Release note: https://cloud.google.com/bigquery/docs/release-notes#July_25_2022

July 25, 2022

BigLake is now generally available (GA). You can now create BigQuery ML models using data in Cloud Storage by using BigLake and publish BigLake tables as Analytics Hub listings.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.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