mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-09 09:38:22 +00:00
handle import error in param_setter_factory.py (#18745)
This commit is contained in:
parent
fe5778361c
commit
d1b8b9a966
@ -22,13 +22,20 @@ from metadata.data_quality.validations.runtime_param_setter.param_setter import
|
|||||||
from metadata.data_quality.validations.runtime_param_setter.table_diff_params_setter import (
|
from metadata.data_quality.validations.runtime_param_setter.table_diff_params_setter import (
|
||||||
TableDiffParamsSetter,
|
TableDiffParamsSetter,
|
||||||
)
|
)
|
||||||
from metadata.data_quality.validations.table.sqlalchemy.tableDiff import (
|
|
||||||
TableDiffValidator,
|
|
||||||
)
|
|
||||||
from metadata.generated.schema.entity.data.table import Table
|
from metadata.generated.schema.entity.data.table import Table
|
||||||
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
||||||
from metadata.sampler.sqlalchemy.sampler import SQASampler
|
from metadata.sampler.sqlalchemy.sampler import SQASampler
|
||||||
|
|
||||||
|
# We want to use the explicit class name here but the packages might not exist
|
||||||
|
try:
|
||||||
|
from metadata.data_quality.validations.table.sqlalchemy.tableDiff import (
|
||||||
|
TableDiffValidator,
|
||||||
|
)
|
||||||
|
except ImportError:
|
||||||
|
|
||||||
|
class TableDiffValidator:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def removesuffix(s: str, suffix: str) -> str:
|
def removesuffix(s: str, suffix: str) -> str:
|
||||||
"""A custom implementation of removesuffix for python versions < 3.9
|
"""A custom implementation of removesuffix for python versions < 3.9
|
||||||
|
Loading…
x
Reference in New Issue
Block a user