mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-28 19:05:53 +00:00
Fix Redshift profiler for external tables in Redshift Spectrum (#18182)
This commit is contained in:
parent
e21843b752
commit
fcd34afab5
@ -412,7 +412,7 @@ class RedshiftTableMetricComputer(BaseTableMetricComputer):
|
|||||||
)
|
)
|
||||||
res = self.runner._session.execute(query).first()
|
res = self.runner._session.execute(query).first()
|
||||||
if not res:
|
if not res:
|
||||||
return None
|
return super().compute()
|
||||||
if res.rowCount is None or (
|
if res.rowCount is None or (
|
||||||
res.rowCount == 0 and self._entity.tableType == TableType.View
|
res.rowCount == 0 and self._entity.tableType == TableType.View
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user