mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-13 00:22:23 +00:00
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:
parent
9ddda9c246
commit
e0a38e1146
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user