Skip to content

Commit

Permalink
Update SparkConnection.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jadewang-db committed Mar 18, 2024
1 parent d5bdb76 commit 9ae24cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion csharp/src/Drivers/Apache/Spark/SparkConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ protected override TProtocol CreateProtocol()

string hostName = properties["hostname"];
string path = properties["path"];
string token = properties["token"];
string token;

if (properties.ContainsKey("token"))
token = properties["token"];
else
token = properties["password"];

string uri = "https://" + hostName + "/" + path;

Expand Down

0 comments on commit 9ae24cf

Please sign in to comment.