fix(ingest): mssql - lowercase db name in mssql ingestion (#6448)

This commit is contained in:
Harshal Sheth 2022-11-16 17:34:08 -05:00 committed by GitHub
parent ba7fc3a685
commit cf6fb91f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ class SQLServerSource(SQLAlchemySource):
super().__init__(config, ctx, "mssql")
# Cache the table and column descriptions
self.config: SQLServerConfig = config
self.current_database = None
self.current_database: Optional[str] = None
self.table_descriptions: Dict[str, str] = {}
self.column_descriptions: Dict[str, str] = {}
for inspector in self.get_inspectors():
@ -262,5 +262,5 @@ class SQLServerSource(SQLAlchemySource):
return f"{self.config.database_alias}.{regular}"
return f"{self.config.database}.{regular}"
if self.current_database:
return f"{self.current_database}.{regular}"
return f"{self.current_database.lower()}.{regular}"
return regular