Skip to content

Commit

Permalink
fix(ingest): only import PathSpec when necessary (datahub-project#9989)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored and dushayntAW committed Mar 7, 2024
1 parent c5a1851 commit cc2d596
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metadata-ingestion/src/datahub/cli/check_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from datahub.ingestion.graph.client import get_default_graph
from datahub.ingestion.run.pipeline import Pipeline
from datahub.ingestion.sink.sink_registry import sink_registry
from datahub.ingestion.source.data_lake_common.path_spec import PathSpec
from datahub.ingestion.source.source_registry import source_registry
from datahub.ingestion.transformer.transform_registry import transform_registry
from datahub.telemetry import telemetry
Expand Down Expand Up @@ -299,6 +298,8 @@ def test_path_spec(config: str, input: str, path_spec_key: str) -> None:
This command validates an input path string against an PathSpec patterns in a DataHub recipe.
"""

from datahub.ingestion.source.data_lake_common.path_spec import PathSpec

pattern_dicts: Optional[Union[List[Dict], Dict]] = None
recipe_config_dict = config_loader.load_config_file(config)
try:
Expand Down

0 comments on commit cc2d596

Please sign in to comment.