-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce server side parameters to be strings (#827)
* Enfore server side parameters to be strings * Add changie * Iterate over items * Test for casting server_side_parameters to strings --------- Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com>
- Loading branch information
1 parent
955564d
commit 53809c3
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Features | ||
body: Enforce server side parameters keys and values to be strings | ||
time: 2023-07-07T11:46:50.390918+02:00 | ||
custom: | ||
Author: Fokko,JCZuurmond | ||
Issue: "826" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from dbt.adapters.spark.connections import SparkConnectionMethod, SparkCredentials | ||
|
||
|
||
def test_credentials_server_side_parameters_keys_and_values_are_strings() -> None: | ||
credentials = SparkCredentials( | ||
host="localhost", | ||
method=SparkConnectionMethod.THRIFT, | ||
database="tests", | ||
schema="tests", | ||
server_side_parameters={"spark.configuration": 10}, | ||
) | ||
assert credentials.server_side_parameters["spark.configuration"] == "10" |