fix: return None for BQ partition handler (#20169)

* fix: return None for BQ partition handler

* fix: change log level to info
This commit is contained in:
Teddy 2025-03-11 15:52:12 -07:00 committed by GitHub
parent 9ddda9c246
commit e0a38e1146
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,9 @@ from metadata.generated.schema.entity.services.databaseService import (
DatabaseServiceType,
)
from metadata.sampler.models import TableConfig
from metadata.utils.logger import sampler_logger
logger = sampler_logger()
def validate_athena_injected_partitioning(
@ -164,8 +167,12 @@ def _handle_bigquery_partition(
partitionIntegerRangeEnd=10000,
)
# TODO: Allow External Hive Partitioning for profiler
raise TypeError(
f"Unsupported partition type {partition.intervalType}. Skipping table"
logger.info(
f"Unknown partition type {partition.intervalType}. Cannot infer partition. Partitionning "
"will be set to None. If partitionning is required for your table, you can set it "
"directly in the table config. More information can be found at "
"https://docs.open-metadata.org/latest/how-to-guides/data-quality-observability/profiler/"
"workflow#4.-updating-profiler-setting-at-the-table-level"
)
return None