From 9ff026df65473a44c178b7a27f01f1afd63809c5 Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Thu, 11 Jul 2024 13:25:13 -0700 Subject: [PATCH] fix(ingest/looker): add missing dependency (#10876) --- metadata-ingestion/setup.py | 1 + .../src/datahub/ingestion/source/looker/looker_config.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/metadata-ingestion/setup.py b/metadata-ingestion/setup.py index 5ff62dd02fbc3..7552650fa40ef 100644 --- a/metadata-ingestion/setup.py +++ b/metadata-ingestion/setup.py @@ -166,6 +166,7 @@ *sqlglot_lib, "GitPython>2", "python-liquid", + *sqlglot_lib, } bigquery_common = { diff --git a/metadata-ingestion/src/datahub/ingestion/source/looker/looker_config.py b/metadata-ingestion/src/datahub/ingestion/source/looker/looker_config.py index 5b774012e70da..4ad9635069b15 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/looker/looker_config.py +++ b/metadata-ingestion/src/datahub/ingestion/source/looker/looker_config.py @@ -256,7 +256,7 @@ class LookerDashboardSourceConfig( "ingest dashboards in the Shared folder space.", ) max_threads: int = Field( - os.cpu_count() or 40, + default_factory=lambda: os.cpu_count() or 40, description="Max parallelism for Looker API calls. Defaults to cpuCount or 40", ) external_base_url: Optional[str] = Field(