From 44930dfd1e62add3b516b9f1254cb693922e9b4d 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 5ff62dd02f..7552650fa4 100644 --- a/metadata-ingestion/setup.py +++ b/metadata-ingestion/setup.py @@ -166,6 +166,7 @@ looker_common = { *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 5b774012e7..4ad9635069 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(