Skip to content

Commit

Permalink
fix(ingest/oracle): fix scheme for sqlalchemy < 2 (datahub-project#11829
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mayurinehate authored Nov 14, 2024
1 parent 62bb5d7 commit 383a70a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions metadata-ingestion/src/datahub/ingestion/source/sql/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def before_cursor_execute(conn, cursor, statement, parameters, context, executem


class OracleConfig(BasicSQLAlchemyConfig):
# defaults
# TODO: Change scheme to oracle+oracledb when sqlalchemy>=2 is supported
scheme: str = Field(
default="oracle+oracledb",
default="oracle",
description="Will be set automatically to default value.",
)
service_name: Optional[str] = Field(
Expand Down
2 changes: 1 addition & 1 deletion metadata-ingestion/tests/unit/test_oracle_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_oracle_config():
)
assert (
config.get_sql_alchemy_url()
== "oracle+oracledb://user:password@host:1521/?service_name=svc01"
== "oracle://user:password@host:1521/?service_name=svc01"
)

with pytest.raises(ValueError):
Expand Down

0 comments on commit 383a70a

Please sign in to comment.