mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-06-27 04:22:05 +00:00
MINOR: Add logs for snowflake dynamic table
This commit is contained in:
parent
a9766a65a3
commit
1f7d6b14e6
@ -561,10 +561,11 @@ class SnowflakeSource(
|
||||
table_list.extend(
|
||||
self._get_table_names_and_types(schema_name, table_type=TableType.External)
|
||||
)
|
||||
|
||||
logger.debug(f"Starting dynamic tables processing")
|
||||
table_list.extend(
|
||||
self._get_table_names_and_types(schema_name, table_type=TableType.Dynamic)
|
||||
)
|
||||
logger.debug(f"Dynamic tables processing completed")
|
||||
|
||||
if self.service_connection.includeTransientTables:
|
||||
table_list.extend(
|
||||
|
@ -54,12 +54,14 @@ from metadata.ingestion.source.database.snowflake.queries import (
|
||||
SNOWFLAKE_INCREMENTAL_GET_WITHOUT_TRANSIENT_TABLE_NAMES,
|
||||
)
|
||||
from metadata.utils import fqn
|
||||
from metadata.utils.logger import ingestion_logger
|
||||
from metadata.utils.sqlalchemy_utils import (
|
||||
get_display_datatype,
|
||||
get_table_comment_wrapper,
|
||||
get_view_definition_wrapper,
|
||||
)
|
||||
|
||||
logger = ingestion_logger()
|
||||
dialect = SnowflakeDialect()
|
||||
Query = str
|
||||
QueryMap = Dict[str, Query]
|
||||
@ -238,6 +240,8 @@ def get_table_names(self, connection, schema: str, **kw):
|
||||
for row in cursor
|
||||
]
|
||||
)
|
||||
if kw.get("dynamic_tables"):
|
||||
logger.debug(f"Dynamic tables: {result}")
|
||||
return result
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user