mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-08 00:28:37 +00:00
fix(ingest): fix some typos and logging issues (#5564)
This commit is contained in:
parent
16ff4aaa94
commit
858b132444
@ -124,7 +124,7 @@ class Pipeline:
|
||||
def _record_initialization_failure(self, e: Exception, msg: str) -> None:
|
||||
self.pipeline_init_exception: Optional[Exception] = e
|
||||
self.pipeline_init_failures: Optional[str] = f"{msg} due to {e}"
|
||||
logger.error(e)
|
||||
logger.exception(e)
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -773,7 +773,7 @@ class SQLAlchemySource(StatefulIngestionSourceBase):
|
||||
self, *, schema: str, entity: str, inspector: Inspector, **kwargs: Any
|
||||
) -> str:
|
||||
# Many SQLAlchemy dialects have three-level hierarchies. This method, which
|
||||
# subclasses can override, enables them to modify the identifers as needed.
|
||||
# subclasses can override, enables them to modify the identifiers as needed.
|
||||
if hasattr(self.config, "get_identifier"):
|
||||
# This path is deprecated and will eventually be removed.
|
||||
return self.config.get_identifier(schema=schema, table=entity) # type: ignore
|
||||
@ -1209,7 +1209,7 @@ class SQLAlchemySource(StatefulIngestionSourceBase):
|
||||
canonical_schema=schema_fields,
|
||||
)
|
||||
try:
|
||||
# SQLALchemy stubs are incomplete and missing this method.
|
||||
# SQLAlchemy stubs are incomplete and missing this method.
|
||||
# PR: https://github.com/dropbox/sqlalchemy-stubs/pull/223.
|
||||
view_info: dict = inspector.get_table_comment(view, schema) # type: ignore
|
||||
except NotImplementedError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user