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 3ed3186399588e..0f8d86a2cbd295 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/looker/looker_config.py +++ b/metadata-ingestion/src/datahub/ingestion/source/looker/looker_config.py @@ -177,7 +177,9 @@ def _get_generic_definition( class LookerConnectionDefinition(ConfigModel): platform: str default_db: str - default_schema: Optional[str] # Optional since some sources are two-level only + default_schema: Optional[str] = ( + None # Optional since some sources are two-level only + ) platform_instance: Optional[str] = None platform_env: Optional[str] = Field( default=None, diff --git a/metadata-ingestion/src/datahub/ingestion/source/looker/looker_file_loader.py b/metadata-ingestion/src/datahub/ingestion/source/looker/looker_file_loader.py index bd6a37fe4b4e24..ba7b62a1281c02 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/looker/looker_file_loader.py +++ b/metadata-ingestion/src/datahub/ingestion/source/looker/looker_file_loader.py @@ -65,7 +65,7 @@ def _load_viewfile( with open(path) as file: raw_file_content = file.read() except Exception as e: - self.reporter.failure( + self.reporter.report_warning( title="LKML File Loading Error", message="A lookml file is not present on local storage or GitHub", context=f"file path: {path}", @@ -101,7 +101,7 @@ def _load_viewfile( self.viewfile_cache[path] = looker_viewfile return looker_viewfile except Exception as e: - self.reporter.failure( + self.reporter.report_warning( title="LKML File Parsing Error", message="The input file is not lookml file", context=f"file path: {path}",