Skip to content

Commit 40a4943

Browse files
committed
[SPARK-52369] Fix Session ID to be lowercased always
1 parent dc6d0e8 commit 40a4943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SparkConnect/SparkSession.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public actor SparkSession {
4444
self.client = SparkConnectClient(remote: connection)
4545
// Since `Session ID` belongs to `SparkSession`, we handle this here.
4646
if connection.contains(regexSessionID) {
47-
self.sessionID = connection.firstMatch(of: regexSessionID)!.1.uppercased()
47+
self.sessionID = connection.firstMatch(of: regexSessionID)!.1.lowercased()
4848
} else {
49-
self.sessionID = UUID().uuidString
49+
self.sessionID = UUID().uuidString.lowercased()
5050
}
5151
self.conf = RuntimeConf(self.client)
5252
}

0 commit comments

Comments
 (0)