Skip to content

Commit

Permalink
fix(ingest/mssql): remove lower() method from sql_common get_db_name (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeperdeep authored Sep 3, 2024
1 parent 96b075d commit e34a628
Show file tree
Hide file tree
Showing 9 changed files with 1,280 additions and 1,267 deletions.
11 changes: 11 additions & 0 deletions docs/how/updating-datahub.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ This file documents any backwards-incompatible changes in DataHub and assists pe
## Next

### Breaking Changes
- #9857 (#10773) `lower` method was removed from `get_db_name` of `SQLAlchemySource` class. This change will affect the urns of all related to `SQLAlchemySource` entities.

Old `urn`, where `data_base_name` is `Some_Database`:
```
- urn:li:dataJob:(urn:li:dataFlow:(mssql,demodata.Foo.stored_procedures,PROD),Proc.With.SpecialChar)
```
New `urn`, where `data_base_name` is `Some_Database`:
```
- urn:li:dataJob:(urn:li:dataFlow:(mssql,DemoData.Foo.stored_procedures,PROD),Proc.With.SpecialChar)
```
Re-running with stateful ingestion should automatically clear up the entities with old URNS and add entities with new URNs, therefore not duplicating the containers or jobs.

### Potential Downtime

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def get_db_name(self, inspector: Inspector) -> str:
if engine and hasattr(engine, "url") and hasattr(engine.url, "database"):
if engine.url.database is None:
return ""
return str(engine.url.database).strip('"').lower()
return str(engine.url.database).strip('"')
else:
raise Exception("Unable to get database name from Sqlalchemy inspector")

Expand Down
Loading

0 comments on commit e34a628

Please sign in to comment.