Skip to content

Commit

Permalink
revert session URL hardcoring, add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vakarisbk committed Oct 1, 2023
1 parent c63af4e commit bebcee1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dbt/adapters/spark/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,11 @@ def open(cls, connection: Connection) -> Connection:
SessionConnectionWrapper,
)

# Pass session type (session or connect) into SessionConnectionWrapper
handle = SessionConnectionWrapper(
Connection(
conn_method=creds.method,
conn_url="localhost",
conn_url=conn_url,
server_side_parameters=creds.server_side_parameters,
)
)
Expand Down Expand Up @@ -574,6 +575,7 @@ def open(cls, connection: Connection) -> Connection:
SessionConnectionWrapper,
)

# Pass session type (session or connect) into SessionConnectionWrapper
handle = SessionConnectionWrapper(
Connection(
conn_method=creds.method,
Expand Down

0 comments on commit bebcee1

Please sign in to comment.