fix(ingest): snowflake-usage - log warning instead of error out (#4544)

This commit is contained in:
Aseem Bansal 2022-03-31 20:46:15 +05:30 committed by GitHub
parent ee0c931076
commit 94890c1e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -341,7 +341,9 @@ class SnowflakeUsageSource(StatefulIngestionSourceBase):
if not dataset_type or not dataset_name:
return True
dataset_params = dataset_name.split(".")
assert len(dataset_params) == 3
if len(dataset_params) != 3:
self.warn(logger, "invalid-dataset-pattern", f"Found {dataset_params}")
return False
if not self.config.database_pattern.allowed(
dataset_params[0]
) or not self.config.schema_pattern.allowed(dataset_params[1]):