Fix #853: Ingestion: handle profiler returning None (#857)

* Fix #853: Ingestion: handle profiler returning None

* Fix #853: Ingestion: handle profiler returning None
This commit is contained in:
Sriharsha Chintalapani 2021-10-18 21:38:35 -07:00 committed by GitHub
parent 1db18a50cf
commit ee1ec15ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,9 @@ class SQLSource(Source):
if self._instantiate_profiler():
profile = self.run_data_profiler(table_name, schema)
table_entity.tableProfile = [profile]
table_entity.tableProfile = (
[profile] if profile is not None else None
)
table_and_db = OMetaDatabaseAndTable(
table=table_entity, database=self._get_database(schema)