Description
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.