@@ -68,7 +68,7 @@ public actor SparkConnectClient {
68
68
var request = AnalyzePlanRequest ( )
69
69
request. clientType = clientType
70
70
request. userContext = userContext
71
- request. sessionID = sessionID
71
+ request. sessionID = self . sessionID!
72
72
request. analyze = . sparkVersion( version)
73
73
let response = try await service. analyzePlan ( request)
74
74
return response
@@ -190,10 +190,9 @@ public actor SparkConnectClient {
190
190
return plan
191
191
}
192
192
193
- /// Create a ``ExecutePlanRequest`` instance with the given session ID and plan.
193
+ /// Create a ``ExecutePlanRequest`` instance with the given plan.
194
194
/// The operation ID is created by UUID.
195
195
/// - Parameters:
196
- /// - sessionID: A string for the existing session ID.
197
196
/// - plan: A plan to execute.
198
197
/// - Returns: An ``ExecutePlanRequest`` instance.
199
198
func getExecutePlanRequest( _ sessionID: String , _ plan: Plan ) async
@@ -202,15 +201,14 @@ public actor SparkConnectClient {
202
201
var request = ExecutePlanRequest ( )
203
202
request. clientType = clientType
204
203
request. userContext = userContext
205
- request. sessionID = sessionID
204
+ request. sessionID = self . sessionID!
206
205
request. operationID = UUID ( ) . uuidString
207
206
request. plan = plan
208
207
return request
209
208
}
210
209
211
- /// Create a ``AnalyzePlanRequest`` instance with the given session ID and plan.
210
+ /// Create a ``AnalyzePlanRequest`` instance with the given plan.
212
211
/// - Parameters:
213
- /// - sessionID: A string for the existing session ID.
214
212
/// - plan: A plan to analyze.
215
213
/// - Returns: An ``AnalyzePlanRequest`` instance
216
214
func getAnalyzePlanRequest( _ sessionID: String , _ plan: Plan ) async
@@ -219,7 +217,7 @@ public actor SparkConnectClient {
219
217
var request = AnalyzePlanRequest ( )
220
218
request. clientType = clientType
221
219
request. userContext = userContext
222
- request. sessionID = sessionID
220
+ request. sessionID = self . sessionID!
223
221
var schema = AnalyzePlanRequest . Schema ( )
224
222
schema. plan = plan
225
223
request. analyze = . schema( schema)
0 commit comments