@databricks/sql 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,7 +52,9 @@ ttypes.TProtocolVersion = {
52
52
  '42247' : 'SPARK_CLI_SERVICE_PROTOCOL_V7',
53
53
  'SPARK_CLI_SERVICE_PROTOCOL_V7' : 42247,
54
54
  '42248' : 'SPARK_CLI_SERVICE_PROTOCOL_V8',
55
- 'SPARK_CLI_SERVICE_PROTOCOL_V8' : 42248
55
+ 'SPARK_CLI_SERVICE_PROTOCOL_V8' : 42248,
56
+ '42249' : 'SPARK_CLI_SERVICE_PROTOCOL_V9',
57
+ 'SPARK_CLI_SERVICE_PROTOCOL_V9' : 42249
56
58
  };
57
59
  ttypes.TTypeId = {
58
60
  '0' : 'BOOLEAN_TYPE',
@@ -124,20 +126,6 @@ ttypes.TDBSqlArrowLayout = {
124
126
  '1' : 'ARROW_STREAMING',
125
127
  'ARROW_STREAMING' : 1
126
128
  };
127
- ttypes.TOperationIdempotencyType = {
128
- '0' : 'UNKNOWN',
129
- 'UNKNOWN' : 0,
130
- '1' : 'NON_IDEMPOTENT',
131
- 'NON_IDEMPOTENT' : 1,
132
- '2' : 'IDEMPOTENT',
133
- 'IDEMPOTENT' : 2
134
- };
135
- ttypes.TOperationTimeoutLevel = {
136
- '0' : 'CLUSTER',
137
- 'CLUSTER' : 0,
138
- '1' : 'SESSION',
139
- 'SESSION' : 1
140
- };
141
129
  ttypes.TStatusCode = {
142
130
  '0' : 'SUCCESS_STATUS',
143
131
  'SUCCESS_STATUS' : 0,
@@ -286,20 +274,6 @@ ttypes.TGetInfoType = {
286
274
  '10005' : 'CLI_MAX_IDENTIFIER_LEN',
287
275
  'CLI_MAX_IDENTIFIER_LEN' : 10005
288
276
  };
289
- ttypes.TResultPersistenceMode = {
290
- '0' : 'ONLY_LARGE_RESULTS',
291
- 'ONLY_LARGE_RESULTS' : 0,
292
- '1' : 'ALL_QUERY_RESULTS',
293
- 'ALL_QUERY_RESULTS' : 1,
294
- '2' : 'ALL_RESULTS',
295
- 'ALL_RESULTS' : 2
296
- };
297
- ttypes.TDBSqlCloseOperationReason = {
298
- '0' : 'NONE',
299
- 'NONE' : 0,
300
- '1' : 'COMMAND_INACTIVITY_TIMEOUT',
301
- 'COMMAND_INACTIVITY_TIMEOUT' : 1
302
- };
303
277
  ttypes.TCacheLookupResult = {
304
278
  '0' : 'CACHE_INELIGIBLE',
305
279
  'CACHE_INELIGIBLE' : 0,
@@ -310,28 +284,6 @@ ttypes.TCacheLookupResult = {
310
284
  '3' : 'CACHE_MISS',
311
285
  'CACHE_MISS' : 3
312
286
  };
313
- ttypes.TCloudFetchDisabledReason = {
314
- '0' : 'ARROW_SUPPORT',
315
- 'ARROW_SUPPORT' : 0,
316
- '1' : 'CLOUD_FETCH_SUPPORT',
317
- 'CLOUD_FETCH_SUPPORT' : 1,
318
- '2' : 'PROTOCOL_VERSION',
319
- 'PROTOCOL_VERSION' : 2,
320
- '3' : 'REGION_SUPPORT',
321
- 'REGION_SUPPORT' : 3,
322
- '4' : 'BLOCKLISTED_OPERATION',
323
- 'BLOCKLISTED_OPERATION' : 4,
324
- '5' : 'SMALL_RESULT_SIZE',
325
- 'SMALL_RESULT_SIZE' : 5,
326
- '6' : 'CUSTOMER_STORAGE_SUPPORT',
327
- 'CUSTOMER_STORAGE_SUPPORT' : 6,
328
- '7' : 'UNKNOWN',
329
- 'UNKNOWN' : 7
330
- };
331
- ttypes.TDBSqlManifestFileFormat = {
332
- '0' : 'THRIFT_GET_RESULT_SET_METADATA_RESP',
333
- 'THRIFT_GET_RESULT_SET_METADATA_RESP' : 0
334
- };
335
287
  ttypes.TFetchOrientation = {
336
288
  '0' : 'FETCH_NEXT',
337
289
  'FETCH_NEXT' : 0,
@@ -346,16 +298,6 @@ ttypes.TFetchOrientation = {
346
298
  '5' : 'FETCH_LAST',
347
299
  'FETCH_LAST' : 5
348
300
  };
349
- ttypes.TDBSqlFetchDisposition = {
350
- '0' : 'DISPOSITION_UNSPECIFIED',
351
- 'DISPOSITION_UNSPECIFIED' : 0,
352
- '1' : 'DISPOSITION_INLINE',
353
- 'DISPOSITION_INLINE' : 1,
354
- '2' : 'DISPOSITION_EXTERNAL_LINKS',
355
- 'DISPOSITION_EXTERNAL_LINKS' : 2,
356
- '3' : 'DISPOSITION_INTERNAL_DBFS',
357
- 'DISPOSITION_INTERNAL_DBFS' : 3
358
- };
359
301
  ttypes.TJobExecutionStatus = {
360
302
  '0' : 'IN_PROGRESS',
361
303
  'IN_PROGRESS' : 0,
@@ -3104,183 +3046,6 @@ TSparkArrowResultLink.prototype.write = function(output) {
3104
3046
  return;
3105
3047
  };
3106
3048
 
3107
- var TDBSqlCloudResultFile = module.exports.TDBSqlCloudResultFile = function(args) {
3108
- this.filePath = null;
3109
- this.startRowOffset = null;
3110
- this.rowCount = null;
3111
- this.uncompressedBytes = null;
3112
- this.compressedBytes = null;
3113
- this.fileLink = null;
3114
- this.linkExpiryTime = null;
3115
- this.httpHeaders = null;
3116
- if (args) {
3117
- if (args.filePath !== undefined && args.filePath !== null) {
3118
- this.filePath = args.filePath;
3119
- }
3120
- if (args.startRowOffset !== undefined && args.startRowOffset !== null) {
3121
- this.startRowOffset = args.startRowOffset;
3122
- }
3123
- if (args.rowCount !== undefined && args.rowCount !== null) {
3124
- this.rowCount = args.rowCount;
3125
- }
3126
- if (args.uncompressedBytes !== undefined && args.uncompressedBytes !== null) {
3127
- this.uncompressedBytes = args.uncompressedBytes;
3128
- }
3129
- if (args.compressedBytes !== undefined && args.compressedBytes !== null) {
3130
- this.compressedBytes = args.compressedBytes;
3131
- }
3132
- if (args.fileLink !== undefined && args.fileLink !== null) {
3133
- this.fileLink = args.fileLink;
3134
- }
3135
- if (args.linkExpiryTime !== undefined && args.linkExpiryTime !== null) {
3136
- this.linkExpiryTime = args.linkExpiryTime;
3137
- }
3138
- if (args.httpHeaders !== undefined && args.httpHeaders !== null) {
3139
- this.httpHeaders = Thrift.copyMap(args.httpHeaders, [null]);
3140
- }
3141
- }
3142
- };
3143
- TDBSqlCloudResultFile.prototype = {};
3144
- TDBSqlCloudResultFile.prototype.read = function(input) {
3145
- input.readStructBegin();
3146
- while (true) {
3147
- var ret = input.readFieldBegin();
3148
- var ftype = ret.ftype;
3149
- var fid = ret.fid;
3150
- if (ftype == Thrift.Type.STOP) {
3151
- break;
3152
- }
3153
- switch (fid) {
3154
- case 1:
3155
- if (ftype == Thrift.Type.STRING) {
3156
- this.filePath = input.readString();
3157
- } else {
3158
- input.skip(ftype);
3159
- }
3160
- break;
3161
- case 2:
3162
- if (ftype == Thrift.Type.I64) {
3163
- this.startRowOffset = input.readI64();
3164
- } else {
3165
- input.skip(ftype);
3166
- }
3167
- break;
3168
- case 3:
3169
- if (ftype == Thrift.Type.I64) {
3170
- this.rowCount = input.readI64();
3171
- } else {
3172
- input.skip(ftype);
3173
- }
3174
- break;
3175
- case 4:
3176
- if (ftype == Thrift.Type.I64) {
3177
- this.uncompressedBytes = input.readI64();
3178
- } else {
3179
- input.skip(ftype);
3180
- }
3181
- break;
3182
- case 5:
3183
- if (ftype == Thrift.Type.I64) {
3184
- this.compressedBytes = input.readI64();
3185
- } else {
3186
- input.skip(ftype);
3187
- }
3188
- break;
3189
- case 6:
3190
- if (ftype == Thrift.Type.STRING) {
3191
- this.fileLink = input.readString();
3192
- } else {
3193
- input.skip(ftype);
3194
- }
3195
- break;
3196
- case 7:
3197
- if (ftype == Thrift.Type.I64) {
3198
- this.linkExpiryTime = input.readI64();
3199
- } else {
3200
- input.skip(ftype);
3201
- }
3202
- break;
3203
- case 8:
3204
- if (ftype == Thrift.Type.MAP) {
3205
- this.httpHeaders = {};
3206
- var _rtmp384 = input.readMapBegin();
3207
- var _size83 = _rtmp384.size || 0;
3208
- for (var _i85 = 0; _i85 < _size83; ++_i85) {
3209
- var key86 = null;
3210
- var val87 = null;
3211
- key86 = input.readString();
3212
- val87 = input.readString();
3213
- this.httpHeaders[key86] = val87;
3214
- }
3215
- input.readMapEnd();
3216
- } else {
3217
- input.skip(ftype);
3218
- }
3219
- break;
3220
- default:
3221
- input.skip(ftype);
3222
- }
3223
- input.readFieldEnd();
3224
- }
3225
- input.readStructEnd();
3226
- return;
3227
- };
3228
-
3229
- TDBSqlCloudResultFile.prototype.write = function(output) {
3230
- output.writeStructBegin('TDBSqlCloudResultFile');
3231
- if (this.filePath !== null && this.filePath !== undefined) {
3232
- output.writeFieldBegin('filePath', Thrift.Type.STRING, 1);
3233
- output.writeString(this.filePath);
3234
- output.writeFieldEnd();
3235
- }
3236
- if (this.startRowOffset !== null && this.startRowOffset !== undefined) {
3237
- output.writeFieldBegin('startRowOffset', Thrift.Type.I64, 2);
3238
- output.writeI64(this.startRowOffset);
3239
- output.writeFieldEnd();
3240
- }
3241
- if (this.rowCount !== null && this.rowCount !== undefined) {
3242
- output.writeFieldBegin('rowCount', Thrift.Type.I64, 3);
3243
- output.writeI64(this.rowCount);
3244
- output.writeFieldEnd();
3245
- }
3246
- if (this.uncompressedBytes !== null && this.uncompressedBytes !== undefined) {
3247
- output.writeFieldBegin('uncompressedBytes', Thrift.Type.I64, 4);
3248
- output.writeI64(this.uncompressedBytes);
3249
- output.writeFieldEnd();
3250
- }
3251
- if (this.compressedBytes !== null && this.compressedBytes !== undefined) {
3252
- output.writeFieldBegin('compressedBytes', Thrift.Type.I64, 5);
3253
- output.writeI64(this.compressedBytes);
3254
- output.writeFieldEnd();
3255
- }
3256
- if (this.fileLink !== null && this.fileLink !== undefined) {
3257
- output.writeFieldBegin('fileLink', Thrift.Type.STRING, 6);
3258
- output.writeString(this.fileLink);
3259
- output.writeFieldEnd();
3260
- }
3261
- if (this.linkExpiryTime !== null && this.linkExpiryTime !== undefined) {
3262
- output.writeFieldBegin('linkExpiryTime', Thrift.Type.I64, 7);
3263
- output.writeI64(this.linkExpiryTime);
3264
- output.writeFieldEnd();
3265
- }
3266
- if (this.httpHeaders !== null && this.httpHeaders !== undefined) {
3267
- output.writeFieldBegin('httpHeaders', Thrift.Type.MAP, 8);
3268
- output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.httpHeaders));
3269
- for (var kiter88 in this.httpHeaders) {
3270
- if (this.httpHeaders.hasOwnProperty(kiter88)) {
3271
- var viter89 = this.httpHeaders[kiter88];
3272
- output.writeString(kiter88);
3273
- output.writeString(viter89);
3274
- }
3275
- }
3276
- output.writeMapEnd();
3277
- output.writeFieldEnd();
3278
- }
3279
- output.writeFieldStop();
3280
- output.writeStructEnd();
3281
- return;
3282
- };
3283
-
3284
3049
  var TRowSet = module.exports.TRowSet = function(args) {
3285
3050
  this.startRowOffset = null;
3286
3051
  this.rows = null;
@@ -3289,7 +3054,6 @@ var TRowSet = module.exports.TRowSet = function(args) {
3289
3054
  this.columnCount = null;
3290
3055
  this.arrowBatches = null;
3291
3056
  this.resultLinks = null;
3292
- this.cloudFetchResults = null;
3293
3057
  if (args) {
3294
3058
  if (args.startRowOffset !== undefined && args.startRowOffset !== null) {
3295
3059
  this.startRowOffset = args.startRowOffset;
@@ -3316,9 +3080,6 @@ var TRowSet = module.exports.TRowSet = function(args) {
3316
3080
  if (args.resultLinks !== undefined && args.resultLinks !== null) {
3317
3081
  this.resultLinks = Thrift.copyList(args.resultLinks, [ttypes.TSparkArrowResultLink]);
3318
3082
  }
3319
- if (args.cloudFetchResults !== undefined && args.cloudFetchResults !== null) {
3320
- this.cloudFetchResults = Thrift.copyList(args.cloudFetchResults, [ttypes.TDBSqlCloudResultFile]);
3321
- }
3322
3083
  }
3323
3084
  };
3324
3085
  TRowSet.prototype = {};
@@ -3342,13 +3103,13 @@ TRowSet.prototype.read = function(input) {
3342
3103
  case 2:
3343
3104
  if (ftype == Thrift.Type.LIST) {
3344
3105
  this.rows = [];
3345
- var _rtmp391 = input.readListBegin();
3346
- var _size90 = _rtmp391.size || 0;
3347
- for (var _i92 = 0; _i92 < _size90; ++_i92) {
3348
- var elem93 = null;
3349
- elem93 = new ttypes.TRow();
3350
- elem93.read(input);
3351
- this.rows.push(elem93);
3106
+ var _rtmp384 = input.readListBegin();
3107
+ var _size83 = _rtmp384.size || 0;
3108
+ for (var _i85 = 0; _i85 < _size83; ++_i85) {
3109
+ var elem86 = null;
3110
+ elem86 = new ttypes.TRow();
3111
+ elem86.read(input);
3112
+ this.rows.push(elem86);
3352
3113
  }
3353
3114
  input.readListEnd();
3354
3115
  } else {
@@ -3358,13 +3119,13 @@ TRowSet.prototype.read = function(input) {
3358
3119
  case 3:
3359
3120
  if (ftype == Thrift.Type.LIST) {
3360
3121
  this.columns = [];
3361
- var _rtmp395 = input.readListBegin();
3362
- var _size94 = _rtmp395.size || 0;
3363
- for (var _i96 = 0; _i96 < _size94; ++_i96) {
3364
- var elem97 = null;
3365
- elem97 = new ttypes.TColumn();
3366
- elem97.read(input);
3367
- this.columns.push(elem97);
3122
+ var _rtmp388 = input.readListBegin();
3123
+ var _size87 = _rtmp388.size || 0;
3124
+ for (var _i89 = 0; _i89 < _size87; ++_i89) {
3125
+ var elem90 = null;
3126
+ elem90 = new ttypes.TColumn();
3127
+ elem90.read(input);
3128
+ this.columns.push(elem90);
3368
3129
  }
3369
3130
  input.readListEnd();
3370
3131
  } else {
@@ -3388,13 +3149,13 @@ TRowSet.prototype.read = function(input) {
3388
3149
  case 1281:
3389
3150
  if (ftype == Thrift.Type.LIST) {
3390
3151
  this.arrowBatches = [];
3391
- var _rtmp399 = input.readListBegin();
3392
- var _size98 = _rtmp399.size || 0;
3393
- for (var _i100 = 0; _i100 < _size98; ++_i100) {
3394
- var elem101 = null;
3395
- elem101 = new ttypes.TSparkArrowBatch();
3396
- elem101.read(input);
3397
- this.arrowBatches.push(elem101);
3152
+ var _rtmp392 = input.readListBegin();
3153
+ var _size91 = _rtmp392.size || 0;
3154
+ for (var _i93 = 0; _i93 < _size91; ++_i93) {
3155
+ var elem94 = null;
3156
+ elem94 = new ttypes.TSparkArrowBatch();
3157
+ elem94.read(input);
3158
+ this.arrowBatches.push(elem94);
3398
3159
  }
3399
3160
  input.readListEnd();
3400
3161
  } else {
@@ -3404,29 +3165,13 @@ TRowSet.prototype.read = function(input) {
3404
3165
  case 1282:
3405
3166
  if (ftype == Thrift.Type.LIST) {
3406
3167
  this.resultLinks = [];
3407
- var _rtmp3103 = input.readListBegin();
3408
- var _size102 = _rtmp3103.size || 0;
3409
- for (var _i104 = 0; _i104 < _size102; ++_i104) {
3410
- var elem105 = null;
3411
- elem105 = new ttypes.TSparkArrowResultLink();
3412
- elem105.read(input);
3413
- this.resultLinks.push(elem105);
3414
- }
3415
- input.readListEnd();
3416
- } else {
3417
- input.skip(ftype);
3418
- }
3419
- break;
3420
- case 3329:
3421
- if (ftype == Thrift.Type.LIST) {
3422
- this.cloudFetchResults = [];
3423
- var _rtmp3107 = input.readListBegin();
3424
- var _size106 = _rtmp3107.size || 0;
3425
- for (var _i108 = 0; _i108 < _size106; ++_i108) {
3426
- var elem109 = null;
3427
- elem109 = new ttypes.TDBSqlCloudResultFile();
3428
- elem109.read(input);
3429
- this.cloudFetchResults.push(elem109);
3168
+ var _rtmp396 = input.readListBegin();
3169
+ var _size95 = _rtmp396.size || 0;
3170
+ for (var _i97 = 0; _i97 < _size95; ++_i97) {
3171
+ var elem98 = null;
3172
+ elem98 = new ttypes.TSparkArrowResultLink();
3173
+ elem98.read(input);
3174
+ this.resultLinks.push(elem98);
3430
3175
  }
3431
3176
  input.readListEnd();
3432
3177
  } else {
@@ -3452,10 +3197,10 @@ TRowSet.prototype.write = function(output) {
3452
3197
  if (this.rows !== null && this.rows !== undefined) {
3453
3198
  output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
3454
3199
  output.writeListBegin(Thrift.Type.STRUCT, this.rows.length);
3455
- for (var iter110 in this.rows) {
3456
- if (this.rows.hasOwnProperty(iter110)) {
3457
- iter110 = this.rows[iter110];
3458
- iter110.write(output);
3200
+ for (var iter99 in this.rows) {
3201
+ if (this.rows.hasOwnProperty(iter99)) {
3202
+ iter99 = this.rows[iter99];
3203
+ iter99.write(output);
3459
3204
  }
3460
3205
  }
3461
3206
  output.writeListEnd();
@@ -3464,10 +3209,10 @@ TRowSet.prototype.write = function(output) {
3464
3209
  if (this.columns !== null && this.columns !== undefined) {
3465
3210
  output.writeFieldBegin('columns', Thrift.Type.LIST, 3);
3466
3211
  output.writeListBegin(Thrift.Type.STRUCT, this.columns.length);
3467
- for (var iter111 in this.columns) {
3468
- if (this.columns.hasOwnProperty(iter111)) {
3469
- iter111 = this.columns[iter111];
3470
- iter111.write(output);
3212
+ for (var iter100 in this.columns) {
3213
+ if (this.columns.hasOwnProperty(iter100)) {
3214
+ iter100 = this.columns[iter100];
3215
+ iter100.write(output);
3471
3216
  }
3472
3217
  }
3473
3218
  output.writeListEnd();
@@ -3486,10 +3231,10 @@ TRowSet.prototype.write = function(output) {
3486
3231
  if (this.arrowBatches !== null && this.arrowBatches !== undefined) {
3487
3232
  output.writeFieldBegin('arrowBatches', Thrift.Type.LIST, 1281);
3488
3233
  output.writeListBegin(Thrift.Type.STRUCT, this.arrowBatches.length);
3489
- for (var iter112 in this.arrowBatches) {
3490
- if (this.arrowBatches.hasOwnProperty(iter112)) {
3491
- iter112 = this.arrowBatches[iter112];
3492
- iter112.write(output);
3234
+ for (var iter101 in this.arrowBatches) {
3235
+ if (this.arrowBatches.hasOwnProperty(iter101)) {
3236
+ iter101 = this.arrowBatches[iter101];
3237
+ iter101.write(output);
3493
3238
  }
3494
3239
  }
3495
3240
  output.writeListEnd();
@@ -3498,22 +3243,10 @@ TRowSet.prototype.write = function(output) {
3498
3243
  if (this.resultLinks !== null && this.resultLinks !== undefined) {
3499
3244
  output.writeFieldBegin('resultLinks', Thrift.Type.LIST, 1282);
3500
3245
  output.writeListBegin(Thrift.Type.STRUCT, this.resultLinks.length);
3501
- for (var iter113 in this.resultLinks) {
3502
- if (this.resultLinks.hasOwnProperty(iter113)) {
3503
- iter113 = this.resultLinks[iter113];
3504
- iter113.write(output);
3505
- }
3506
- }
3507
- output.writeListEnd();
3508
- output.writeFieldEnd();
3509
- }
3510
- if (this.cloudFetchResults !== null && this.cloudFetchResults !== undefined) {
3511
- output.writeFieldBegin('cloudFetchResults', Thrift.Type.LIST, 3329);
3512
- output.writeListBegin(Thrift.Type.STRUCT, this.cloudFetchResults.length);
3513
- for (var iter114 in this.cloudFetchResults) {
3514
- if (this.cloudFetchResults.hasOwnProperty(iter114)) {
3515
- iter114 = this.cloudFetchResults[iter114];
3516
- iter114.write(output);
3246
+ for (var iter102 in this.resultLinks) {
3247
+ if (this.resultLinks.hasOwnProperty(iter102)) {
3248
+ iter102 = this.resultLinks[iter102];
3249
+ iter102.write(output);
3517
3250
  }
3518
3251
  }
3519
3252
  output.writeListEnd();
@@ -3524,28 +3257,42 @@ TRowSet.prototype.write = function(output) {
3524
3257
  return;
3525
3258
  };
3526
3259
 
3527
- var TDBSqlTempView = module.exports.TDBSqlTempView = function(args) {
3528
- this.name = null;
3529
- this.sqlStatement = null;
3530
- this.properties = null;
3531
- this.viewSchema = null;
3260
+ var TStatus = module.exports.TStatus = function(args) {
3261
+ this.statusCode = null;
3262
+ this.infoMessages = null;
3263
+ this.sqlState = null;
3264
+ this.errorCode = null;
3265
+ this.errorMessage = null;
3266
+ this.displayMessage = null;
3267
+ this.errorDetailsJson = null;
3532
3268
  if (args) {
3533
- if (args.name !== undefined && args.name !== null) {
3534
- this.name = args.name;
3269
+ if (args.statusCode !== undefined && args.statusCode !== null) {
3270
+ this.statusCode = args.statusCode;
3271
+ } else {
3272
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field statusCode is unset!');
3273
+ }
3274
+ if (args.infoMessages !== undefined && args.infoMessages !== null) {
3275
+ this.infoMessages = Thrift.copyList(args.infoMessages, [null]);
3276
+ }
3277
+ if (args.sqlState !== undefined && args.sqlState !== null) {
3278
+ this.sqlState = args.sqlState;
3279
+ }
3280
+ if (args.errorCode !== undefined && args.errorCode !== null) {
3281
+ this.errorCode = args.errorCode;
3535
3282
  }
3536
- if (args.sqlStatement !== undefined && args.sqlStatement !== null) {
3537
- this.sqlStatement = args.sqlStatement;
3283
+ if (args.errorMessage !== undefined && args.errorMessage !== null) {
3284
+ this.errorMessage = args.errorMessage;
3538
3285
  }
3539
- if (args.properties !== undefined && args.properties !== null) {
3540
- this.properties = Thrift.copyMap(args.properties, [null]);
3286
+ if (args.displayMessage !== undefined && args.displayMessage !== null) {
3287
+ this.displayMessage = args.displayMessage;
3541
3288
  }
3542
- if (args.viewSchema !== undefined && args.viewSchema !== null) {
3543
- this.viewSchema = args.viewSchema;
3289
+ if (args.errorDetailsJson !== undefined && args.errorDetailsJson !== null) {
3290
+ this.errorDetailsJson = args.errorDetailsJson;
3544
3291
  }
3545
3292
  }
3546
3293
  };
3547
- TDBSqlTempView.prototype = {};
3548
- TDBSqlTempView.prototype.read = function(input) {
3294
+ TStatus.prototype = {};
3295
+ TStatus.prototype.read = function(input) {
3549
3296
  input.readStructBegin();
3550
3297
  while (true) {
3551
3298
  var ret = input.readFieldBegin();
@@ -3556,39 +3303,58 @@ TDBSqlTempView.prototype.read = function(input) {
3556
3303
  }
3557
3304
  switch (fid) {
3558
3305
  case 1:
3559
- if (ftype == Thrift.Type.STRING) {
3560
- this.name = input.readString();
3306
+ if (ftype == Thrift.Type.I32) {
3307
+ this.statusCode = input.readI32();
3561
3308
  } else {
3562
3309
  input.skip(ftype);
3563
3310
  }
3564
3311
  break;
3565
3312
  case 2:
3566
- if (ftype == Thrift.Type.STRING) {
3567
- this.sqlStatement = input.readString();
3313
+ if (ftype == Thrift.Type.LIST) {
3314
+ this.infoMessages = [];
3315
+ var _rtmp3104 = input.readListBegin();
3316
+ var _size103 = _rtmp3104.size || 0;
3317
+ for (var _i105 = 0; _i105 < _size103; ++_i105) {
3318
+ var elem106 = null;
3319
+ elem106 = input.readString();
3320
+ this.infoMessages.push(elem106);
3321
+ }
3322
+ input.readListEnd();
3568
3323
  } else {
3569
3324
  input.skip(ftype);
3570
3325
  }
3571
3326
  break;
3572
3327
  case 3:
3573
- if (ftype == Thrift.Type.MAP) {
3574
- this.properties = {};
3575
- var _rtmp3116 = input.readMapBegin();
3576
- var _size115 = _rtmp3116.size || 0;
3577
- for (var _i117 = 0; _i117 < _size115; ++_i117) {
3578
- var key118 = null;
3579
- var val119 = null;
3580
- key118 = input.readString();
3581
- val119 = input.readString();
3582
- this.properties[key118] = val119;
3583
- }
3584
- input.readMapEnd();
3328
+ if (ftype == Thrift.Type.STRING) {
3329
+ this.sqlState = input.readString();
3585
3330
  } else {
3586
3331
  input.skip(ftype);
3587
3332
  }
3588
3333
  break;
3589
3334
  case 4:
3335
+ if (ftype == Thrift.Type.I32) {
3336
+ this.errorCode = input.readI32();
3337
+ } else {
3338
+ input.skip(ftype);
3339
+ }
3340
+ break;
3341
+ case 5:
3342
+ if (ftype == Thrift.Type.STRING) {
3343
+ this.errorMessage = input.readString();
3344
+ } else {
3345
+ input.skip(ftype);
3346
+ }
3347
+ break;
3348
+ case 6:
3590
3349
  if (ftype == Thrift.Type.STRING) {
3591
- this.viewSchema = input.readString();
3350
+ this.displayMessage = input.readString();
3351
+ } else {
3352
+ input.skip(ftype);
3353
+ }
3354
+ break;
3355
+ case 1281:
3356
+ if (ftype == Thrift.Type.STRING) {
3357
+ this.errorDetailsJson = input.readString();
3592
3358
  } else {
3593
3359
  input.skip(ftype);
3594
3360
  }
@@ -3602,721 +3368,28 @@ TDBSqlTempView.prototype.read = function(input) {
3602
3368
  return;
3603
3369
  };
3604
3370
 
3605
- TDBSqlTempView.prototype.write = function(output) {
3606
- output.writeStructBegin('TDBSqlTempView');
3607
- if (this.name !== null && this.name !== undefined) {
3608
- output.writeFieldBegin('name', Thrift.Type.STRING, 1);
3609
- output.writeString(this.name);
3610
- output.writeFieldEnd();
3611
- }
3612
- if (this.sqlStatement !== null && this.sqlStatement !== undefined) {
3613
- output.writeFieldBegin('sqlStatement', Thrift.Type.STRING, 2);
3614
- output.writeString(this.sqlStatement);
3371
+ TStatus.prototype.write = function(output) {
3372
+ output.writeStructBegin('TStatus');
3373
+ if (this.statusCode !== null && this.statusCode !== undefined) {
3374
+ output.writeFieldBegin('statusCode', Thrift.Type.I32, 1);
3375
+ output.writeI32(this.statusCode);
3615
3376
  output.writeFieldEnd();
3616
3377
  }
3617
- if (this.properties !== null && this.properties !== undefined) {
3618
- output.writeFieldBegin('properties', Thrift.Type.MAP, 3);
3619
- output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.properties));
3620
- for (var kiter120 in this.properties) {
3621
- if (this.properties.hasOwnProperty(kiter120)) {
3622
- var viter121 = this.properties[kiter120];
3623
- output.writeString(kiter120);
3624
- output.writeString(viter121);
3378
+ if (this.infoMessages !== null && this.infoMessages !== undefined) {
3379
+ output.writeFieldBegin('infoMessages', Thrift.Type.LIST, 2);
3380
+ output.writeListBegin(Thrift.Type.STRING, this.infoMessages.length);
3381
+ for (var iter107 in this.infoMessages) {
3382
+ if (this.infoMessages.hasOwnProperty(iter107)) {
3383
+ iter107 = this.infoMessages[iter107];
3384
+ output.writeString(iter107);
3625
3385
  }
3626
3386
  }
3627
- output.writeMapEnd();
3387
+ output.writeListEnd();
3628
3388
  output.writeFieldEnd();
3629
3389
  }
3630
- if (this.viewSchema !== null && this.viewSchema !== undefined) {
3631
- output.writeFieldBegin('viewSchema', Thrift.Type.STRING, 4);
3632
- output.writeString(this.viewSchema);
3633
- output.writeFieldEnd();
3634
- }
3635
- output.writeFieldStop();
3636
- output.writeStructEnd();
3637
- return;
3638
- };
3639
-
3640
- var TDBSqlSessionCapabilities = module.exports.TDBSqlSessionCapabilities = function(args) {
3641
- this.supportsMultipleCatalogs = null;
3642
- if (args) {
3643
- if (args.supportsMultipleCatalogs !== undefined && args.supportsMultipleCatalogs !== null) {
3644
- this.supportsMultipleCatalogs = args.supportsMultipleCatalogs;
3645
- }
3646
- }
3647
- };
3648
- TDBSqlSessionCapabilities.prototype = {};
3649
- TDBSqlSessionCapabilities.prototype.read = function(input) {
3650
- input.readStructBegin();
3651
- while (true) {
3652
- var ret = input.readFieldBegin();
3653
- var ftype = ret.ftype;
3654
- var fid = ret.fid;
3655
- if (ftype == Thrift.Type.STOP) {
3656
- break;
3657
- }
3658
- switch (fid) {
3659
- case 1:
3660
- if (ftype == Thrift.Type.BOOL) {
3661
- this.supportsMultipleCatalogs = input.readBool();
3662
- } else {
3663
- input.skip(ftype);
3664
- }
3665
- break;
3666
- case 0:
3667
- input.skip(ftype);
3668
- break;
3669
- default:
3670
- input.skip(ftype);
3671
- }
3672
- input.readFieldEnd();
3673
- }
3674
- input.readStructEnd();
3675
- return;
3676
- };
3677
-
3678
- TDBSqlSessionCapabilities.prototype.write = function(output) {
3679
- output.writeStructBegin('TDBSqlSessionCapabilities');
3680
- if (this.supportsMultipleCatalogs !== null && this.supportsMultipleCatalogs !== undefined) {
3681
- output.writeFieldBegin('supportsMultipleCatalogs', Thrift.Type.BOOL, 1);
3682
- output.writeBool(this.supportsMultipleCatalogs);
3683
- output.writeFieldEnd();
3684
- }
3685
- output.writeFieldStop();
3686
- output.writeStructEnd();
3687
- return;
3688
- };
3689
-
3690
- var TExpressionInfo = module.exports.TExpressionInfo = function(args) {
3691
- this.className = null;
3692
- this.usage = null;
3693
- this.name = null;
3694
- this.extended = null;
3695
- this.db = null;
3696
- this.arguments = null;
3697
- this.examples = null;
3698
- this.note = null;
3699
- this.group = null;
3700
- this.since = null;
3701
- this.deprecated = null;
3702
- this.source = null;
3703
- if (args) {
3704
- if (args.className !== undefined && args.className !== null) {
3705
- this.className = args.className;
3706
- }
3707
- if (args.usage !== undefined && args.usage !== null) {
3708
- this.usage = args.usage;
3709
- }
3710
- if (args.name !== undefined && args.name !== null) {
3711
- this.name = args.name;
3712
- }
3713
- if (args.extended !== undefined && args.extended !== null) {
3714
- this.extended = args.extended;
3715
- }
3716
- if (args.db !== undefined && args.db !== null) {
3717
- this.db = args.db;
3718
- }
3719
- if (args.arguments !== undefined && args.arguments !== null) {
3720
- this.arguments = args.arguments;
3721
- }
3722
- if (args.examples !== undefined && args.examples !== null) {
3723
- this.examples = args.examples;
3724
- }
3725
- if (args.note !== undefined && args.note !== null) {
3726
- this.note = args.note;
3727
- }
3728
- if (args.group !== undefined && args.group !== null) {
3729
- this.group = args.group;
3730
- }
3731
- if (args.since !== undefined && args.since !== null) {
3732
- this.since = args.since;
3733
- }
3734
- if (args.deprecated !== undefined && args.deprecated !== null) {
3735
- this.deprecated = args.deprecated;
3736
- }
3737
- if (args.source !== undefined && args.source !== null) {
3738
- this.source = args.source;
3739
- }
3740
- }
3741
- };
3742
- TExpressionInfo.prototype = {};
3743
- TExpressionInfo.prototype.read = function(input) {
3744
- input.readStructBegin();
3745
- while (true) {
3746
- var ret = input.readFieldBegin();
3747
- var ftype = ret.ftype;
3748
- var fid = ret.fid;
3749
- if (ftype == Thrift.Type.STOP) {
3750
- break;
3751
- }
3752
- switch (fid) {
3753
- case 1:
3754
- if (ftype == Thrift.Type.STRING) {
3755
- this.className = input.readString();
3756
- } else {
3757
- input.skip(ftype);
3758
- }
3759
- break;
3760
- case 2:
3761
- if (ftype == Thrift.Type.STRING) {
3762
- this.usage = input.readString();
3763
- } else {
3764
- input.skip(ftype);
3765
- }
3766
- break;
3767
- case 3:
3768
- if (ftype == Thrift.Type.STRING) {
3769
- this.name = input.readString();
3770
- } else {
3771
- input.skip(ftype);
3772
- }
3773
- break;
3774
- case 4:
3775
- if (ftype == Thrift.Type.STRING) {
3776
- this.extended = input.readString();
3777
- } else {
3778
- input.skip(ftype);
3779
- }
3780
- break;
3781
- case 5:
3782
- if (ftype == Thrift.Type.STRING) {
3783
- this.db = input.readString();
3784
- } else {
3785
- input.skip(ftype);
3786
- }
3787
- break;
3788
- case 6:
3789
- if (ftype == Thrift.Type.STRING) {
3790
- this.arguments = input.readString();
3791
- } else {
3792
- input.skip(ftype);
3793
- }
3794
- break;
3795
- case 7:
3796
- if (ftype == Thrift.Type.STRING) {
3797
- this.examples = input.readString();
3798
- } else {
3799
- input.skip(ftype);
3800
- }
3801
- break;
3802
- case 8:
3803
- if (ftype == Thrift.Type.STRING) {
3804
- this.note = input.readString();
3805
- } else {
3806
- input.skip(ftype);
3807
- }
3808
- break;
3809
- case 9:
3810
- if (ftype == Thrift.Type.STRING) {
3811
- this.group = input.readString();
3812
- } else {
3813
- input.skip(ftype);
3814
- }
3815
- break;
3816
- case 10:
3817
- if (ftype == Thrift.Type.STRING) {
3818
- this.since = input.readString();
3819
- } else {
3820
- input.skip(ftype);
3821
- }
3822
- break;
3823
- case 11:
3824
- if (ftype == Thrift.Type.STRING) {
3825
- this.deprecated = input.readString();
3826
- } else {
3827
- input.skip(ftype);
3828
- }
3829
- break;
3830
- case 12:
3831
- if (ftype == Thrift.Type.STRING) {
3832
- this.source = input.readString();
3833
- } else {
3834
- input.skip(ftype);
3835
- }
3836
- break;
3837
- default:
3838
- input.skip(ftype);
3839
- }
3840
- input.readFieldEnd();
3841
- }
3842
- input.readStructEnd();
3843
- return;
3844
- };
3845
-
3846
- TExpressionInfo.prototype.write = function(output) {
3847
- output.writeStructBegin('TExpressionInfo');
3848
- if (this.className !== null && this.className !== undefined) {
3849
- output.writeFieldBegin('className', Thrift.Type.STRING, 1);
3850
- output.writeString(this.className);
3851
- output.writeFieldEnd();
3852
- }
3853
- if (this.usage !== null && this.usage !== undefined) {
3854
- output.writeFieldBegin('usage', Thrift.Type.STRING, 2);
3855
- output.writeString(this.usage);
3856
- output.writeFieldEnd();
3857
- }
3858
- if (this.name !== null && this.name !== undefined) {
3859
- output.writeFieldBegin('name', Thrift.Type.STRING, 3);
3860
- output.writeString(this.name);
3861
- output.writeFieldEnd();
3862
- }
3863
- if (this.extended !== null && this.extended !== undefined) {
3864
- output.writeFieldBegin('extended', Thrift.Type.STRING, 4);
3865
- output.writeString(this.extended);
3866
- output.writeFieldEnd();
3867
- }
3868
- if (this.db !== null && this.db !== undefined) {
3869
- output.writeFieldBegin('db', Thrift.Type.STRING, 5);
3870
- output.writeString(this.db);
3871
- output.writeFieldEnd();
3872
- }
3873
- if (this.arguments !== null && this.arguments !== undefined) {
3874
- output.writeFieldBegin('arguments', Thrift.Type.STRING, 6);
3875
- output.writeString(this.arguments);
3876
- output.writeFieldEnd();
3877
- }
3878
- if (this.examples !== null && this.examples !== undefined) {
3879
- output.writeFieldBegin('examples', Thrift.Type.STRING, 7);
3880
- output.writeString(this.examples);
3881
- output.writeFieldEnd();
3882
- }
3883
- if (this.note !== null && this.note !== undefined) {
3884
- output.writeFieldBegin('note', Thrift.Type.STRING, 8);
3885
- output.writeString(this.note);
3886
- output.writeFieldEnd();
3887
- }
3888
- if (this.group !== null && this.group !== undefined) {
3889
- output.writeFieldBegin('group', Thrift.Type.STRING, 9);
3890
- output.writeString(this.group);
3891
- output.writeFieldEnd();
3892
- }
3893
- if (this.since !== null && this.since !== undefined) {
3894
- output.writeFieldBegin('since', Thrift.Type.STRING, 10);
3895
- output.writeString(this.since);
3896
- output.writeFieldEnd();
3897
- }
3898
- if (this.deprecated !== null && this.deprecated !== undefined) {
3899
- output.writeFieldBegin('deprecated', Thrift.Type.STRING, 11);
3900
- output.writeString(this.deprecated);
3901
- output.writeFieldEnd();
3902
- }
3903
- if (this.source !== null && this.source !== undefined) {
3904
- output.writeFieldBegin('source', Thrift.Type.STRING, 12);
3905
- output.writeString(this.source);
3906
- output.writeFieldEnd();
3907
- }
3908
- output.writeFieldStop();
3909
- output.writeStructEnd();
3910
- return;
3911
- };
3912
-
3913
- var TDBSqlConfValue = module.exports.TDBSqlConfValue = function(args) {
3914
- this.value = null;
3915
- if (args) {
3916
- if (args.value !== undefined && args.value !== null) {
3917
- this.value = args.value;
3918
- }
3919
- }
3920
- };
3921
- TDBSqlConfValue.prototype = {};
3922
- TDBSqlConfValue.prototype.read = function(input) {
3923
- input.readStructBegin();
3924
- while (true) {
3925
- var ret = input.readFieldBegin();
3926
- var ftype = ret.ftype;
3927
- var fid = ret.fid;
3928
- if (ftype == Thrift.Type.STOP) {
3929
- break;
3930
- }
3931
- switch (fid) {
3932
- case 1:
3933
- if (ftype == Thrift.Type.STRING) {
3934
- this.value = input.readString();
3935
- } else {
3936
- input.skip(ftype);
3937
- }
3938
- break;
3939
- case 0:
3940
- input.skip(ftype);
3941
- break;
3942
- default:
3943
- input.skip(ftype);
3944
- }
3945
- input.readFieldEnd();
3946
- }
3947
- input.readStructEnd();
3948
- return;
3949
- };
3950
-
3951
- TDBSqlConfValue.prototype.write = function(output) {
3952
- output.writeStructBegin('TDBSqlConfValue');
3953
- if (this.value !== null && this.value !== undefined) {
3954
- output.writeFieldBegin('value', Thrift.Type.STRING, 1);
3955
- output.writeString(this.value);
3956
- output.writeFieldEnd();
3957
- }
3958
- output.writeFieldStop();
3959
- output.writeStructEnd();
3960
- return;
3961
- };
3962
-
3963
- var TDBSqlSessionConf = module.exports.TDBSqlSessionConf = function(args) {
3964
- this.confs = null;
3965
- this.tempViews = null;
3966
- this.currentDatabase = null;
3967
- this.currentCatalog = null;
3968
- this.sessionCapabilities = null;
3969
- this.expressionsInfos = null;
3970
- this.internalConfs = null;
3971
- if (args) {
3972
- if (args.confs !== undefined && args.confs !== null) {
3973
- this.confs = Thrift.copyMap(args.confs, [null]);
3974
- }
3975
- if (args.tempViews !== undefined && args.tempViews !== null) {
3976
- this.tempViews = Thrift.copyList(args.tempViews, [ttypes.TDBSqlTempView]);
3977
- }
3978
- if (args.currentDatabase !== undefined && args.currentDatabase !== null) {
3979
- this.currentDatabase = args.currentDatabase;
3980
- }
3981
- if (args.currentCatalog !== undefined && args.currentCatalog !== null) {
3982
- this.currentCatalog = args.currentCatalog;
3983
- }
3984
- if (args.sessionCapabilities !== undefined && args.sessionCapabilities !== null) {
3985
- this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities(args.sessionCapabilities);
3986
- }
3987
- if (args.expressionsInfos !== undefined && args.expressionsInfos !== null) {
3988
- this.expressionsInfos = Thrift.copyList(args.expressionsInfos, [ttypes.TExpressionInfo]);
3989
- }
3990
- if (args.internalConfs !== undefined && args.internalConfs !== null) {
3991
- this.internalConfs = Thrift.copyMap(args.internalConfs, [ttypes.TDBSqlConfValue]);
3992
- }
3993
- }
3994
- };
3995
- TDBSqlSessionConf.prototype = {};
3996
- TDBSqlSessionConf.prototype.read = function(input) {
3997
- input.readStructBegin();
3998
- while (true) {
3999
- var ret = input.readFieldBegin();
4000
- var ftype = ret.ftype;
4001
- var fid = ret.fid;
4002
- if (ftype == Thrift.Type.STOP) {
4003
- break;
4004
- }
4005
- switch (fid) {
4006
- case 1:
4007
- if (ftype == Thrift.Type.MAP) {
4008
- this.confs = {};
4009
- var _rtmp3123 = input.readMapBegin();
4010
- var _size122 = _rtmp3123.size || 0;
4011
- for (var _i124 = 0; _i124 < _size122; ++_i124) {
4012
- var key125 = null;
4013
- var val126 = null;
4014
- key125 = input.readString();
4015
- val126 = input.readString();
4016
- this.confs[key125] = val126;
4017
- }
4018
- input.readMapEnd();
4019
- } else {
4020
- input.skip(ftype);
4021
- }
4022
- break;
4023
- case 2:
4024
- if (ftype == Thrift.Type.LIST) {
4025
- this.tempViews = [];
4026
- var _rtmp3128 = input.readListBegin();
4027
- var _size127 = _rtmp3128.size || 0;
4028
- for (var _i129 = 0; _i129 < _size127; ++_i129) {
4029
- var elem130 = null;
4030
- elem130 = new ttypes.TDBSqlTempView();
4031
- elem130.read(input);
4032
- this.tempViews.push(elem130);
4033
- }
4034
- input.readListEnd();
4035
- } else {
4036
- input.skip(ftype);
4037
- }
4038
- break;
4039
- case 3:
4040
- if (ftype == Thrift.Type.STRING) {
4041
- this.currentDatabase = input.readString();
4042
- } else {
4043
- input.skip(ftype);
4044
- }
4045
- break;
4046
- case 4:
4047
- if (ftype == Thrift.Type.STRING) {
4048
- this.currentCatalog = input.readString();
4049
- } else {
4050
- input.skip(ftype);
4051
- }
4052
- break;
4053
- case 5:
4054
- if (ftype == Thrift.Type.STRUCT) {
4055
- this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities();
4056
- this.sessionCapabilities.read(input);
4057
- } else {
4058
- input.skip(ftype);
4059
- }
4060
- break;
4061
- case 6:
4062
- if (ftype == Thrift.Type.LIST) {
4063
- this.expressionsInfos = [];
4064
- var _rtmp3132 = input.readListBegin();
4065
- var _size131 = _rtmp3132.size || 0;
4066
- for (var _i133 = 0; _i133 < _size131; ++_i133) {
4067
- var elem134 = null;
4068
- elem134 = new ttypes.TExpressionInfo();
4069
- elem134.read(input);
4070
- this.expressionsInfos.push(elem134);
4071
- }
4072
- input.readListEnd();
4073
- } else {
4074
- input.skip(ftype);
4075
- }
4076
- break;
4077
- case 7:
4078
- if (ftype == Thrift.Type.MAP) {
4079
- this.internalConfs = {};
4080
- var _rtmp3136 = input.readMapBegin();
4081
- var _size135 = _rtmp3136.size || 0;
4082
- for (var _i137 = 0; _i137 < _size135; ++_i137) {
4083
- var key138 = null;
4084
- var val139 = null;
4085
- key138 = input.readString();
4086
- val139 = new ttypes.TDBSqlConfValue();
4087
- val139.read(input);
4088
- this.internalConfs[key138] = val139;
4089
- }
4090
- input.readMapEnd();
4091
- } else {
4092
- input.skip(ftype);
4093
- }
4094
- break;
4095
- default:
4096
- input.skip(ftype);
4097
- }
4098
- input.readFieldEnd();
4099
- }
4100
- input.readStructEnd();
4101
- return;
4102
- };
4103
-
4104
- TDBSqlSessionConf.prototype.write = function(output) {
4105
- output.writeStructBegin('TDBSqlSessionConf');
4106
- if (this.confs !== null && this.confs !== undefined) {
4107
- output.writeFieldBegin('confs', Thrift.Type.MAP, 1);
4108
- output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confs));
4109
- for (var kiter140 in this.confs) {
4110
- if (this.confs.hasOwnProperty(kiter140)) {
4111
- var viter141 = this.confs[kiter140];
4112
- output.writeString(kiter140);
4113
- output.writeString(viter141);
4114
- }
4115
- }
4116
- output.writeMapEnd();
4117
- output.writeFieldEnd();
4118
- }
4119
- if (this.tempViews !== null && this.tempViews !== undefined) {
4120
- output.writeFieldBegin('tempViews', Thrift.Type.LIST, 2);
4121
- output.writeListBegin(Thrift.Type.STRUCT, this.tempViews.length);
4122
- for (var iter142 in this.tempViews) {
4123
- if (this.tempViews.hasOwnProperty(iter142)) {
4124
- iter142 = this.tempViews[iter142];
4125
- iter142.write(output);
4126
- }
4127
- }
4128
- output.writeListEnd();
4129
- output.writeFieldEnd();
4130
- }
4131
- if (this.currentDatabase !== null && this.currentDatabase !== undefined) {
4132
- output.writeFieldBegin('currentDatabase', Thrift.Type.STRING, 3);
4133
- output.writeString(this.currentDatabase);
4134
- output.writeFieldEnd();
4135
- }
4136
- if (this.currentCatalog !== null && this.currentCatalog !== undefined) {
4137
- output.writeFieldBegin('currentCatalog', Thrift.Type.STRING, 4);
4138
- output.writeString(this.currentCatalog);
4139
- output.writeFieldEnd();
4140
- }
4141
- if (this.sessionCapabilities !== null && this.sessionCapabilities !== undefined) {
4142
- output.writeFieldBegin('sessionCapabilities', Thrift.Type.STRUCT, 5);
4143
- this.sessionCapabilities.write(output);
4144
- output.writeFieldEnd();
4145
- }
4146
- if (this.expressionsInfos !== null && this.expressionsInfos !== undefined) {
4147
- output.writeFieldBegin('expressionsInfos', Thrift.Type.LIST, 6);
4148
- output.writeListBegin(Thrift.Type.STRUCT, this.expressionsInfos.length);
4149
- for (var iter143 in this.expressionsInfos) {
4150
- if (this.expressionsInfos.hasOwnProperty(iter143)) {
4151
- iter143 = this.expressionsInfos[iter143];
4152
- iter143.write(output);
4153
- }
4154
- }
4155
- output.writeListEnd();
4156
- output.writeFieldEnd();
4157
- }
4158
- if (this.internalConfs !== null && this.internalConfs !== undefined) {
4159
- output.writeFieldBegin('internalConfs', Thrift.Type.MAP, 7);
4160
- output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.internalConfs));
4161
- for (var kiter144 in this.internalConfs) {
4162
- if (this.internalConfs.hasOwnProperty(kiter144)) {
4163
- var viter145 = this.internalConfs[kiter144];
4164
- output.writeString(kiter144);
4165
- viter145.write(output);
4166
- }
4167
- }
4168
- output.writeMapEnd();
4169
- output.writeFieldEnd();
4170
- }
4171
- output.writeFieldStop();
4172
- output.writeStructEnd();
4173
- return;
4174
- };
4175
-
4176
- var TStatus = module.exports.TStatus = function(args) {
4177
- this.statusCode = null;
4178
- this.infoMessages = null;
4179
- this.sqlState = null;
4180
- this.errorCode = null;
4181
- this.errorMessage = null;
4182
- this.displayMessage = null;
4183
- this.errorDetailsJson = null;
4184
- this.responseValidation = null;
4185
- if (args) {
4186
- if (args.statusCode !== undefined && args.statusCode !== null) {
4187
- this.statusCode = args.statusCode;
4188
- } else {
4189
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field statusCode is unset!');
4190
- }
4191
- if (args.infoMessages !== undefined && args.infoMessages !== null) {
4192
- this.infoMessages = Thrift.copyList(args.infoMessages, [null]);
4193
- }
4194
- if (args.sqlState !== undefined && args.sqlState !== null) {
4195
- this.sqlState = args.sqlState;
4196
- }
4197
- if (args.errorCode !== undefined && args.errorCode !== null) {
4198
- this.errorCode = args.errorCode;
4199
- }
4200
- if (args.errorMessage !== undefined && args.errorMessage !== null) {
4201
- this.errorMessage = args.errorMessage;
4202
- }
4203
- if (args.displayMessage !== undefined && args.displayMessage !== null) {
4204
- this.displayMessage = args.displayMessage;
4205
- }
4206
- if (args.errorDetailsJson !== undefined && args.errorDetailsJson !== null) {
4207
- this.errorDetailsJson = args.errorDetailsJson;
4208
- }
4209
- if (args.responseValidation !== undefined && args.responseValidation !== null) {
4210
- this.responseValidation = args.responseValidation;
4211
- }
4212
- }
4213
- };
4214
- TStatus.prototype = {};
4215
- TStatus.prototype.read = function(input) {
4216
- input.readStructBegin();
4217
- while (true) {
4218
- var ret = input.readFieldBegin();
4219
- var ftype = ret.ftype;
4220
- var fid = ret.fid;
4221
- if (ftype == Thrift.Type.STOP) {
4222
- break;
4223
- }
4224
- switch (fid) {
4225
- case 1:
4226
- if (ftype == Thrift.Type.I32) {
4227
- this.statusCode = input.readI32();
4228
- } else {
4229
- input.skip(ftype);
4230
- }
4231
- break;
4232
- case 2:
4233
- if (ftype == Thrift.Type.LIST) {
4234
- this.infoMessages = [];
4235
- var _rtmp3147 = input.readListBegin();
4236
- var _size146 = _rtmp3147.size || 0;
4237
- for (var _i148 = 0; _i148 < _size146; ++_i148) {
4238
- var elem149 = null;
4239
- elem149 = input.readString();
4240
- this.infoMessages.push(elem149);
4241
- }
4242
- input.readListEnd();
4243
- } else {
4244
- input.skip(ftype);
4245
- }
4246
- break;
4247
- case 3:
4248
- if (ftype == Thrift.Type.STRING) {
4249
- this.sqlState = input.readString();
4250
- } else {
4251
- input.skip(ftype);
4252
- }
4253
- break;
4254
- case 4:
4255
- if (ftype == Thrift.Type.I32) {
4256
- this.errorCode = input.readI32();
4257
- } else {
4258
- input.skip(ftype);
4259
- }
4260
- break;
4261
- case 5:
4262
- if (ftype == Thrift.Type.STRING) {
4263
- this.errorMessage = input.readString();
4264
- } else {
4265
- input.skip(ftype);
4266
- }
4267
- break;
4268
- case 6:
4269
- if (ftype == Thrift.Type.STRING) {
4270
- this.displayMessage = input.readString();
4271
- } else {
4272
- input.skip(ftype);
4273
- }
4274
- break;
4275
- case 1281:
4276
- if (ftype == Thrift.Type.STRING) {
4277
- this.errorDetailsJson = input.readString();
4278
- } else {
4279
- input.skip(ftype);
4280
- }
4281
- break;
4282
- case 3329:
4283
- if (ftype == Thrift.Type.STRING) {
4284
- this.responseValidation = input.readBinary();
4285
- } else {
4286
- input.skip(ftype);
4287
- }
4288
- break;
4289
- default:
4290
- input.skip(ftype);
4291
- }
4292
- input.readFieldEnd();
4293
- }
4294
- input.readStructEnd();
4295
- return;
4296
- };
4297
-
4298
- TStatus.prototype.write = function(output) {
4299
- output.writeStructBegin('TStatus');
4300
- if (this.statusCode !== null && this.statusCode !== undefined) {
4301
- output.writeFieldBegin('statusCode', Thrift.Type.I32, 1);
4302
- output.writeI32(this.statusCode);
4303
- output.writeFieldEnd();
4304
- }
4305
- if (this.infoMessages !== null && this.infoMessages !== undefined) {
4306
- output.writeFieldBegin('infoMessages', Thrift.Type.LIST, 2);
4307
- output.writeListBegin(Thrift.Type.STRING, this.infoMessages.length);
4308
- for (var iter150 in this.infoMessages) {
4309
- if (this.infoMessages.hasOwnProperty(iter150)) {
4310
- iter150 = this.infoMessages[iter150];
4311
- output.writeString(iter150);
4312
- }
4313
- }
4314
- output.writeListEnd();
4315
- output.writeFieldEnd();
4316
- }
4317
- if (this.sqlState !== null && this.sqlState !== undefined) {
4318
- output.writeFieldBegin('sqlState', Thrift.Type.STRING, 3);
4319
- output.writeString(this.sqlState);
3390
+ if (this.sqlState !== null && this.sqlState !== undefined) {
3391
+ output.writeFieldBegin('sqlState', Thrift.Type.STRING, 3);
3392
+ output.writeString(this.sqlState);
4320
3393
  output.writeFieldEnd();
4321
3394
  }
4322
3395
  if (this.errorCode !== null && this.errorCode !== undefined) {
@@ -4339,11 +3412,6 @@ TStatus.prototype.write = function(output) {
4339
3412
  output.writeString(this.errorDetailsJson);
4340
3413
  output.writeFieldEnd();
4341
3414
  }
4342
- if (this.responseValidation !== null && this.responseValidation !== undefined) {
4343
- output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
4344
- output.writeBinary(this.responseValidation);
4345
- output.writeFieldEnd();
4346
- }
4347
3415
  output.writeFieldStop();
4348
3416
  output.writeStructEnd();
4349
3417
  return;
@@ -4415,7 +3483,6 @@ TNamespace.prototype.write = function(output) {
4415
3483
  var THandleIdentifier = module.exports.THandleIdentifier = function(args) {
4416
3484
  this.guid = null;
4417
3485
  this.secret = null;
4418
- this.executionVersion = null;
4419
3486
  if (args) {
4420
3487
  if (args.guid !== undefined && args.guid !== null) {
4421
3488
  this.guid = args.guid;
@@ -4427,9 +3494,6 @@ var THandleIdentifier = module.exports.THandleIdentifier = function(args) {
4427
3494
  } else {
4428
3495
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field secret is unset!');
4429
3496
  }
4430
- if (args.executionVersion !== undefined && args.executionVersion !== null) {
4431
- this.executionVersion = args.executionVersion;
4432
- }
4433
3497
  }
4434
3498
  };
4435
3499
  THandleIdentifier.prototype = {};
@@ -4457,13 +3521,6 @@ THandleIdentifier.prototype.read = function(input) {
4457
3521
  input.skip(ftype);
4458
3522
  }
4459
3523
  break;
4460
- case 3329:
4461
- if (ftype == Thrift.Type.I16) {
4462
- this.executionVersion = input.readI16();
4463
- } else {
4464
- input.skip(ftype);
4465
- }
4466
- break;
4467
3524
  default:
4468
3525
  input.skip(ftype);
4469
3526
  }
@@ -4485,11 +3542,6 @@ THandleIdentifier.prototype.write = function(output) {
4485
3542
  output.writeBinary(this.secret);
4486
3543
  output.writeFieldEnd();
4487
3544
  }
4488
- if (this.executionVersion !== null && this.executionVersion !== undefined) {
4489
- output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3329);
4490
- output.writeI16(this.executionVersion);
4491
- output.writeFieldEnd();
4492
- }
4493
3545
  output.writeFieldStop();
4494
3546
  output.writeStructEnd();
4495
3547
  return;
@@ -4497,16 +3549,12 @@ THandleIdentifier.prototype.write = function(output) {
4497
3549
 
4498
3550
  var TSessionHandle = module.exports.TSessionHandle = function(args) {
4499
3551
  this.sessionId = null;
4500
- this.serverProtocolVersion = null;
4501
3552
  if (args) {
4502
3553
  if (args.sessionId !== undefined && args.sessionId !== null) {
4503
3554
  this.sessionId = new ttypes.THandleIdentifier(args.sessionId);
4504
3555
  } else {
4505
3556
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field sessionId is unset!');
4506
3557
  }
4507
- if (args.serverProtocolVersion !== undefined && args.serverProtocolVersion !== null) {
4508
- this.serverProtocolVersion = args.serverProtocolVersion;
4509
- }
4510
3558
  }
4511
3559
  };
4512
3560
  TSessionHandle.prototype = {};
@@ -4528,13 +3576,9 @@ TSessionHandle.prototype.read = function(input) {
4528
3576
  input.skip(ftype);
4529
3577
  }
4530
3578
  break;
4531
- case 3329:
4532
- if (ftype == Thrift.Type.I32) {
4533
- this.serverProtocolVersion = input.readI32();
4534
- } else {
3579
+ case 0:
4535
3580
  input.skip(ftype);
4536
- }
4537
- break;
3581
+ break;
4538
3582
  default:
4539
3583
  input.skip(ftype);
4540
3584
  }
@@ -4551,11 +3595,6 @@ TSessionHandle.prototype.write = function(output) {
4551
3595
  this.sessionId.write(output);
4552
3596
  output.writeFieldEnd();
4553
3597
  }
4554
- if (this.serverProtocolVersion !== null && this.serverProtocolVersion !== undefined) {
4555
- output.writeFieldBegin('serverProtocolVersion', Thrift.Type.I32, 3329);
4556
- output.writeI32(this.serverProtocolVersion);
4557
- output.writeFieldEnd();
4558
- }
4559
3598
  output.writeFieldStop();
4560
3599
  output.writeStructEnd();
4561
3600
  return;
@@ -4673,7 +3712,6 @@ var TOpenSessionReq = module.exports.TOpenSessionReq = function(args) {
4673
3712
  this.connectionProperties = null;
4674
3713
  this.initialNamespace = null;
4675
3714
  this.canUseMultipleCatalogs = null;
4676
- this.sessionId = null;
4677
3715
  if (args) {
4678
3716
  if (args.client_protocol !== undefined && args.client_protocol !== null) {
4679
3717
  this.client_protocol = args.client_protocol;
@@ -4702,9 +3740,6 @@ var TOpenSessionReq = module.exports.TOpenSessionReq = function(args) {
4702
3740
  if (args.canUseMultipleCatalogs !== undefined && args.canUseMultipleCatalogs !== null) {
4703
3741
  this.canUseMultipleCatalogs = args.canUseMultipleCatalogs;
4704
3742
  }
4705
- if (args.sessionId !== undefined && args.sessionId !== null) {
4706
- this.sessionId = new ttypes.THandleIdentifier(args.sessionId);
4707
- }
4708
3743
  }
4709
3744
  };
4710
3745
  TOpenSessionReq.prototype = {};
@@ -4742,14 +3777,14 @@ TOpenSessionReq.prototype.read = function(input) {
4742
3777
  case 4:
4743
3778
  if (ftype == Thrift.Type.MAP) {
4744
3779
  this.configuration = {};
4745
- var _rtmp3152 = input.readMapBegin();
4746
- var _size151 = _rtmp3152.size || 0;
4747
- for (var _i153 = 0; _i153 < _size151; ++_i153) {
4748
- var key154 = null;
4749
- var val155 = null;
4750
- key154 = input.readString();
4751
- val155 = input.readString();
4752
- this.configuration[key154] = val155;
3780
+ var _rtmp3109 = input.readMapBegin();
3781
+ var _size108 = _rtmp3109.size || 0;
3782
+ for (var _i110 = 0; _i110 < _size108; ++_i110) {
3783
+ var key111 = null;
3784
+ var val112 = null;
3785
+ key111 = input.readString();
3786
+ val112 = input.readString();
3787
+ this.configuration[key111] = val112;
4753
3788
  }
4754
3789
  input.readMapEnd();
4755
3790
  } else {
@@ -4759,12 +3794,12 @@ TOpenSessionReq.prototype.read = function(input) {
4759
3794
  case 1281:
4760
3795
  if (ftype == Thrift.Type.LIST) {
4761
3796
  this.getInfos = [];
4762
- var _rtmp3157 = input.readListBegin();
4763
- var _size156 = _rtmp3157.size || 0;
4764
- for (var _i158 = 0; _i158 < _size156; ++_i158) {
4765
- var elem159 = null;
4766
- elem159 = input.readI32();
4767
- this.getInfos.push(elem159);
3797
+ var _rtmp3114 = input.readListBegin();
3798
+ var _size113 = _rtmp3114.size || 0;
3799
+ for (var _i115 = 0; _i115 < _size113; ++_i115) {
3800
+ var elem116 = null;
3801
+ elem116 = input.readI32();
3802
+ this.getInfos.push(elem116);
4768
3803
  }
4769
3804
  input.readListEnd();
4770
3805
  } else {
@@ -4781,14 +3816,14 @@ TOpenSessionReq.prototype.read = function(input) {
4781
3816
  case 1283:
4782
3817
  if (ftype == Thrift.Type.MAP) {
4783
3818
  this.connectionProperties = {};
4784
- var _rtmp3161 = input.readMapBegin();
4785
- var _size160 = _rtmp3161.size || 0;
4786
- for (var _i162 = 0; _i162 < _size160; ++_i162) {
4787
- var key163 = null;
4788
- var val164 = null;
4789
- key163 = input.readString();
4790
- val164 = input.readString();
4791
- this.connectionProperties[key163] = val164;
3819
+ var _rtmp3118 = input.readMapBegin();
3820
+ var _size117 = _rtmp3118.size || 0;
3821
+ for (var _i119 = 0; _i119 < _size117; ++_i119) {
3822
+ var key120 = null;
3823
+ var val121 = null;
3824
+ key120 = input.readString();
3825
+ val121 = input.readString();
3826
+ this.connectionProperties[key120] = val121;
4792
3827
  }
4793
3828
  input.readMapEnd();
4794
3829
  } else {
@@ -4810,14 +3845,6 @@ TOpenSessionReq.prototype.read = function(input) {
4810
3845
  input.skip(ftype);
4811
3846
  }
4812
3847
  break;
4813
- case 3329:
4814
- if (ftype == Thrift.Type.STRUCT) {
4815
- this.sessionId = new ttypes.THandleIdentifier();
4816
- this.sessionId.read(input);
4817
- } else {
4818
- input.skip(ftype);
4819
- }
4820
- break;
4821
3848
  default:
4822
3849
  input.skip(ftype);
4823
3850
  }
@@ -4847,11 +3874,11 @@ TOpenSessionReq.prototype.write = function(output) {
4847
3874
  if (this.configuration !== null && this.configuration !== undefined) {
4848
3875
  output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
4849
3876
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
4850
- for (var kiter165 in this.configuration) {
4851
- if (this.configuration.hasOwnProperty(kiter165)) {
4852
- var viter166 = this.configuration[kiter165];
4853
- output.writeString(kiter165);
4854
- output.writeString(viter166);
3877
+ for (var kiter122 in this.configuration) {
3878
+ if (this.configuration.hasOwnProperty(kiter122)) {
3879
+ var viter123 = this.configuration[kiter122];
3880
+ output.writeString(kiter122);
3881
+ output.writeString(viter123);
4855
3882
  }
4856
3883
  }
4857
3884
  output.writeMapEnd();
@@ -4860,10 +3887,10 @@ TOpenSessionReq.prototype.write = function(output) {
4860
3887
  if (this.getInfos !== null && this.getInfos !== undefined) {
4861
3888
  output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
4862
3889
  output.writeListBegin(Thrift.Type.I32, this.getInfos.length);
4863
- for (var iter167 in this.getInfos) {
4864
- if (this.getInfos.hasOwnProperty(iter167)) {
4865
- iter167 = this.getInfos[iter167];
4866
- output.writeI32(iter167);
3890
+ for (var iter124 in this.getInfos) {
3891
+ if (this.getInfos.hasOwnProperty(iter124)) {
3892
+ iter124 = this.getInfos[iter124];
3893
+ output.writeI32(iter124);
4867
3894
  }
4868
3895
  }
4869
3896
  output.writeListEnd();
@@ -4877,11 +3904,11 @@ TOpenSessionReq.prototype.write = function(output) {
4877
3904
  if (this.connectionProperties !== null && this.connectionProperties !== undefined) {
4878
3905
  output.writeFieldBegin('connectionProperties', Thrift.Type.MAP, 1283);
4879
3906
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.connectionProperties));
4880
- for (var kiter168 in this.connectionProperties) {
4881
- if (this.connectionProperties.hasOwnProperty(kiter168)) {
4882
- var viter169 = this.connectionProperties[kiter168];
4883
- output.writeString(kiter168);
4884
- output.writeString(viter169);
3907
+ for (var kiter125 in this.connectionProperties) {
3908
+ if (this.connectionProperties.hasOwnProperty(kiter125)) {
3909
+ var viter126 = this.connectionProperties[kiter125];
3910
+ output.writeString(kiter125);
3911
+ output.writeString(viter126);
4885
3912
  }
4886
3913
  }
4887
3914
  output.writeMapEnd();
@@ -4897,11 +3924,6 @@ TOpenSessionReq.prototype.write = function(output) {
4897
3924
  output.writeBool(this.canUseMultipleCatalogs);
4898
3925
  output.writeFieldEnd();
4899
3926
  }
4900
- if (this.sessionId !== null && this.sessionId !== undefined) {
4901
- output.writeFieldBegin('sessionId', Thrift.Type.STRUCT, 3329);
4902
- this.sessionId.write(output);
4903
- output.writeFieldEnd();
4904
- }
4905
3927
  output.writeFieldStop();
4906
3928
  output.writeStructEnd();
4907
3929
  return;
@@ -4980,14 +4002,14 @@ TOpenSessionResp.prototype.read = function(input) {
4980
4002
  case 4:
4981
4003
  if (ftype == Thrift.Type.MAP) {
4982
4004
  this.configuration = {};
4983
- var _rtmp3171 = input.readMapBegin();
4984
- var _size170 = _rtmp3171.size || 0;
4985
- for (var _i172 = 0; _i172 < _size170; ++_i172) {
4986
- var key173 = null;
4987
- var val174 = null;
4988
- key173 = input.readString();
4989
- val174 = input.readString();
4990
- this.configuration[key173] = val174;
4005
+ var _rtmp3128 = input.readMapBegin();
4006
+ var _size127 = _rtmp3128.size || 0;
4007
+ for (var _i129 = 0; _i129 < _size127; ++_i129) {
4008
+ var key130 = null;
4009
+ var val131 = null;
4010
+ key130 = input.readString();
4011
+ val131 = input.readString();
4012
+ this.configuration[key130] = val131;
4991
4013
  }
4992
4014
  input.readMapEnd();
4993
4015
  } else {
@@ -5012,13 +4034,13 @@ TOpenSessionResp.prototype.read = function(input) {
5012
4034
  case 1281:
5013
4035
  if (ftype == Thrift.Type.LIST) {
5014
4036
  this.getInfos = [];
5015
- var _rtmp3176 = input.readListBegin();
5016
- var _size175 = _rtmp3176.size || 0;
5017
- for (var _i177 = 0; _i177 < _size175; ++_i177) {
5018
- var elem178 = null;
5019
- elem178 = new ttypes.TGetInfoValue();
5020
- elem178.read(input);
5021
- this.getInfos.push(elem178);
4037
+ var _rtmp3133 = input.readListBegin();
4038
+ var _size132 = _rtmp3133.size || 0;
4039
+ for (var _i134 = 0; _i134 < _size132; ++_i134) {
4040
+ var elem135 = null;
4041
+ elem135 = new ttypes.TGetInfoValue();
4042
+ elem135.read(input);
4043
+ this.getInfos.push(elem135);
5022
4044
  }
5023
4045
  input.readListEnd();
5024
4046
  } else {
@@ -5054,11 +4076,11 @@ TOpenSessionResp.prototype.write = function(output) {
5054
4076
  if (this.configuration !== null && this.configuration !== undefined) {
5055
4077
  output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
5056
4078
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
5057
- for (var kiter179 in this.configuration) {
5058
- if (this.configuration.hasOwnProperty(kiter179)) {
5059
- var viter180 = this.configuration[kiter179];
5060
- output.writeString(kiter179);
5061
- output.writeString(viter180);
4079
+ for (var kiter136 in this.configuration) {
4080
+ if (this.configuration.hasOwnProperty(kiter136)) {
4081
+ var viter137 = this.configuration[kiter136];
4082
+ output.writeString(kiter136);
4083
+ output.writeString(viter137);
5062
4084
  }
5063
4085
  }
5064
4086
  output.writeMapEnd();
@@ -5077,10 +4099,10 @@ TOpenSessionResp.prototype.write = function(output) {
5077
4099
  if (this.getInfos !== null && this.getInfos !== undefined) {
5078
4100
  output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
5079
4101
  output.writeListBegin(Thrift.Type.STRUCT, this.getInfos.length);
5080
- for (var iter181 in this.getInfos) {
5081
- if (this.getInfos.hasOwnProperty(iter181)) {
5082
- iter181 = this.getInfos[iter181];
5083
- iter181.write(output);
4102
+ for (var iter138 in this.getInfos) {
4103
+ if (this.getInfos.hasOwnProperty(iter138)) {
4104
+ iter138 = this.getInfos[iter138];
4105
+ iter138.write(output);
5084
4106
  }
5085
4107
  }
5086
4108
  output.writeListEnd();
@@ -5327,7 +4349,6 @@ TGetInfoValue.prototype.write = function(output) {
5327
4349
  var TGetInfoReq = module.exports.TGetInfoReq = function(args) {
5328
4350
  this.sessionHandle = null;
5329
4351
  this.infoType = null;
5330
- this.sessionConf = null;
5331
4352
  if (args) {
5332
4353
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
5333
4354
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -5339,9 +4360,6 @@ var TGetInfoReq = module.exports.TGetInfoReq = function(args) {
5339
4360
  } else {
5340
4361
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field infoType is unset!');
5341
4362
  }
5342
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
5343
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
5344
- }
5345
4363
  }
5346
4364
  };
5347
4365
  TGetInfoReq.prototype = {};
@@ -5370,14 +4388,6 @@ TGetInfoReq.prototype.read = function(input) {
5370
4388
  input.skip(ftype);
5371
4389
  }
5372
4390
  break;
5373
- case 3329:
5374
- if (ftype == Thrift.Type.STRUCT) {
5375
- this.sessionConf = new ttypes.TDBSqlSessionConf();
5376
- this.sessionConf.read(input);
5377
- } else {
5378
- input.skip(ftype);
5379
- }
5380
- break;
5381
4391
  default:
5382
4392
  input.skip(ftype);
5383
4393
  }
@@ -5399,11 +4409,6 @@ TGetInfoReq.prototype.write = function(output) {
5399
4409
  output.writeI32(this.infoType);
5400
4410
  output.writeFieldEnd();
5401
4411
  }
5402
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
5403
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3329);
5404
- this.sessionConf.write(output);
5405
- output.writeFieldEnd();
5406
- }
5407
4412
  output.writeFieldStop();
5408
4413
  output.writeStructEnd();
5409
4414
  return;
@@ -5769,27 +4774,6 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
5769
4774
  this.parameters = null;
5770
4775
  this.maxBytesPerBatch = null;
5771
4776
  this.statementConf = null;
5772
- this.operationId = null;
5773
- this.sessionConf = null;
5774
- this.rejectHighCostQueries = null;
5775
- this.estimatedCost = null;
5776
- this.executionVersion = null;
5777
- this.requestValidation = null;
5778
- this.resultPersistenceMode = null;
5779
- this.trimArrowBatchesToLimit = null;
5780
- this.fetchDisposition = null;
5781
- this.enforceResultPersistenceMode = null;
5782
- this.statementList = null;
5783
- this.persistResultManifest = null;
5784
- this.resultRetentionSeconds = null;
5785
- this.resultByteLimit = null;
5786
- this.resultDataFormat = null;
5787
- this.originatingClientIdentity = null;
5788
- this.preferSingleFileResult = null;
5789
- this.preferDriverOnlyUpload = null;
5790
- this.enforceEmbeddedSchemaCorrectness = false;
5791
- this.idempotencyToken = null;
5792
- this.throwErrorOnByteLimitTruncation = null;
5793
4777
  if (args) {
5794
4778
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
5795
4779
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -5840,365 +4824,143 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
5840
4824
  if (args.statementConf !== undefined && args.statementConf !== null) {
5841
4825
  this.statementConf = new ttypes.TStatementConf(args.statementConf);
5842
4826
  }
5843
- if (args.operationId !== undefined && args.operationId !== null) {
5844
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
5845
- }
5846
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
5847
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
5848
- }
5849
- if (args.rejectHighCostQueries !== undefined && args.rejectHighCostQueries !== null) {
5850
- this.rejectHighCostQueries = args.rejectHighCostQueries;
5851
- }
5852
- if (args.estimatedCost !== undefined && args.estimatedCost !== null) {
5853
- this.estimatedCost = args.estimatedCost;
5854
- }
5855
- if (args.executionVersion !== undefined && args.executionVersion !== null) {
5856
- this.executionVersion = args.executionVersion;
5857
- }
5858
- if (args.requestValidation !== undefined && args.requestValidation !== null) {
5859
- this.requestValidation = args.requestValidation;
5860
- }
5861
- if (args.resultPersistenceMode !== undefined && args.resultPersistenceMode !== null) {
5862
- this.resultPersistenceMode = args.resultPersistenceMode;
5863
- }
5864
- if (args.trimArrowBatchesToLimit !== undefined && args.trimArrowBatchesToLimit !== null) {
5865
- this.trimArrowBatchesToLimit = args.trimArrowBatchesToLimit;
5866
- }
5867
- if (args.fetchDisposition !== undefined && args.fetchDisposition !== null) {
5868
- this.fetchDisposition = args.fetchDisposition;
5869
- }
5870
- if (args.enforceResultPersistenceMode !== undefined && args.enforceResultPersistenceMode !== null) {
5871
- this.enforceResultPersistenceMode = args.enforceResultPersistenceMode;
5872
- }
5873
- if (args.statementList !== undefined && args.statementList !== null) {
5874
- this.statementList = Thrift.copyList(args.statementList, [null]);
5875
- }
5876
- if (args.persistResultManifest !== undefined && args.persistResultManifest !== null) {
5877
- this.persistResultManifest = args.persistResultManifest;
5878
- }
5879
- if (args.resultRetentionSeconds !== undefined && args.resultRetentionSeconds !== null) {
5880
- this.resultRetentionSeconds = args.resultRetentionSeconds;
5881
- }
5882
- if (args.resultByteLimit !== undefined && args.resultByteLimit !== null) {
5883
- this.resultByteLimit = args.resultByteLimit;
5884
- }
5885
- if (args.resultDataFormat !== undefined && args.resultDataFormat !== null) {
5886
- this.resultDataFormat = new ttypes.TDBSqlResultFormat(args.resultDataFormat);
5887
- }
5888
- if (args.originatingClientIdentity !== undefined && args.originatingClientIdentity !== null) {
5889
- this.originatingClientIdentity = args.originatingClientIdentity;
5890
- }
5891
- if (args.preferSingleFileResult !== undefined && args.preferSingleFileResult !== null) {
5892
- this.preferSingleFileResult = args.preferSingleFileResult;
5893
- }
5894
- if (args.preferDriverOnlyUpload !== undefined && args.preferDriverOnlyUpload !== null) {
5895
- this.preferDriverOnlyUpload = args.preferDriverOnlyUpload;
5896
- }
5897
- if (args.enforceEmbeddedSchemaCorrectness !== undefined && args.enforceEmbeddedSchemaCorrectness !== null) {
5898
- this.enforceEmbeddedSchemaCorrectness = args.enforceEmbeddedSchemaCorrectness;
5899
- }
5900
- if (args.idempotencyToken !== undefined && args.idempotencyToken !== null) {
5901
- this.idempotencyToken = args.idempotencyToken;
5902
- }
5903
- if (args.throwErrorOnByteLimitTruncation !== undefined && args.throwErrorOnByteLimitTruncation !== null) {
5904
- this.throwErrorOnByteLimitTruncation = args.throwErrorOnByteLimitTruncation;
5905
- }
5906
4827
  }
5907
- };
5908
- TExecuteStatementReq.prototype = {};
5909
- TExecuteStatementReq.prototype.read = function(input) {
5910
- input.readStructBegin();
5911
- while (true) {
5912
- var ret = input.readFieldBegin();
5913
- var ftype = ret.ftype;
5914
- var fid = ret.fid;
5915
- if (ftype == Thrift.Type.STOP) {
5916
- break;
5917
- }
5918
- switch (fid) {
5919
- case 1:
5920
- if (ftype == Thrift.Type.STRUCT) {
5921
- this.sessionHandle = new ttypes.TSessionHandle();
5922
- this.sessionHandle.read(input);
5923
- } else {
5924
- input.skip(ftype);
5925
- }
5926
- break;
5927
- case 2:
5928
- if (ftype == Thrift.Type.STRING) {
5929
- this.statement = input.readString();
5930
- } else {
5931
- input.skip(ftype);
5932
- }
5933
- break;
5934
- case 3:
5935
- if (ftype == Thrift.Type.MAP) {
5936
- this.confOverlay = {};
5937
- var _rtmp3183 = input.readMapBegin();
5938
- var _size182 = _rtmp3183.size || 0;
5939
- for (var _i184 = 0; _i184 < _size182; ++_i184) {
5940
- var key185 = null;
5941
- var val186 = null;
5942
- key185 = input.readString();
5943
- val186 = input.readString();
5944
- this.confOverlay[key185] = val186;
5945
- }
5946
- input.readMapEnd();
5947
- } else {
5948
- input.skip(ftype);
5949
- }
5950
- break;
5951
- case 4:
5952
- if (ftype == Thrift.Type.BOOL) {
5953
- this.runAsync = input.readBool();
5954
- } else {
5955
- input.skip(ftype);
5956
- }
5957
- break;
5958
- case 1281:
5959
- if (ftype == Thrift.Type.STRUCT) {
5960
- this.getDirectResults = new ttypes.TSparkGetDirectResults();
5961
- this.getDirectResults.read(input);
5962
- } else {
5963
- input.skip(ftype);
5964
- }
5965
- break;
5966
- case 5:
5967
- if (ftype == Thrift.Type.I64) {
5968
- this.queryTimeout = input.readI64();
5969
- } else {
5970
- input.skip(ftype);
5971
- }
5972
- break;
5973
- case 1282:
5974
- if (ftype == Thrift.Type.BOOL) {
5975
- this.canReadArrowResult = input.readBool();
5976
- } else {
5977
- input.skip(ftype);
5978
- }
5979
- break;
5980
- case 1283:
5981
- if (ftype == Thrift.Type.BOOL) {
5982
- this.canDownloadResult = input.readBool();
5983
- } else {
5984
- input.skip(ftype);
5985
- }
5986
- break;
5987
- case 1284:
5988
- if (ftype == Thrift.Type.BOOL) {
5989
- this.canDecompressLZ4Result = input.readBool();
5990
- } else {
5991
- input.skip(ftype);
5992
- }
5993
- break;
5994
- case 1285:
5995
- if (ftype == Thrift.Type.I64) {
5996
- this.maxBytesPerFile = input.readI64();
5997
- } else {
5998
- input.skip(ftype);
5999
- }
6000
- break;
6001
- case 1286:
6002
- if (ftype == Thrift.Type.STRUCT) {
6003
- this.useArrowNativeTypes = new ttypes.TSparkArrowTypes();
6004
- this.useArrowNativeTypes.read(input);
6005
- } else {
6006
- input.skip(ftype);
6007
- }
6008
- break;
6009
- case 1287:
6010
- if (ftype == Thrift.Type.I64) {
6011
- this.resultRowLimit = input.readI64();
6012
- } else {
6013
- input.skip(ftype);
6014
- }
6015
- break;
6016
- case 1288:
6017
- if (ftype == Thrift.Type.LIST) {
6018
- this.parameters = [];
6019
- var _rtmp3188 = input.readListBegin();
6020
- var _size187 = _rtmp3188.size || 0;
6021
- for (var _i189 = 0; _i189 < _size187; ++_i189) {
6022
- var elem190 = null;
6023
- elem190 = new ttypes.TSparkParameter();
6024
- elem190.read(input);
6025
- this.parameters.push(elem190);
6026
- }
6027
- input.readListEnd();
6028
- } else {
6029
- input.skip(ftype);
6030
- }
6031
- break;
6032
- case 1289:
6033
- if (ftype == Thrift.Type.I64) {
6034
- this.maxBytesPerBatch = input.readI64();
6035
- } else {
6036
- input.skip(ftype);
6037
- }
4828
+ };
4829
+ TExecuteStatementReq.prototype = {};
4830
+ TExecuteStatementReq.prototype.read = function(input) {
4831
+ input.readStructBegin();
4832
+ while (true) {
4833
+ var ret = input.readFieldBegin();
4834
+ var ftype = ret.ftype;
4835
+ var fid = ret.fid;
4836
+ if (ftype == Thrift.Type.STOP) {
6038
4837
  break;
6039
- case 1296:
4838
+ }
4839
+ switch (fid) {
4840
+ case 1:
6040
4841
  if (ftype == Thrift.Type.STRUCT) {
6041
- this.statementConf = new ttypes.TStatementConf();
6042
- this.statementConf.read(input);
4842
+ this.sessionHandle = new ttypes.TSessionHandle();
4843
+ this.sessionHandle.read(input);
6043
4844
  } else {
6044
4845
  input.skip(ftype);
6045
4846
  }
6046
4847
  break;
6047
- case 3329:
6048
- if (ftype == Thrift.Type.STRUCT) {
6049
- this.operationId = new ttypes.THandleIdentifier();
6050
- this.operationId.read(input);
4848
+ case 2:
4849
+ if (ftype == Thrift.Type.STRING) {
4850
+ this.statement = input.readString();
6051
4851
  } else {
6052
4852
  input.skip(ftype);
6053
4853
  }
6054
4854
  break;
6055
- case 3330:
6056
- if (ftype == Thrift.Type.STRUCT) {
6057
- this.sessionConf = new ttypes.TDBSqlSessionConf();
6058
- this.sessionConf.read(input);
4855
+ case 3:
4856
+ if (ftype == Thrift.Type.MAP) {
4857
+ this.confOverlay = {};
4858
+ var _rtmp3140 = input.readMapBegin();
4859
+ var _size139 = _rtmp3140.size || 0;
4860
+ for (var _i141 = 0; _i141 < _size139; ++_i141) {
4861
+ var key142 = null;
4862
+ var val143 = null;
4863
+ key142 = input.readString();
4864
+ val143 = input.readString();
4865
+ this.confOverlay[key142] = val143;
4866
+ }
4867
+ input.readMapEnd();
6059
4868
  } else {
6060
4869
  input.skip(ftype);
6061
4870
  }
6062
4871
  break;
6063
- case 3331:
4872
+ case 4:
6064
4873
  if (ftype == Thrift.Type.BOOL) {
6065
- this.rejectHighCostQueries = input.readBool();
6066
- } else {
6067
- input.skip(ftype);
6068
- }
6069
- break;
6070
- case 3332:
6071
- if (ftype == Thrift.Type.DOUBLE) {
6072
- this.estimatedCost = input.readDouble();
6073
- } else {
6074
- input.skip(ftype);
6075
- }
6076
- break;
6077
- case 3333:
6078
- if (ftype == Thrift.Type.I16) {
6079
- this.executionVersion = input.readI16();
4874
+ this.runAsync = input.readBool();
6080
4875
  } else {
6081
4876
  input.skip(ftype);
6082
4877
  }
6083
4878
  break;
6084
- case 3334:
6085
- if (ftype == Thrift.Type.STRING) {
6086
- this.requestValidation = input.readBinary();
4879
+ case 1281:
4880
+ if (ftype == Thrift.Type.STRUCT) {
4881
+ this.getDirectResults = new ttypes.TSparkGetDirectResults();
4882
+ this.getDirectResults.read(input);
6087
4883
  } else {
6088
4884
  input.skip(ftype);
6089
4885
  }
6090
4886
  break;
6091
- case 3335:
6092
- if (ftype == Thrift.Type.I32) {
6093
- this.resultPersistenceMode = input.readI32();
4887
+ case 5:
4888
+ if (ftype == Thrift.Type.I64) {
4889
+ this.queryTimeout = input.readI64();
6094
4890
  } else {
6095
4891
  input.skip(ftype);
6096
4892
  }
6097
4893
  break;
6098
- case 3336:
4894
+ case 1282:
6099
4895
  if (ftype == Thrift.Type.BOOL) {
6100
- this.trimArrowBatchesToLimit = input.readBool();
6101
- } else {
6102
- input.skip(ftype);
6103
- }
6104
- break;
6105
- case 3337:
6106
- if (ftype == Thrift.Type.I32) {
6107
- this.fetchDisposition = input.readI32();
4896
+ this.canReadArrowResult = input.readBool();
6108
4897
  } else {
6109
4898
  input.skip(ftype);
6110
4899
  }
6111
4900
  break;
6112
- case 3344:
4901
+ case 1283:
6113
4902
  if (ftype == Thrift.Type.BOOL) {
6114
- this.enforceResultPersistenceMode = input.readBool();
6115
- } else {
6116
- input.skip(ftype);
6117
- }
6118
- break;
6119
- case 3345:
6120
- if (ftype == Thrift.Type.LIST) {
6121
- this.statementList = [];
6122
- var _rtmp3192 = input.readListBegin();
6123
- var _size191 = _rtmp3192.size || 0;
6124
- for (var _i193 = 0; _i193 < _size191; ++_i193) {
6125
- var elem194 = null;
6126
- elem194 = new ttypes.TDBSqlStatement();
6127
- elem194.read(input);
6128
- this.statementList.push(elem194);
6129
- }
6130
- input.readListEnd();
4903
+ this.canDownloadResult = input.readBool();
6131
4904
  } else {
6132
4905
  input.skip(ftype);
6133
4906
  }
6134
4907
  break;
6135
- case 3346:
4908
+ case 1284:
6136
4909
  if (ftype == Thrift.Type.BOOL) {
6137
- this.persistResultManifest = input.readBool();
6138
- } else {
6139
- input.skip(ftype);
6140
- }
6141
- break;
6142
- case 3347:
6143
- if (ftype == Thrift.Type.I64) {
6144
- this.resultRetentionSeconds = input.readI64();
4910
+ this.canDecompressLZ4Result = input.readBool();
6145
4911
  } else {
6146
4912
  input.skip(ftype);
6147
4913
  }
6148
4914
  break;
6149
- case 3348:
4915
+ case 1285:
6150
4916
  if (ftype == Thrift.Type.I64) {
6151
- this.resultByteLimit = input.readI64();
4917
+ this.maxBytesPerFile = input.readI64();
6152
4918
  } else {
6153
4919
  input.skip(ftype);
6154
4920
  }
6155
4921
  break;
6156
- case 3349:
4922
+ case 1286:
6157
4923
  if (ftype == Thrift.Type.STRUCT) {
6158
- this.resultDataFormat = new ttypes.TDBSqlResultFormat();
6159
- this.resultDataFormat.read(input);
6160
- } else {
6161
- input.skip(ftype);
6162
- }
6163
- break;
6164
- case 3350:
6165
- if (ftype == Thrift.Type.STRING) {
6166
- this.originatingClientIdentity = input.readString();
6167
- } else {
6168
- input.skip(ftype);
6169
- }
6170
- break;
6171
- case 3351:
6172
- if (ftype == Thrift.Type.BOOL) {
6173
- this.preferSingleFileResult = input.readBool();
4924
+ this.useArrowNativeTypes = new ttypes.TSparkArrowTypes();
4925
+ this.useArrowNativeTypes.read(input);
6174
4926
  } else {
6175
4927
  input.skip(ftype);
6176
4928
  }
6177
4929
  break;
6178
- case 3352:
6179
- if (ftype == Thrift.Type.BOOL) {
6180
- this.preferDriverOnlyUpload = input.readBool();
4930
+ case 1287:
4931
+ if (ftype == Thrift.Type.I64) {
4932
+ this.resultRowLimit = input.readI64();
6181
4933
  } else {
6182
4934
  input.skip(ftype);
6183
4935
  }
6184
4936
  break;
6185
- case 3353:
6186
- if (ftype == Thrift.Type.BOOL) {
6187
- this.enforceEmbeddedSchemaCorrectness = input.readBool();
4937
+ case 1288:
4938
+ if (ftype == Thrift.Type.LIST) {
4939
+ this.parameters = [];
4940
+ var _rtmp3145 = input.readListBegin();
4941
+ var _size144 = _rtmp3145.size || 0;
4942
+ for (var _i146 = 0; _i146 < _size144; ++_i146) {
4943
+ var elem147 = null;
4944
+ elem147 = new ttypes.TSparkParameter();
4945
+ elem147.read(input);
4946
+ this.parameters.push(elem147);
4947
+ }
4948
+ input.readListEnd();
6188
4949
  } else {
6189
4950
  input.skip(ftype);
6190
4951
  }
6191
4952
  break;
6192
- case 3360:
6193
- if (ftype == Thrift.Type.STRING) {
6194
- this.idempotencyToken = input.readString();
4953
+ case 1289:
4954
+ if (ftype == Thrift.Type.I64) {
4955
+ this.maxBytesPerBatch = input.readI64();
6195
4956
  } else {
6196
4957
  input.skip(ftype);
6197
4958
  }
6198
4959
  break;
6199
- case 3361:
6200
- if (ftype == Thrift.Type.BOOL) {
6201
- this.throwErrorOnByteLimitTruncation = input.readBool();
4960
+ case 1296:
4961
+ if (ftype == Thrift.Type.STRUCT) {
4962
+ this.statementConf = new ttypes.TStatementConf();
4963
+ this.statementConf.read(input);
6202
4964
  } else {
6203
4965
  input.skip(ftype);
6204
4966
  }
@@ -6227,11 +4989,11 @@ TExecuteStatementReq.prototype.write = function(output) {
6227
4989
  if (this.confOverlay !== null && this.confOverlay !== undefined) {
6228
4990
  output.writeFieldBegin('confOverlay', Thrift.Type.MAP, 3);
6229
4991
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confOverlay));
6230
- for (var kiter195 in this.confOverlay) {
6231
- if (this.confOverlay.hasOwnProperty(kiter195)) {
6232
- var viter196 = this.confOverlay[kiter195];
6233
- output.writeString(kiter195);
6234
- output.writeString(viter196);
4992
+ for (var kiter148 in this.confOverlay) {
4993
+ if (this.confOverlay.hasOwnProperty(kiter148)) {
4994
+ var viter149 = this.confOverlay[kiter148];
4995
+ output.writeString(kiter148);
4996
+ output.writeString(viter149);
6235
4997
  }
6236
4998
  }
6237
4999
  output.writeMapEnd();
@@ -6285,10 +5047,10 @@ TExecuteStatementReq.prototype.write = function(output) {
6285
5047
  if (this.parameters !== null && this.parameters !== undefined) {
6286
5048
  output.writeFieldBegin('parameters', Thrift.Type.LIST, 1288);
6287
5049
  output.writeListBegin(Thrift.Type.STRUCT, this.parameters.length);
6288
- for (var iter197 in this.parameters) {
6289
- if (this.parameters.hasOwnProperty(iter197)) {
6290
- iter197 = this.parameters[iter197];
6291
- iter197.write(output);
5050
+ for (var iter150 in this.parameters) {
5051
+ if (this.parameters.hasOwnProperty(iter150)) {
5052
+ iter150 = this.parameters[iter150];
5053
+ iter150.write(output);
6292
5054
  }
6293
5055
  }
6294
5056
  output.writeListEnd();
@@ -6304,133 +5066,29 @@ TExecuteStatementReq.prototype.write = function(output) {
6304
5066
  this.statementConf.write(output);
6305
5067
  output.writeFieldEnd();
6306
5068
  }
6307
- if (this.operationId !== null && this.operationId !== undefined) {
6308
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
6309
- this.operationId.write(output);
6310
- output.writeFieldEnd();
6311
- }
6312
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
6313
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
6314
- this.sessionConf.write(output);
6315
- output.writeFieldEnd();
6316
- }
6317
- if (this.rejectHighCostQueries !== null && this.rejectHighCostQueries !== undefined) {
6318
- output.writeFieldBegin('rejectHighCostQueries', Thrift.Type.BOOL, 3331);
6319
- output.writeBool(this.rejectHighCostQueries);
6320
- output.writeFieldEnd();
6321
- }
6322
- if (this.estimatedCost !== null && this.estimatedCost !== undefined) {
6323
- output.writeFieldBegin('estimatedCost', Thrift.Type.DOUBLE, 3332);
6324
- output.writeDouble(this.estimatedCost);
6325
- output.writeFieldEnd();
6326
- }
6327
- if (this.executionVersion !== null && this.executionVersion !== undefined) {
6328
- output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3333);
6329
- output.writeI16(this.executionVersion);
6330
- output.writeFieldEnd();
6331
- }
6332
- if (this.requestValidation !== null && this.requestValidation !== undefined) {
6333
- output.writeFieldBegin('requestValidation', Thrift.Type.STRING, 3334);
6334
- output.writeBinary(this.requestValidation);
6335
- output.writeFieldEnd();
6336
- }
6337
- if (this.resultPersistenceMode !== null && this.resultPersistenceMode !== undefined) {
6338
- output.writeFieldBegin('resultPersistenceMode', Thrift.Type.I32, 3335);
6339
- output.writeI32(this.resultPersistenceMode);
6340
- output.writeFieldEnd();
6341
- }
6342
- if (this.trimArrowBatchesToLimit !== null && this.trimArrowBatchesToLimit !== undefined) {
6343
- output.writeFieldBegin('trimArrowBatchesToLimit', Thrift.Type.BOOL, 3336);
6344
- output.writeBool(this.trimArrowBatchesToLimit);
6345
- output.writeFieldEnd();
6346
- }
6347
- if (this.fetchDisposition !== null && this.fetchDisposition !== undefined) {
6348
- output.writeFieldBegin('fetchDisposition', Thrift.Type.I32, 3337);
6349
- output.writeI32(this.fetchDisposition);
6350
- output.writeFieldEnd();
6351
- }
6352
- if (this.enforceResultPersistenceMode !== null && this.enforceResultPersistenceMode !== undefined) {
6353
- output.writeFieldBegin('enforceResultPersistenceMode', Thrift.Type.BOOL, 3344);
6354
- output.writeBool(this.enforceResultPersistenceMode);
6355
- output.writeFieldEnd();
6356
- }
6357
- if (this.statementList !== null && this.statementList !== undefined) {
6358
- output.writeFieldBegin('statementList', Thrift.Type.LIST, 3345);
6359
- output.writeListBegin(Thrift.Type.STRUCT, this.statementList.length);
6360
- for (var iter198 in this.statementList) {
6361
- if (this.statementList.hasOwnProperty(iter198)) {
6362
- iter198 = this.statementList[iter198];
6363
- iter198.write(output);
6364
- }
6365
- }
6366
- output.writeListEnd();
6367
- output.writeFieldEnd();
6368
- }
6369
- if (this.persistResultManifest !== null && this.persistResultManifest !== undefined) {
6370
- output.writeFieldBegin('persistResultManifest', Thrift.Type.BOOL, 3346);
6371
- output.writeBool(this.persistResultManifest);
6372
- output.writeFieldEnd();
6373
- }
6374
- if (this.resultRetentionSeconds !== null && this.resultRetentionSeconds !== undefined) {
6375
- output.writeFieldBegin('resultRetentionSeconds', Thrift.Type.I64, 3347);
6376
- output.writeI64(this.resultRetentionSeconds);
6377
- output.writeFieldEnd();
6378
- }
6379
- if (this.resultByteLimit !== null && this.resultByteLimit !== undefined) {
6380
- output.writeFieldBegin('resultByteLimit', Thrift.Type.I64, 3348);
6381
- output.writeI64(this.resultByteLimit);
6382
- output.writeFieldEnd();
6383
- }
6384
- if (this.resultDataFormat !== null && this.resultDataFormat !== undefined) {
6385
- output.writeFieldBegin('resultDataFormat', Thrift.Type.STRUCT, 3349);
6386
- this.resultDataFormat.write(output);
6387
- output.writeFieldEnd();
6388
- }
6389
- if (this.originatingClientIdentity !== null && this.originatingClientIdentity !== undefined) {
6390
- output.writeFieldBegin('originatingClientIdentity', Thrift.Type.STRING, 3350);
6391
- output.writeString(this.originatingClientIdentity);
6392
- output.writeFieldEnd();
6393
- }
6394
- if (this.preferSingleFileResult !== null && this.preferSingleFileResult !== undefined) {
6395
- output.writeFieldBegin('preferSingleFileResult', Thrift.Type.BOOL, 3351);
6396
- output.writeBool(this.preferSingleFileResult);
6397
- output.writeFieldEnd();
6398
- }
6399
- if (this.preferDriverOnlyUpload !== null && this.preferDriverOnlyUpload !== undefined) {
6400
- output.writeFieldBegin('preferDriverOnlyUpload', Thrift.Type.BOOL, 3352);
6401
- output.writeBool(this.preferDriverOnlyUpload);
6402
- output.writeFieldEnd();
6403
- }
6404
- if (this.enforceEmbeddedSchemaCorrectness !== null && this.enforceEmbeddedSchemaCorrectness !== undefined) {
6405
- output.writeFieldBegin('enforceEmbeddedSchemaCorrectness', Thrift.Type.BOOL, 3353);
6406
- output.writeBool(this.enforceEmbeddedSchemaCorrectness);
6407
- output.writeFieldEnd();
6408
- }
6409
- if (this.idempotencyToken !== null && this.idempotencyToken !== undefined) {
6410
- output.writeFieldBegin('idempotencyToken', Thrift.Type.STRING, 3360);
6411
- output.writeString(this.idempotencyToken);
6412
- output.writeFieldEnd();
6413
- }
6414
- if (this.throwErrorOnByteLimitTruncation !== null && this.throwErrorOnByteLimitTruncation !== undefined) {
6415
- output.writeFieldBegin('throwErrorOnByteLimitTruncation', Thrift.Type.BOOL, 3361);
6416
- output.writeBool(this.throwErrorOnByteLimitTruncation);
6417
- output.writeFieldEnd();
6418
- }
6419
5069
  output.writeFieldStop();
6420
5070
  output.writeStructEnd();
6421
5071
  return;
6422
5072
  };
6423
5073
 
6424
- var TDBSqlStatement = module.exports.TDBSqlStatement = function(args) {
6425
- this.statement = null;
5074
+ var TSparkParameterValue = module.exports.TSparkParameterValue = function(args) {
5075
+ this.stringValue = null;
5076
+ this.doubleValue = null;
5077
+ this.booleanValue = null;
6426
5078
  if (args) {
6427
- if (args.statement !== undefined && args.statement !== null) {
6428
- this.statement = args.statement;
5079
+ if (args.stringValue !== undefined && args.stringValue !== null) {
5080
+ this.stringValue = args.stringValue;
5081
+ }
5082
+ if (args.doubleValue !== undefined && args.doubleValue !== null) {
5083
+ this.doubleValue = args.doubleValue;
5084
+ }
5085
+ if (args.booleanValue !== undefined && args.booleanValue !== null) {
5086
+ this.booleanValue = args.booleanValue;
6429
5087
  }
6430
5088
  }
6431
5089
  };
6432
- TDBSqlStatement.prototype = {};
6433
- TDBSqlStatement.prototype.read = function(input) {
5090
+ TSparkParameterValue.prototype = {};
5091
+ TSparkParameterValue.prototype.read = function(input) {
6434
5092
  input.readStructBegin();
6435
5093
  while (true) {
6436
5094
  var ret = input.readFieldBegin();
@@ -6442,14 +5100,25 @@ TDBSqlStatement.prototype.read = function(input) {
6442
5100
  switch (fid) {
6443
5101
  case 1:
6444
5102
  if (ftype == Thrift.Type.STRING) {
6445
- this.statement = input.readString();
5103
+ this.stringValue = input.readString();
6446
5104
  } else {
6447
5105
  input.skip(ftype);
6448
5106
  }
6449
5107
  break;
6450
- case 0:
5108
+ case 2:
5109
+ if (ftype == Thrift.Type.DOUBLE) {
5110
+ this.doubleValue = input.readDouble();
5111
+ } else {
6451
5112
  input.skip(ftype);
6452
- break;
5113
+ }
5114
+ break;
5115
+ case 3:
5116
+ if (ftype == Thrift.Type.BOOL) {
5117
+ this.booleanValue = input.readBool();
5118
+ } else {
5119
+ input.skip(ftype);
5120
+ }
5121
+ break;
6453
5122
  default:
6454
5123
  input.skip(ftype);
6455
5124
  }
@@ -6459,11 +5128,21 @@ TDBSqlStatement.prototype.read = function(input) {
6459
5128
  return;
6460
5129
  };
6461
5130
 
6462
- TDBSqlStatement.prototype.write = function(output) {
6463
- output.writeStructBegin('TDBSqlStatement');
6464
- if (this.statement !== null && this.statement !== undefined) {
6465
- output.writeFieldBegin('statement', Thrift.Type.STRING, 1);
6466
- output.writeString(this.statement);
5131
+ TSparkParameterValue.prototype.write = function(output) {
5132
+ output.writeStructBegin('TSparkParameterValue');
5133
+ if (this.stringValue !== null && this.stringValue !== undefined) {
5134
+ output.writeFieldBegin('stringValue', Thrift.Type.STRING, 1);
5135
+ output.writeString(this.stringValue);
5136
+ output.writeFieldEnd();
5137
+ }
5138
+ if (this.doubleValue !== null && this.doubleValue !== undefined) {
5139
+ output.writeFieldBegin('doubleValue', Thrift.Type.DOUBLE, 2);
5140
+ output.writeDouble(this.doubleValue);
5141
+ output.writeFieldEnd();
5142
+ }
5143
+ if (this.booleanValue !== null && this.booleanValue !== undefined) {
5144
+ output.writeFieldBegin('booleanValue', Thrift.Type.BOOL, 3);
5145
+ output.writeBool(this.booleanValue);
6467
5146
  output.writeFieldEnd();
6468
5147
  }
6469
5148
  output.writeFieldStop();
@@ -6471,24 +5150,24 @@ TDBSqlStatement.prototype.write = function(output) {
6471
5150
  return;
6472
5151
  };
6473
5152
 
6474
- var TSparkParameterValue = module.exports.TSparkParameterValue = function(args) {
6475
- this.stringValue = null;
6476
- this.doubleValue = null;
6477
- this.booleanValue = null;
5153
+ var TSparkParameterValueArg = module.exports.TSparkParameterValueArg = function(args) {
5154
+ this.type = null;
5155
+ this.value = null;
5156
+ this.arguments = null;
6478
5157
  if (args) {
6479
- if (args.stringValue !== undefined && args.stringValue !== null) {
6480
- this.stringValue = args.stringValue;
5158
+ if (args.type !== undefined && args.type !== null) {
5159
+ this.type = args.type;
6481
5160
  }
6482
- if (args.doubleValue !== undefined && args.doubleValue !== null) {
6483
- this.doubleValue = args.doubleValue;
5161
+ if (args.value !== undefined && args.value !== null) {
5162
+ this.value = args.value;
6484
5163
  }
6485
- if (args.booleanValue !== undefined && args.booleanValue !== null) {
6486
- this.booleanValue = args.booleanValue;
5164
+ if (args.arguments !== undefined && args.arguments !== null) {
5165
+ this.arguments = Thrift.copyList(args.arguments, [null]);
6487
5166
  }
6488
5167
  }
6489
5168
  };
6490
- TSparkParameterValue.prototype = {};
6491
- TSparkParameterValue.prototype.read = function(input) {
5169
+ TSparkParameterValueArg.prototype = {};
5170
+ TSparkParameterValueArg.prototype.read = function(input) {
6492
5171
  input.readStructBegin();
6493
5172
  while (true) {
6494
5173
  var ret = input.readFieldBegin();
@@ -6500,21 +5179,30 @@ TSparkParameterValue.prototype.read = function(input) {
6500
5179
  switch (fid) {
6501
5180
  case 1:
6502
5181
  if (ftype == Thrift.Type.STRING) {
6503
- this.stringValue = input.readString();
5182
+ this.type = input.readString();
6504
5183
  } else {
6505
5184
  input.skip(ftype);
6506
5185
  }
6507
5186
  break;
6508
5187
  case 2:
6509
- if (ftype == Thrift.Type.DOUBLE) {
6510
- this.doubleValue = input.readDouble();
5188
+ if (ftype == Thrift.Type.STRING) {
5189
+ this.value = input.readString();
6511
5190
  } else {
6512
5191
  input.skip(ftype);
6513
5192
  }
6514
5193
  break;
6515
5194
  case 3:
6516
- if (ftype == Thrift.Type.BOOL) {
6517
- this.booleanValue = input.readBool();
5195
+ if (ftype == Thrift.Type.LIST) {
5196
+ this.arguments = [];
5197
+ var _rtmp3152 = input.readListBegin();
5198
+ var _size151 = _rtmp3152.size || 0;
5199
+ for (var _i153 = 0; _i153 < _size151; ++_i153) {
5200
+ var elem154 = null;
5201
+ elem154 = new ttypes.TSparkParameterValueArg();
5202
+ elem154.read(input);
5203
+ this.arguments.push(elem154);
5204
+ }
5205
+ input.readListEnd();
6518
5206
  } else {
6519
5207
  input.skip(ftype);
6520
5208
  }
@@ -6528,21 +5216,28 @@ TSparkParameterValue.prototype.read = function(input) {
6528
5216
  return;
6529
5217
  };
6530
5218
 
6531
- TSparkParameterValue.prototype.write = function(output) {
6532
- output.writeStructBegin('TSparkParameterValue');
6533
- if (this.stringValue !== null && this.stringValue !== undefined) {
6534
- output.writeFieldBegin('stringValue', Thrift.Type.STRING, 1);
6535
- output.writeString(this.stringValue);
5219
+ TSparkParameterValueArg.prototype.write = function(output) {
5220
+ output.writeStructBegin('TSparkParameterValueArg');
5221
+ if (this.type !== null && this.type !== undefined) {
5222
+ output.writeFieldBegin('type', Thrift.Type.STRING, 1);
5223
+ output.writeString(this.type);
6536
5224
  output.writeFieldEnd();
6537
5225
  }
6538
- if (this.doubleValue !== null && this.doubleValue !== undefined) {
6539
- output.writeFieldBegin('doubleValue', Thrift.Type.DOUBLE, 2);
6540
- output.writeDouble(this.doubleValue);
5226
+ if (this.value !== null && this.value !== undefined) {
5227
+ output.writeFieldBegin('value', Thrift.Type.STRING, 2);
5228
+ output.writeString(this.value);
6541
5229
  output.writeFieldEnd();
6542
5230
  }
6543
- if (this.booleanValue !== null && this.booleanValue !== undefined) {
6544
- output.writeFieldBegin('booleanValue', Thrift.Type.BOOL, 3);
6545
- output.writeBool(this.booleanValue);
5231
+ if (this.arguments !== null && this.arguments !== undefined) {
5232
+ output.writeFieldBegin('arguments', Thrift.Type.LIST, 3);
5233
+ output.writeListBegin(Thrift.Type.STRUCT, this.arguments.length);
5234
+ for (var iter155 in this.arguments) {
5235
+ if (this.arguments.hasOwnProperty(iter155)) {
5236
+ iter155 = this.arguments[iter155];
5237
+ iter155.write(output);
5238
+ }
5239
+ }
5240
+ output.writeListEnd();
6546
5241
  output.writeFieldEnd();
6547
5242
  }
6548
5243
  output.writeFieldStop();
@@ -6555,6 +5250,7 @@ var TSparkParameter = module.exports.TSparkParameter = function(args) {
6555
5250
  this.name = null;
6556
5251
  this.type = null;
6557
5252
  this.value = null;
5253
+ this.arguments = null;
6558
5254
  if (args) {
6559
5255
  if (args.ordinal !== undefined && args.ordinal !== null) {
6560
5256
  this.ordinal = args.ordinal;
@@ -6568,6 +5264,9 @@ var TSparkParameter = module.exports.TSparkParameter = function(args) {
6568
5264
  if (args.value !== undefined && args.value !== null) {
6569
5265
  this.value = new ttypes.TSparkParameterValue(args.value);
6570
5266
  }
5267
+ if (args.arguments !== undefined && args.arguments !== null) {
5268
+ this.arguments = Thrift.copyList(args.arguments, [ttypes.TSparkParameterValueArg]);
5269
+ }
6571
5270
  }
6572
5271
  };
6573
5272
  TSparkParameter.prototype = {};
@@ -6610,6 +5309,22 @@ TSparkParameter.prototype.read = function(input) {
6610
5309
  input.skip(ftype);
6611
5310
  }
6612
5311
  break;
5312
+ case 5:
5313
+ if (ftype == Thrift.Type.LIST) {
5314
+ this.arguments = [];
5315
+ var _rtmp3157 = input.readListBegin();
5316
+ var _size156 = _rtmp3157.size || 0;
5317
+ for (var _i158 = 0; _i158 < _size156; ++_i158) {
5318
+ var elem159 = null;
5319
+ elem159 = new ttypes.TSparkParameterValueArg();
5320
+ elem159.read(input);
5321
+ this.arguments.push(elem159);
5322
+ }
5323
+ input.readListEnd();
5324
+ } else {
5325
+ input.skip(ftype);
5326
+ }
5327
+ break;
6613
5328
  default:
6614
5329
  input.skip(ftype);
6615
5330
  }
@@ -6641,6 +5356,18 @@ TSparkParameter.prototype.write = function(output) {
6641
5356
  this.value.write(output);
6642
5357
  output.writeFieldEnd();
6643
5358
  }
5359
+ if (this.arguments !== null && this.arguments !== undefined) {
5360
+ output.writeFieldBegin('arguments', Thrift.Type.LIST, 5);
5361
+ output.writeListBegin(Thrift.Type.STRUCT, this.arguments.length);
5362
+ for (var iter160 in this.arguments) {
5363
+ if (this.arguments.hasOwnProperty(iter160)) {
5364
+ iter160 = this.arguments[iter160];
5365
+ iter160.write(output);
5366
+ }
5367
+ }
5368
+ output.writeListEnd();
5369
+ output.writeFieldEnd();
5370
+ }
6644
5371
  output.writeFieldStop();
6645
5372
  output.writeStructEnd();
6646
5373
  return;
@@ -6746,15 +5473,6 @@ var TExecuteStatementResp = module.exports.TExecuteStatementResp = function(args
6746
5473
  this.status = null;
6747
5474
  this.operationHandle = null;
6748
5475
  this.directResults = null;
6749
- this.executionRejected = null;
6750
- this.maxClusterCapacity = null;
6751
- this.queryCost = null;
6752
- this.sessionConf = null;
6753
- this.currentClusterLoad = null;
6754
- this.idempotencyType = null;
6755
- this.remoteResultCacheEnabled = null;
6756
- this.isServerless = null;
6757
- this.operationHandles = null;
6758
5476
  if (args) {
6759
5477
  if (args.status !== undefined && args.status !== null) {
6760
5478
  this.status = new ttypes.TStatus(args.status);
@@ -6767,33 +5485,6 @@ var TExecuteStatementResp = module.exports.TExecuteStatementResp = function(args
6767
5485
  if (args.directResults !== undefined && args.directResults !== null) {
6768
5486
  this.directResults = new ttypes.TSparkDirectResults(args.directResults);
6769
5487
  }
6770
- if (args.executionRejected !== undefined && args.executionRejected !== null) {
6771
- this.executionRejected = args.executionRejected;
6772
- }
6773
- if (args.maxClusterCapacity !== undefined && args.maxClusterCapacity !== null) {
6774
- this.maxClusterCapacity = args.maxClusterCapacity;
6775
- }
6776
- if (args.queryCost !== undefined && args.queryCost !== null) {
6777
- this.queryCost = args.queryCost;
6778
- }
6779
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
6780
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
6781
- }
6782
- if (args.currentClusterLoad !== undefined && args.currentClusterLoad !== null) {
6783
- this.currentClusterLoad = args.currentClusterLoad;
6784
- }
6785
- if (args.idempotencyType !== undefined && args.idempotencyType !== null) {
6786
- this.idempotencyType = args.idempotencyType;
6787
- }
6788
- if (args.remoteResultCacheEnabled !== undefined && args.remoteResultCacheEnabled !== null) {
6789
- this.remoteResultCacheEnabled = args.remoteResultCacheEnabled;
6790
- }
6791
- if (args.isServerless !== undefined && args.isServerless !== null) {
6792
- this.isServerless = args.isServerless;
6793
- }
6794
- if (args.operationHandles !== undefined && args.operationHandles !== null) {
6795
- this.operationHandles = Thrift.copyList(args.operationHandles, [ttypes.TOperationHandle]);
6796
- }
6797
5488
  }
6798
5489
  };
6799
5490
  TExecuteStatementResp.prototype = {};
@@ -6831,79 +5522,6 @@ TExecuteStatementResp.prototype.read = function(input) {
6831
5522
  input.skip(ftype);
6832
5523
  }
6833
5524
  break;
6834
- case 3329:
6835
- if (ftype == Thrift.Type.BOOL) {
6836
- this.executionRejected = input.readBool();
6837
- } else {
6838
- input.skip(ftype);
6839
- }
6840
- break;
6841
- case 3330:
6842
- if (ftype == Thrift.Type.DOUBLE) {
6843
- this.maxClusterCapacity = input.readDouble();
6844
- } else {
6845
- input.skip(ftype);
6846
- }
6847
- break;
6848
- case 3331:
6849
- if (ftype == Thrift.Type.DOUBLE) {
6850
- this.queryCost = input.readDouble();
6851
- } else {
6852
- input.skip(ftype);
6853
- }
6854
- break;
6855
- case 3332:
6856
- if (ftype == Thrift.Type.STRUCT) {
6857
- this.sessionConf = new ttypes.TDBSqlSessionConf();
6858
- this.sessionConf.read(input);
6859
- } else {
6860
- input.skip(ftype);
6861
- }
6862
- break;
6863
- case 3333:
6864
- if (ftype == Thrift.Type.DOUBLE) {
6865
- this.currentClusterLoad = input.readDouble();
6866
- } else {
6867
- input.skip(ftype);
6868
- }
6869
- break;
6870
- case 3334:
6871
- if (ftype == Thrift.Type.I32) {
6872
- this.idempotencyType = input.readI32();
6873
- } else {
6874
- input.skip(ftype);
6875
- }
6876
- break;
6877
- case 3335:
6878
- if (ftype == Thrift.Type.BOOL) {
6879
- this.remoteResultCacheEnabled = input.readBool();
6880
- } else {
6881
- input.skip(ftype);
6882
- }
6883
- break;
6884
- case 3336:
6885
- if (ftype == Thrift.Type.BOOL) {
6886
- this.isServerless = input.readBool();
6887
- } else {
6888
- input.skip(ftype);
6889
- }
6890
- break;
6891
- case 3337:
6892
- if (ftype == Thrift.Type.LIST) {
6893
- this.operationHandles = [];
6894
- var _rtmp3200 = input.readListBegin();
6895
- var _size199 = _rtmp3200.size || 0;
6896
- for (var _i201 = 0; _i201 < _size199; ++_i201) {
6897
- var elem202 = null;
6898
- elem202 = new ttypes.TOperationHandle();
6899
- elem202.read(input);
6900
- this.operationHandles.push(elem202);
6901
- }
6902
- input.readListEnd();
6903
- } else {
6904
- input.skip(ftype);
6905
- }
6906
- break;
6907
5525
  default:
6908
5526
  input.skip(ftype);
6909
5527
  }
@@ -6930,58 +5548,6 @@ TExecuteStatementResp.prototype.write = function(output) {
6930
5548
  this.directResults.write(output);
6931
5549
  output.writeFieldEnd();
6932
5550
  }
6933
- if (this.executionRejected !== null && this.executionRejected !== undefined) {
6934
- output.writeFieldBegin('executionRejected', Thrift.Type.BOOL, 3329);
6935
- output.writeBool(this.executionRejected);
6936
- output.writeFieldEnd();
6937
- }
6938
- if (this.maxClusterCapacity !== null && this.maxClusterCapacity !== undefined) {
6939
- output.writeFieldBegin('maxClusterCapacity', Thrift.Type.DOUBLE, 3330);
6940
- output.writeDouble(this.maxClusterCapacity);
6941
- output.writeFieldEnd();
6942
- }
6943
- if (this.queryCost !== null && this.queryCost !== undefined) {
6944
- output.writeFieldBegin('queryCost', Thrift.Type.DOUBLE, 3331);
6945
- output.writeDouble(this.queryCost);
6946
- output.writeFieldEnd();
6947
- }
6948
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
6949
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3332);
6950
- this.sessionConf.write(output);
6951
- output.writeFieldEnd();
6952
- }
6953
- if (this.currentClusterLoad !== null && this.currentClusterLoad !== undefined) {
6954
- output.writeFieldBegin('currentClusterLoad', Thrift.Type.DOUBLE, 3333);
6955
- output.writeDouble(this.currentClusterLoad);
6956
- output.writeFieldEnd();
6957
- }
6958
- if (this.idempotencyType !== null && this.idempotencyType !== undefined) {
6959
- output.writeFieldBegin('idempotencyType', Thrift.Type.I32, 3334);
6960
- output.writeI32(this.idempotencyType);
6961
- output.writeFieldEnd();
6962
- }
6963
- if (this.remoteResultCacheEnabled !== null && this.remoteResultCacheEnabled !== undefined) {
6964
- output.writeFieldBegin('remoteResultCacheEnabled', Thrift.Type.BOOL, 3335);
6965
- output.writeBool(this.remoteResultCacheEnabled);
6966
- output.writeFieldEnd();
6967
- }
6968
- if (this.isServerless !== null && this.isServerless !== undefined) {
6969
- output.writeFieldBegin('isServerless', Thrift.Type.BOOL, 3336);
6970
- output.writeBool(this.isServerless);
6971
- output.writeFieldEnd();
6972
- }
6973
- if (this.operationHandles !== null && this.operationHandles !== undefined) {
6974
- output.writeFieldBegin('operationHandles', Thrift.Type.LIST, 3337);
6975
- output.writeListBegin(Thrift.Type.STRUCT, this.operationHandles.length);
6976
- for (var iter203 in this.operationHandles) {
6977
- if (this.operationHandles.hasOwnProperty(iter203)) {
6978
- iter203 = this.operationHandles[iter203];
6979
- iter203.write(output);
6980
- }
6981
- }
6982
- output.writeListEnd();
6983
- output.writeFieldEnd();
6984
- }
6985
5551
  output.writeFieldStop();
6986
5552
  output.writeStructEnd();
6987
5553
  return;
@@ -6991,8 +5557,6 @@ var TGetTypeInfoReq = module.exports.TGetTypeInfoReq = function(args) {
6991
5557
  this.sessionHandle = null;
6992
5558
  this.getDirectResults = null;
6993
5559
  this.runAsync = false;
6994
- this.operationId = null;
6995
- this.sessionConf = null;
6996
5560
  if (args) {
6997
5561
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
6998
5562
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -7005,12 +5569,6 @@ var TGetTypeInfoReq = module.exports.TGetTypeInfoReq = function(args) {
7005
5569
  if (args.runAsync !== undefined && args.runAsync !== null) {
7006
5570
  this.runAsync = args.runAsync;
7007
5571
  }
7008
- if (args.operationId !== undefined && args.operationId !== null) {
7009
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
7010
- }
7011
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
7012
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
7013
- }
7014
5572
  }
7015
5573
  };
7016
5574
  TGetTypeInfoReq.prototype = {};
@@ -7047,22 +5605,6 @@ TGetTypeInfoReq.prototype.read = function(input) {
7047
5605
  input.skip(ftype);
7048
5606
  }
7049
5607
  break;
7050
- case 3329:
7051
- if (ftype == Thrift.Type.STRUCT) {
7052
- this.operationId = new ttypes.THandleIdentifier();
7053
- this.operationId.read(input);
7054
- } else {
7055
- input.skip(ftype);
7056
- }
7057
- break;
7058
- case 3330:
7059
- if (ftype == Thrift.Type.STRUCT) {
7060
- this.sessionConf = new ttypes.TDBSqlSessionConf();
7061
- this.sessionConf.read(input);
7062
- } else {
7063
- input.skip(ftype);
7064
- }
7065
- break;
7066
5608
  default:
7067
5609
  input.skip(ftype);
7068
5610
  }
@@ -7089,16 +5631,6 @@ TGetTypeInfoReq.prototype.write = function(output) {
7089
5631
  output.writeBool(this.runAsync);
7090
5632
  output.writeFieldEnd();
7091
5633
  }
7092
- if (this.operationId !== null && this.operationId !== undefined) {
7093
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
7094
- this.operationId.write(output);
7095
- output.writeFieldEnd();
7096
- }
7097
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
7098
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
7099
- this.sessionConf.write(output);
7100
- output.writeFieldEnd();
7101
- }
7102
5634
  output.writeFieldStop();
7103
5635
  output.writeStructEnd();
7104
5636
  return;
@@ -7192,8 +5724,6 @@ var TGetCatalogsReq = module.exports.TGetCatalogsReq = function(args) {
7192
5724
  this.sessionHandle = null;
7193
5725
  this.getDirectResults = null;
7194
5726
  this.runAsync = false;
7195
- this.operationId = null;
7196
- this.sessionConf = null;
7197
5727
  if (args) {
7198
5728
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
7199
5729
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -7206,12 +5736,6 @@ var TGetCatalogsReq = module.exports.TGetCatalogsReq = function(args) {
7206
5736
  if (args.runAsync !== undefined && args.runAsync !== null) {
7207
5737
  this.runAsync = args.runAsync;
7208
5738
  }
7209
- if (args.operationId !== undefined && args.operationId !== null) {
7210
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
7211
- }
7212
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
7213
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
7214
- }
7215
5739
  }
7216
5740
  };
7217
5741
  TGetCatalogsReq.prototype = {};
@@ -7248,22 +5772,6 @@ TGetCatalogsReq.prototype.read = function(input) {
7248
5772
  input.skip(ftype);
7249
5773
  }
7250
5774
  break;
7251
- case 3329:
7252
- if (ftype == Thrift.Type.STRUCT) {
7253
- this.operationId = new ttypes.THandleIdentifier();
7254
- this.operationId.read(input);
7255
- } else {
7256
- input.skip(ftype);
7257
- }
7258
- break;
7259
- case 3330:
7260
- if (ftype == Thrift.Type.STRUCT) {
7261
- this.sessionConf = new ttypes.TDBSqlSessionConf();
7262
- this.sessionConf.read(input);
7263
- } else {
7264
- input.skip(ftype);
7265
- }
7266
- break;
7267
5775
  default:
7268
5776
  input.skip(ftype);
7269
5777
  }
@@ -7290,16 +5798,6 @@ TGetCatalogsReq.prototype.write = function(output) {
7290
5798
  output.writeBool(this.runAsync);
7291
5799
  output.writeFieldEnd();
7292
5800
  }
7293
- if (this.operationId !== null && this.operationId !== undefined) {
7294
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
7295
- this.operationId.write(output);
7296
- output.writeFieldEnd();
7297
- }
7298
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
7299
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
7300
- this.sessionConf.write(output);
7301
- output.writeFieldEnd();
7302
- }
7303
5801
  output.writeFieldStop();
7304
5802
  output.writeStructEnd();
7305
5803
  return;
@@ -7395,8 +5893,6 @@ var TGetSchemasReq = module.exports.TGetSchemasReq = function(args) {
7395
5893
  this.schemaName = null;
7396
5894
  this.getDirectResults = null;
7397
5895
  this.runAsync = false;
7398
- this.operationId = null;
7399
- this.sessionConf = null;
7400
5896
  if (args) {
7401
5897
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
7402
5898
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -7415,12 +5911,6 @@ var TGetSchemasReq = module.exports.TGetSchemasReq = function(args) {
7415
5911
  if (args.runAsync !== undefined && args.runAsync !== null) {
7416
5912
  this.runAsync = args.runAsync;
7417
5913
  }
7418
- if (args.operationId !== undefined && args.operationId !== null) {
7419
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
7420
- }
7421
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
7422
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
7423
- }
7424
5914
  }
7425
5915
  };
7426
5916
  TGetSchemasReq.prototype = {};
@@ -7471,22 +5961,6 @@ TGetSchemasReq.prototype.read = function(input) {
7471
5961
  input.skip(ftype);
7472
5962
  }
7473
5963
  break;
7474
- case 3329:
7475
- if (ftype == Thrift.Type.STRUCT) {
7476
- this.operationId = new ttypes.THandleIdentifier();
7477
- this.operationId.read(input);
7478
- } else {
7479
- input.skip(ftype);
7480
- }
7481
- break;
7482
- case 3330:
7483
- if (ftype == Thrift.Type.STRUCT) {
7484
- this.sessionConf = new ttypes.TDBSqlSessionConf();
7485
- this.sessionConf.read(input);
7486
- } else {
7487
- input.skip(ftype);
7488
- }
7489
- break;
7490
5964
  default:
7491
5965
  input.skip(ftype);
7492
5966
  }
@@ -7523,16 +5997,6 @@ TGetSchemasReq.prototype.write = function(output) {
7523
5997
  output.writeBool(this.runAsync);
7524
5998
  output.writeFieldEnd();
7525
5999
  }
7526
- if (this.operationId !== null && this.operationId !== undefined) {
7527
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
7528
- this.operationId.write(output);
7529
- output.writeFieldEnd();
7530
- }
7531
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
7532
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
7533
- this.sessionConf.write(output);
7534
- output.writeFieldEnd();
7535
- }
7536
6000
  output.writeFieldStop();
7537
6001
  output.writeStructEnd();
7538
6002
  return;
@@ -7630,8 +6094,6 @@ var TGetTablesReq = module.exports.TGetTablesReq = function(args) {
7630
6094
  this.tableTypes = null;
7631
6095
  this.getDirectResults = null;
7632
6096
  this.runAsync = false;
7633
- this.operationId = null;
7634
- this.sessionConf = null;
7635
6097
  if (args) {
7636
6098
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
7637
6099
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -7656,12 +6118,6 @@ var TGetTablesReq = module.exports.TGetTablesReq = function(args) {
7656
6118
  if (args.runAsync !== undefined && args.runAsync !== null) {
7657
6119
  this.runAsync = args.runAsync;
7658
6120
  }
7659
- if (args.operationId !== undefined && args.operationId !== null) {
7660
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
7661
- }
7662
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
7663
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
7664
- }
7665
6121
  }
7666
6122
  };
7667
6123
  TGetTablesReq.prototype = {};
@@ -7707,12 +6163,12 @@ TGetTablesReq.prototype.read = function(input) {
7707
6163
  case 5:
7708
6164
  if (ftype == Thrift.Type.LIST) {
7709
6165
  this.tableTypes = [];
7710
- var _rtmp3205 = input.readListBegin();
7711
- var _size204 = _rtmp3205.size || 0;
7712
- for (var _i206 = 0; _i206 < _size204; ++_i206) {
7713
- var elem207 = null;
7714
- elem207 = input.readString();
7715
- this.tableTypes.push(elem207);
6166
+ var _rtmp3162 = input.readListBegin();
6167
+ var _size161 = _rtmp3162.size || 0;
6168
+ for (var _i163 = 0; _i163 < _size161; ++_i163) {
6169
+ var elem164 = null;
6170
+ elem164 = input.readString();
6171
+ this.tableTypes.push(elem164);
7716
6172
  }
7717
6173
  input.readListEnd();
7718
6174
  } else {
@@ -7734,22 +6190,6 @@ TGetTablesReq.prototype.read = function(input) {
7734
6190
  input.skip(ftype);
7735
6191
  }
7736
6192
  break;
7737
- case 3329:
7738
- if (ftype == Thrift.Type.STRUCT) {
7739
- this.operationId = new ttypes.THandleIdentifier();
7740
- this.operationId.read(input);
7741
- } else {
7742
- input.skip(ftype);
7743
- }
7744
- break;
7745
- case 3330:
7746
- if (ftype == Thrift.Type.STRUCT) {
7747
- this.sessionConf = new ttypes.TDBSqlSessionConf();
7748
- this.sessionConf.read(input);
7749
- } else {
7750
- input.skip(ftype);
7751
- }
7752
- break;
7753
6193
  default:
7754
6194
  input.skip(ftype);
7755
6195
  }
@@ -7784,10 +6224,10 @@ TGetTablesReq.prototype.write = function(output) {
7784
6224
  if (this.tableTypes !== null && this.tableTypes !== undefined) {
7785
6225
  output.writeFieldBegin('tableTypes', Thrift.Type.LIST, 5);
7786
6226
  output.writeListBegin(Thrift.Type.STRING, this.tableTypes.length);
7787
- for (var iter208 in this.tableTypes) {
7788
- if (this.tableTypes.hasOwnProperty(iter208)) {
7789
- iter208 = this.tableTypes[iter208];
7790
- output.writeString(iter208);
6227
+ for (var iter165 in this.tableTypes) {
6228
+ if (this.tableTypes.hasOwnProperty(iter165)) {
6229
+ iter165 = this.tableTypes[iter165];
6230
+ output.writeString(iter165);
7791
6231
  }
7792
6232
  }
7793
6233
  output.writeListEnd();
@@ -7803,16 +6243,6 @@ TGetTablesReq.prototype.write = function(output) {
7803
6243
  output.writeBool(this.runAsync);
7804
6244
  output.writeFieldEnd();
7805
6245
  }
7806
- if (this.operationId !== null && this.operationId !== undefined) {
7807
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
7808
- this.operationId.write(output);
7809
- output.writeFieldEnd();
7810
- }
7811
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
7812
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
7813
- this.sessionConf.write(output);
7814
- output.writeFieldEnd();
7815
- }
7816
6246
  output.writeFieldStop();
7817
6247
  output.writeStructEnd();
7818
6248
  return;
@@ -7906,8 +6336,6 @@ var TGetTableTypesReq = module.exports.TGetTableTypesReq = function(args) {
7906
6336
  this.sessionHandle = null;
7907
6337
  this.getDirectResults = null;
7908
6338
  this.runAsync = false;
7909
- this.operationId = null;
7910
- this.sessionConf = null;
7911
6339
  if (args) {
7912
6340
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
7913
6341
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -7920,12 +6348,6 @@ var TGetTableTypesReq = module.exports.TGetTableTypesReq = function(args) {
7920
6348
  if (args.runAsync !== undefined && args.runAsync !== null) {
7921
6349
  this.runAsync = args.runAsync;
7922
6350
  }
7923
- if (args.operationId !== undefined && args.operationId !== null) {
7924
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
7925
- }
7926
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
7927
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
7928
- }
7929
6351
  }
7930
6352
  };
7931
6353
  TGetTableTypesReq.prototype = {};
@@ -7962,22 +6384,6 @@ TGetTableTypesReq.prototype.read = function(input) {
7962
6384
  input.skip(ftype);
7963
6385
  }
7964
6386
  break;
7965
- case 3329:
7966
- if (ftype == Thrift.Type.STRUCT) {
7967
- this.operationId = new ttypes.THandleIdentifier();
7968
- this.operationId.read(input);
7969
- } else {
7970
- input.skip(ftype);
7971
- }
7972
- break;
7973
- case 3330:
7974
- if (ftype == Thrift.Type.STRUCT) {
7975
- this.sessionConf = new ttypes.TDBSqlSessionConf();
7976
- this.sessionConf.read(input);
7977
- } else {
7978
- input.skip(ftype);
7979
- }
7980
- break;
7981
6387
  default:
7982
6388
  input.skip(ftype);
7983
6389
  }
@@ -8004,16 +6410,6 @@ TGetTableTypesReq.prototype.write = function(output) {
8004
6410
  output.writeBool(this.runAsync);
8005
6411
  output.writeFieldEnd();
8006
6412
  }
8007
- if (this.operationId !== null && this.operationId !== undefined) {
8008
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
8009
- this.operationId.write(output);
8010
- output.writeFieldEnd();
8011
- }
8012
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
8013
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
8014
- this.sessionConf.write(output);
8015
- output.writeFieldEnd();
8016
- }
8017
6413
  output.writeFieldStop();
8018
6414
  output.writeStructEnd();
8019
6415
  return;
@@ -8111,8 +6507,6 @@ var TGetColumnsReq = module.exports.TGetColumnsReq = function(args) {
8111
6507
  this.columnName = null;
8112
6508
  this.getDirectResults = null;
8113
6509
  this.runAsync = false;
8114
- this.operationId = null;
8115
- this.sessionConf = null;
8116
6510
  if (args) {
8117
6511
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
8118
6512
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -8137,12 +6531,6 @@ var TGetColumnsReq = module.exports.TGetColumnsReq = function(args) {
8137
6531
  if (args.runAsync !== undefined && args.runAsync !== null) {
8138
6532
  this.runAsync = args.runAsync;
8139
6533
  }
8140
- if (args.operationId !== undefined && args.operationId !== null) {
8141
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
8142
- }
8143
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
8144
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
8145
- }
8146
6534
  }
8147
6535
  };
8148
6536
  TGetColumnsReq.prototype = {};
@@ -8207,22 +6595,6 @@ TGetColumnsReq.prototype.read = function(input) {
8207
6595
  input.skip(ftype);
8208
6596
  }
8209
6597
  break;
8210
- case 3329:
8211
- if (ftype == Thrift.Type.STRUCT) {
8212
- this.operationId = new ttypes.THandleIdentifier();
8213
- this.operationId.read(input);
8214
- } else {
8215
- input.skip(ftype);
8216
- }
8217
- break;
8218
- case 3330:
8219
- if (ftype == Thrift.Type.STRUCT) {
8220
- this.sessionConf = new ttypes.TDBSqlSessionConf();
8221
- this.sessionConf.read(input);
8222
- } else {
8223
- input.skip(ftype);
8224
- }
8225
- break;
8226
6598
  default:
8227
6599
  input.skip(ftype);
8228
6600
  }
@@ -8269,16 +6641,6 @@ TGetColumnsReq.prototype.write = function(output) {
8269
6641
  output.writeBool(this.runAsync);
8270
6642
  output.writeFieldEnd();
8271
6643
  }
8272
- if (this.operationId !== null && this.operationId !== undefined) {
8273
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
8274
- this.operationId.write(output);
8275
- output.writeFieldEnd();
8276
- }
8277
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
8278
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
8279
- this.sessionConf.write(output);
8280
- output.writeFieldEnd();
8281
- }
8282
6644
  output.writeFieldStop();
8283
6645
  output.writeStructEnd();
8284
6646
  return;
@@ -8375,8 +6737,6 @@ var TGetFunctionsReq = module.exports.TGetFunctionsReq = function(args) {
8375
6737
  this.functionName = null;
8376
6738
  this.getDirectResults = null;
8377
6739
  this.runAsync = false;
8378
- this.operationId = null;
8379
- this.sessionConf = null;
8380
6740
  if (args) {
8381
6741
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
8382
6742
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -8400,12 +6760,6 @@ var TGetFunctionsReq = module.exports.TGetFunctionsReq = function(args) {
8400
6760
  if (args.runAsync !== undefined && args.runAsync !== null) {
8401
6761
  this.runAsync = args.runAsync;
8402
6762
  }
8403
- if (args.operationId !== undefined && args.operationId !== null) {
8404
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
8405
- }
8406
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
8407
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
8408
- }
8409
6763
  }
8410
6764
  };
8411
6765
  TGetFunctionsReq.prototype = {};
@@ -8457,24 +6811,8 @@ TGetFunctionsReq.prototype.read = function(input) {
8457
6811
  }
8458
6812
  break;
8459
6813
  case 1282:
8460
- if (ftype == Thrift.Type.BOOL) {
8461
- this.runAsync = input.readBool();
8462
- } else {
8463
- input.skip(ftype);
8464
- }
8465
- break;
8466
- case 3329:
8467
- if (ftype == Thrift.Type.STRUCT) {
8468
- this.operationId = new ttypes.THandleIdentifier();
8469
- this.operationId.read(input);
8470
- } else {
8471
- input.skip(ftype);
8472
- }
8473
- break;
8474
- case 3330:
8475
- if (ftype == Thrift.Type.STRUCT) {
8476
- this.sessionConf = new ttypes.TDBSqlSessionConf();
8477
- this.sessionConf.read(input);
6814
+ if (ftype == Thrift.Type.BOOL) {
6815
+ this.runAsync = input.readBool();
8478
6816
  } else {
8479
6817
  input.skip(ftype);
8480
6818
  }
@@ -8520,16 +6858,6 @@ TGetFunctionsReq.prototype.write = function(output) {
8520
6858
  output.writeBool(this.runAsync);
8521
6859
  output.writeFieldEnd();
8522
6860
  }
8523
- if (this.operationId !== null && this.operationId !== undefined) {
8524
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
8525
- this.operationId.write(output);
8526
- output.writeFieldEnd();
8527
- }
8528
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
8529
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
8530
- this.sessionConf.write(output);
8531
- output.writeFieldEnd();
8532
- }
8533
6861
  output.writeFieldStop();
8534
6862
  output.writeStructEnd();
8535
6863
  return;
@@ -8626,8 +6954,6 @@ var TGetPrimaryKeysReq = module.exports.TGetPrimaryKeysReq = function(args) {
8626
6954
  this.tableName = null;
8627
6955
  this.getDirectResults = null;
8628
6956
  this.runAsync = false;
8629
- this.operationId = null;
8630
- this.sessionConf = null;
8631
6957
  if (args) {
8632
6958
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
8633
6959
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -8649,12 +6975,6 @@ var TGetPrimaryKeysReq = module.exports.TGetPrimaryKeysReq = function(args) {
8649
6975
  if (args.runAsync !== undefined && args.runAsync !== null) {
8650
6976
  this.runAsync = args.runAsync;
8651
6977
  }
8652
- if (args.operationId !== undefined && args.operationId !== null) {
8653
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
8654
- }
8655
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
8656
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
8657
- }
8658
6978
  }
8659
6979
  };
8660
6980
  TGetPrimaryKeysReq.prototype = {};
@@ -8712,22 +7032,6 @@ TGetPrimaryKeysReq.prototype.read = function(input) {
8712
7032
  input.skip(ftype);
8713
7033
  }
8714
7034
  break;
8715
- case 3329:
8716
- if (ftype == Thrift.Type.STRUCT) {
8717
- this.operationId = new ttypes.THandleIdentifier();
8718
- this.operationId.read(input);
8719
- } else {
8720
- input.skip(ftype);
8721
- }
8722
- break;
8723
- case 3330:
8724
- if (ftype == Thrift.Type.STRUCT) {
8725
- this.sessionConf = new ttypes.TDBSqlSessionConf();
8726
- this.sessionConf.read(input);
8727
- } else {
8728
- input.skip(ftype);
8729
- }
8730
- break;
8731
7035
  default:
8732
7036
  input.skip(ftype);
8733
7037
  }
@@ -8769,16 +7073,6 @@ TGetPrimaryKeysReq.prototype.write = function(output) {
8769
7073
  output.writeBool(this.runAsync);
8770
7074
  output.writeFieldEnd();
8771
7075
  }
8772
- if (this.operationId !== null && this.operationId !== undefined) {
8773
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
8774
- this.operationId.write(output);
8775
- output.writeFieldEnd();
8776
- }
8777
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
8778
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
8779
- this.sessionConf.write(output);
8780
- output.writeFieldEnd();
8781
- }
8782
7076
  output.writeFieldStop();
8783
7077
  output.writeStructEnd();
8784
7078
  return;
@@ -8878,8 +7172,6 @@ var TGetCrossReferenceReq = module.exports.TGetCrossReferenceReq = function(args
8878
7172
  this.foreignTableName = null;
8879
7173
  this.getDirectResults = null;
8880
7174
  this.runAsync = false;
8881
- this.operationId = null;
8882
- this.sessionConf = null;
8883
7175
  if (args) {
8884
7176
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
8885
7177
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -8910,12 +7202,6 @@ var TGetCrossReferenceReq = module.exports.TGetCrossReferenceReq = function(args
8910
7202
  if (args.runAsync !== undefined && args.runAsync !== null) {
8911
7203
  this.runAsync = args.runAsync;
8912
7204
  }
8913
- if (args.operationId !== undefined && args.operationId !== null) {
8914
- this.operationId = new ttypes.THandleIdentifier(args.operationId);
8915
- }
8916
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
8917
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
8918
- }
8919
7205
  }
8920
7206
  };
8921
7207
  TGetCrossReferenceReq.prototype = {};
@@ -8994,22 +7280,6 @@ TGetCrossReferenceReq.prototype.read = function(input) {
8994
7280
  input.skip(ftype);
8995
7281
  }
8996
7282
  break;
8997
- case 3329:
8998
- if (ftype == Thrift.Type.STRUCT) {
8999
- this.operationId = new ttypes.THandleIdentifier();
9000
- this.operationId.read(input);
9001
- } else {
9002
- input.skip(ftype);
9003
- }
9004
- break;
9005
- case 3330:
9006
- if (ftype == Thrift.Type.STRUCT) {
9007
- this.sessionConf = new ttypes.TDBSqlSessionConf();
9008
- this.sessionConf.read(input);
9009
- } else {
9010
- input.skip(ftype);
9011
- }
9012
- break;
9013
7283
  default:
9014
7284
  input.skip(ftype);
9015
7285
  }
@@ -9066,16 +7336,6 @@ TGetCrossReferenceReq.prototype.write = function(output) {
9066
7336
  output.writeBool(this.runAsync);
9067
7337
  output.writeFieldEnd();
9068
7338
  }
9069
- if (this.operationId !== null && this.operationId !== undefined) {
9070
- output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
9071
- this.operationId.write(output);
9072
- output.writeFieldEnd();
9073
- }
9074
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
9075
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
9076
- this.sessionConf.write(output);
9077
- output.writeFieldEnd();
9078
- }
9079
7339
  output.writeFieldStop();
9080
7340
  output.writeStructEnd();
9081
7341
  return;
@@ -9246,10 +7506,6 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
9246
7506
  this.displayMessage = null;
9247
7507
  this.diagnosticInfo = null;
9248
7508
  this.errorDetailsJson = null;
9249
- this.responseValidation = null;
9250
- this.idempotencyType = null;
9251
- this.statementTimeout = null;
9252
- this.statementTimeoutLevel = null;
9253
7509
  if (args) {
9254
7510
  if (args.status !== undefined && args.status !== null) {
9255
7511
  this.status = new ttypes.TStatus(args.status);
@@ -9295,18 +7551,6 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
9295
7551
  if (args.errorDetailsJson !== undefined && args.errorDetailsJson !== null) {
9296
7552
  this.errorDetailsJson = args.errorDetailsJson;
9297
7553
  }
9298
- if (args.responseValidation !== undefined && args.responseValidation !== null) {
9299
- this.responseValidation = args.responseValidation;
9300
- }
9301
- if (args.idempotencyType !== undefined && args.idempotencyType !== null) {
9302
- this.idempotencyType = args.idempotencyType;
9303
- }
9304
- if (args.statementTimeout !== undefined && args.statementTimeout !== null) {
9305
- this.statementTimeout = args.statementTimeout;
9306
- }
9307
- if (args.statementTimeoutLevel !== undefined && args.statementTimeoutLevel !== null) {
9308
- this.statementTimeoutLevel = args.statementTimeoutLevel;
9309
- }
9310
7554
  }
9311
7555
  };
9312
7556
  TGetOperationStatusResp.prototype = {};
@@ -9420,34 +7664,6 @@ TGetOperationStatusResp.prototype.read = function(input) {
9420
7664
  input.skip(ftype);
9421
7665
  }
9422
7666
  break;
9423
- case 3329:
9424
- if (ftype == Thrift.Type.STRING) {
9425
- this.responseValidation = input.readBinary();
9426
- } else {
9427
- input.skip(ftype);
9428
- }
9429
- break;
9430
- case 3330:
9431
- if (ftype == Thrift.Type.I32) {
9432
- this.idempotencyType = input.readI32();
9433
- } else {
9434
- input.skip(ftype);
9435
- }
9436
- break;
9437
- case 3331:
9438
- if (ftype == Thrift.Type.I64) {
9439
- this.statementTimeout = input.readI64();
9440
- } else {
9441
- input.skip(ftype);
9442
- }
9443
- break;
9444
- case 3332:
9445
- if (ftype == Thrift.Type.I32) {
9446
- this.statementTimeoutLevel = input.readI32();
9447
- } else {
9448
- input.skip(ftype);
9449
- }
9450
- break;
9451
7667
  default:
9452
7668
  input.skip(ftype);
9453
7669
  }
@@ -9529,26 +7745,6 @@ TGetOperationStatusResp.prototype.write = function(output) {
9529
7745
  output.writeString(this.errorDetailsJson);
9530
7746
  output.writeFieldEnd();
9531
7747
  }
9532
- if (this.responseValidation !== null && this.responseValidation !== undefined) {
9533
- output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
9534
- output.writeBinary(this.responseValidation);
9535
- output.writeFieldEnd();
9536
- }
9537
- if (this.idempotencyType !== null && this.idempotencyType !== undefined) {
9538
- output.writeFieldBegin('idempotencyType', Thrift.Type.I32, 3330);
9539
- output.writeI32(this.idempotencyType);
9540
- output.writeFieldEnd();
9541
- }
9542
- if (this.statementTimeout !== null && this.statementTimeout !== undefined) {
9543
- output.writeFieldBegin('statementTimeout', Thrift.Type.I64, 3331);
9544
- output.writeI64(this.statementTimeout);
9545
- output.writeFieldEnd();
9546
- }
9547
- if (this.statementTimeoutLevel !== null && this.statementTimeoutLevel !== undefined) {
9548
- output.writeFieldBegin('statementTimeoutLevel', Thrift.Type.I32, 3332);
9549
- output.writeI32(this.statementTimeoutLevel);
9550
- output.writeFieldEnd();
9551
- }
9552
7748
  output.writeFieldStop();
9553
7749
  output.writeStructEnd();
9554
7750
  return;
@@ -9556,20 +7752,12 @@ TGetOperationStatusResp.prototype.write = function(output) {
9556
7752
 
9557
7753
  var TCancelOperationReq = module.exports.TCancelOperationReq = function(args) {
9558
7754
  this.operationHandle = null;
9559
- this.executionVersion = null;
9560
- this.replacedByNextAttempt = null;
9561
7755
  if (args) {
9562
7756
  if (args.operationHandle !== undefined && args.operationHandle !== null) {
9563
7757
  this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
9564
7758
  } else {
9565
7759
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field operationHandle is unset!');
9566
7760
  }
9567
- if (args.executionVersion !== undefined && args.executionVersion !== null) {
9568
- this.executionVersion = args.executionVersion;
9569
- }
9570
- if (args.replacedByNextAttempt !== undefined && args.replacedByNextAttempt !== null) {
9571
- this.replacedByNextAttempt = args.replacedByNextAttempt;
9572
- }
9573
7761
  }
9574
7762
  };
9575
7763
  TCancelOperationReq.prototype = {};
@@ -9591,20 +7779,9 @@ TCancelOperationReq.prototype.read = function(input) {
9591
7779
  input.skip(ftype);
9592
7780
  }
9593
7781
  break;
9594
- case 3329:
9595
- if (ftype == Thrift.Type.I16) {
9596
- this.executionVersion = input.readI16();
9597
- } else {
9598
- input.skip(ftype);
9599
- }
9600
- break;
9601
- case 3330:
9602
- if (ftype == Thrift.Type.BOOL) {
9603
- this.replacedByNextAttempt = input.readBool();
9604
- } else {
7782
+ case 0:
9605
7783
  input.skip(ftype);
9606
- }
9607
- break;
7784
+ break;
9608
7785
  default:
9609
7786
  input.skip(ftype);
9610
7787
  }
@@ -9621,16 +7798,6 @@ TCancelOperationReq.prototype.write = function(output) {
9621
7798
  this.operationHandle.write(output);
9622
7799
  output.writeFieldEnd();
9623
7800
  }
9624
- if (this.executionVersion !== null && this.executionVersion !== undefined) {
9625
- output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3329);
9626
- output.writeI16(this.executionVersion);
9627
- output.writeFieldEnd();
9628
- }
9629
- if (this.replacedByNextAttempt !== null && this.replacedByNextAttempt !== undefined) {
9630
- output.writeFieldBegin('replacedByNextAttempt', Thrift.Type.BOOL, 3330);
9631
- output.writeBool(this.replacedByNextAttempt);
9632
- output.writeFieldEnd();
9633
- }
9634
7801
  output.writeFieldStop();
9635
7802
  output.writeStructEnd();
9636
7803
  return;
@@ -9691,16 +7858,12 @@ TCancelOperationResp.prototype.write = function(output) {
9691
7858
 
9692
7859
  var TCloseOperationReq = module.exports.TCloseOperationReq = function(args) {
9693
7860
  this.operationHandle = null;
9694
- this.closeReason = 0;
9695
7861
  if (args) {
9696
7862
  if (args.operationHandle !== undefined && args.operationHandle !== null) {
9697
7863
  this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
9698
7864
  } else {
9699
7865
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field operationHandle is unset!');
9700
7866
  }
9701
- if (args.closeReason !== undefined && args.closeReason !== null) {
9702
- this.closeReason = args.closeReason;
9703
- }
9704
7867
  }
9705
7868
  };
9706
7869
  TCloseOperationReq.prototype = {};
@@ -9722,13 +7885,9 @@ TCloseOperationReq.prototype.read = function(input) {
9722
7885
  input.skip(ftype);
9723
7886
  }
9724
7887
  break;
9725
- case 3329:
9726
- if (ftype == Thrift.Type.I32) {
9727
- this.closeReason = input.readI32();
9728
- } else {
7888
+ case 0:
9729
7889
  input.skip(ftype);
9730
- }
9731
- break;
7890
+ break;
9732
7891
  default:
9733
7892
  input.skip(ftype);
9734
7893
  }
@@ -9745,11 +7904,6 @@ TCloseOperationReq.prototype.write = function(output) {
9745
7904
  this.operationHandle.write(output);
9746
7905
  output.writeFieldEnd();
9747
7906
  }
9748
- if (this.closeReason !== null && this.closeReason !== undefined) {
9749
- output.writeFieldBegin('closeReason', Thrift.Type.I32, 3329);
9750
- output.writeI32(this.closeReason);
9751
- output.writeFieldEnd();
9752
- }
9753
7907
  output.writeFieldStop();
9754
7908
  output.writeStructEnd();
9755
7909
  return;
@@ -9810,16 +7964,12 @@ TCloseOperationResp.prototype.write = function(output) {
9810
7964
 
9811
7965
  var TGetResultSetMetadataReq = module.exports.TGetResultSetMetadataReq = function(args) {
9812
7966
  this.operationHandle = null;
9813
- this.includeCloudResultFiles = null;
9814
7967
  if (args) {
9815
7968
  if (args.operationHandle !== undefined && args.operationHandle !== null) {
9816
7969
  this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
9817
7970
  } else {
9818
7971
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field operationHandle is unset!');
9819
7972
  }
9820
- if (args.includeCloudResultFiles !== undefined && args.includeCloudResultFiles !== null) {
9821
- this.includeCloudResultFiles = args.includeCloudResultFiles;
9822
- }
9823
7973
  }
9824
7974
  };
9825
7975
  TGetResultSetMetadataReq.prototype = {};
@@ -9841,13 +7991,9 @@ TGetResultSetMetadataReq.prototype.read = function(input) {
9841
7991
  input.skip(ftype);
9842
7992
  }
9843
7993
  break;
9844
- case 3329:
9845
- if (ftype == Thrift.Type.BOOL) {
9846
- this.includeCloudResultFiles = input.readBool();
9847
- } else {
7994
+ case 0:
9848
7995
  input.skip(ftype);
9849
- }
9850
- break;
7996
+ break;
9851
7997
  default:
9852
7998
  input.skip(ftype);
9853
7999
  }
@@ -9864,11 +8010,6 @@ TGetResultSetMetadataReq.prototype.write = function(output) {
9864
8010
  this.operationHandle.write(output);
9865
8011
  output.writeFieldEnd();
9866
8012
  }
9867
- if (this.includeCloudResultFiles !== null && this.includeCloudResultFiles !== undefined) {
9868
- output.writeFieldBegin('includeCloudResultFiles', Thrift.Type.BOOL, 3329);
9869
- output.writeBool(this.includeCloudResultFiles);
9870
- output.writeFieldEnd();
9871
- }
9872
8013
  output.writeFieldStop();
9873
8014
  output.writeStructEnd();
9874
8015
  return;
@@ -9884,18 +8025,6 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
9884
8025
  this.uncompressedBytes = null;
9885
8026
  this.compressedBytes = null;
9886
8027
  this.isStagingOperation = null;
9887
- this.reasonForNoCloudFetch = null;
9888
- this.resultFiles = null;
9889
- this.manifestFile = null;
9890
- this.manifestFileFormat = null;
9891
- this.cacheLookupLatency = null;
9892
- this.remoteCacheMissReason = null;
9893
- this.fetchDisposition = null;
9894
- this.remoteResultCacheEnabled = null;
9895
- this.isServerless = null;
9896
- this.resultDataFormat = null;
9897
- this.truncatedByThriftLimit = null;
9898
- this.resultByteLimit = null;
9899
8028
  if (args) {
9900
8029
  if (args.status !== undefined && args.status !== null) {
9901
8030
  this.status = new ttypes.TStatus(args.status);
@@ -9926,42 +8055,6 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
9926
8055
  if (args.isStagingOperation !== undefined && args.isStagingOperation !== null) {
9927
8056
  this.isStagingOperation = args.isStagingOperation;
9928
8057
  }
9929
- if (args.reasonForNoCloudFetch !== undefined && args.reasonForNoCloudFetch !== null) {
9930
- this.reasonForNoCloudFetch = args.reasonForNoCloudFetch;
9931
- }
9932
- if (args.resultFiles !== undefined && args.resultFiles !== null) {
9933
- this.resultFiles = Thrift.copyList(args.resultFiles, [ttypes.TDBSqlCloudResultFile]);
9934
- }
9935
- if (args.manifestFile !== undefined && args.manifestFile !== null) {
9936
- this.manifestFile = args.manifestFile;
9937
- }
9938
- if (args.manifestFileFormat !== undefined && args.manifestFileFormat !== null) {
9939
- this.manifestFileFormat = args.manifestFileFormat;
9940
- }
9941
- if (args.cacheLookupLatency !== undefined && args.cacheLookupLatency !== null) {
9942
- this.cacheLookupLatency = args.cacheLookupLatency;
9943
- }
9944
- if (args.remoteCacheMissReason !== undefined && args.remoteCacheMissReason !== null) {
9945
- this.remoteCacheMissReason = args.remoteCacheMissReason;
9946
- }
9947
- if (args.fetchDisposition !== undefined && args.fetchDisposition !== null) {
9948
- this.fetchDisposition = args.fetchDisposition;
9949
- }
9950
- if (args.remoteResultCacheEnabled !== undefined && args.remoteResultCacheEnabled !== null) {
9951
- this.remoteResultCacheEnabled = args.remoteResultCacheEnabled;
9952
- }
9953
- if (args.isServerless !== undefined && args.isServerless !== null) {
9954
- this.isServerless = args.isServerless;
9955
- }
9956
- if (args.resultDataFormat !== undefined && args.resultDataFormat !== null) {
9957
- this.resultDataFormat = new ttypes.TDBSqlResultFormat(args.resultDataFormat);
9958
- }
9959
- if (args.truncatedByThriftLimit !== undefined && args.truncatedByThriftLimit !== null) {
9960
- this.truncatedByThriftLimit = args.truncatedByThriftLimit;
9961
- }
9962
- if (args.resultByteLimit !== undefined && args.resultByteLimit !== null) {
9963
- this.resultByteLimit = args.resultByteLimit;
9964
- }
9965
8058
  }
9966
8059
  };
9967
8060
  TGetResultSetMetadataResp.prototype = {};
@@ -10040,100 +8133,6 @@ TGetResultSetMetadataResp.prototype.read = function(input) {
10040
8133
  input.skip(ftype);
10041
8134
  }
10042
8135
  break;
10043
- case 3329:
10044
- if (ftype == Thrift.Type.I32) {
10045
- this.reasonForNoCloudFetch = input.readI32();
10046
- } else {
10047
- input.skip(ftype);
10048
- }
10049
- break;
10050
- case 3330:
10051
- if (ftype == Thrift.Type.LIST) {
10052
- this.resultFiles = [];
10053
- var _rtmp3210 = input.readListBegin();
10054
- var _size209 = _rtmp3210.size || 0;
10055
- for (var _i211 = 0; _i211 < _size209; ++_i211) {
10056
- var elem212 = null;
10057
- elem212 = new ttypes.TDBSqlCloudResultFile();
10058
- elem212.read(input);
10059
- this.resultFiles.push(elem212);
10060
- }
10061
- input.readListEnd();
10062
- } else {
10063
- input.skip(ftype);
10064
- }
10065
- break;
10066
- case 3331:
10067
- if (ftype == Thrift.Type.STRING) {
10068
- this.manifestFile = input.readString();
10069
- } else {
10070
- input.skip(ftype);
10071
- }
10072
- break;
10073
- case 3332:
10074
- if (ftype == Thrift.Type.I32) {
10075
- this.manifestFileFormat = input.readI32();
10076
- } else {
10077
- input.skip(ftype);
10078
- }
10079
- break;
10080
- case 3333:
10081
- if (ftype == Thrift.Type.I64) {
10082
- this.cacheLookupLatency = input.readI64();
10083
- } else {
10084
- input.skip(ftype);
10085
- }
10086
- break;
10087
- case 3334:
10088
- if (ftype == Thrift.Type.STRING) {
10089
- this.remoteCacheMissReason = input.readString();
10090
- } else {
10091
- input.skip(ftype);
10092
- }
10093
- break;
10094
- case 3335:
10095
- if (ftype == Thrift.Type.I32) {
10096
- this.fetchDisposition = input.readI32();
10097
- } else {
10098
- input.skip(ftype);
10099
- }
10100
- break;
10101
- case 3336:
10102
- if (ftype == Thrift.Type.BOOL) {
10103
- this.remoteResultCacheEnabled = input.readBool();
10104
- } else {
10105
- input.skip(ftype);
10106
- }
10107
- break;
10108
- case 3337:
10109
- if (ftype == Thrift.Type.BOOL) {
10110
- this.isServerless = input.readBool();
10111
- } else {
10112
- input.skip(ftype);
10113
- }
10114
- break;
10115
- case 3344:
10116
- if (ftype == Thrift.Type.STRUCT) {
10117
- this.resultDataFormat = new ttypes.TDBSqlResultFormat();
10118
- this.resultDataFormat.read(input);
10119
- } else {
10120
- input.skip(ftype);
10121
- }
10122
- break;
10123
- case 3345:
10124
- if (ftype == Thrift.Type.BOOL) {
10125
- this.truncatedByThriftLimit = input.readBool();
10126
- } else {
10127
- input.skip(ftype);
10128
- }
10129
- break;
10130
- case 3346:
10131
- if (ftype == Thrift.Type.I64) {
10132
- this.resultByteLimit = input.readI64();
10133
- } else {
10134
- input.skip(ftype);
10135
- }
10136
- break;
10137
8136
  default:
10138
8137
  input.skip(ftype);
10139
8138
  }
@@ -10190,73 +8189,6 @@ TGetResultSetMetadataResp.prototype.write = function(output) {
10190
8189
  output.writeBool(this.isStagingOperation);
10191
8190
  output.writeFieldEnd();
10192
8191
  }
10193
- if (this.reasonForNoCloudFetch !== null && this.reasonForNoCloudFetch !== undefined) {
10194
- output.writeFieldBegin('reasonForNoCloudFetch', Thrift.Type.I32, 3329);
10195
- output.writeI32(this.reasonForNoCloudFetch);
10196
- output.writeFieldEnd();
10197
- }
10198
- if (this.resultFiles !== null && this.resultFiles !== undefined) {
10199
- output.writeFieldBegin('resultFiles', Thrift.Type.LIST, 3330);
10200
- output.writeListBegin(Thrift.Type.STRUCT, this.resultFiles.length);
10201
- for (var iter213 in this.resultFiles) {
10202
- if (this.resultFiles.hasOwnProperty(iter213)) {
10203
- iter213 = this.resultFiles[iter213];
10204
- iter213.write(output);
10205
- }
10206
- }
10207
- output.writeListEnd();
10208
- output.writeFieldEnd();
10209
- }
10210
- if (this.manifestFile !== null && this.manifestFile !== undefined) {
10211
- output.writeFieldBegin('manifestFile', Thrift.Type.STRING, 3331);
10212
- output.writeString(this.manifestFile);
10213
- output.writeFieldEnd();
10214
- }
10215
- if (this.manifestFileFormat !== null && this.manifestFileFormat !== undefined) {
10216
- output.writeFieldBegin('manifestFileFormat', Thrift.Type.I32, 3332);
10217
- output.writeI32(this.manifestFileFormat);
10218
- output.writeFieldEnd();
10219
- }
10220
- if (this.cacheLookupLatency !== null && this.cacheLookupLatency !== undefined) {
10221
- output.writeFieldBegin('cacheLookupLatency', Thrift.Type.I64, 3333);
10222
- output.writeI64(this.cacheLookupLatency);
10223
- output.writeFieldEnd();
10224
- }
10225
- if (this.remoteCacheMissReason !== null && this.remoteCacheMissReason !== undefined) {
10226
- output.writeFieldBegin('remoteCacheMissReason', Thrift.Type.STRING, 3334);
10227
- output.writeString(this.remoteCacheMissReason);
10228
- output.writeFieldEnd();
10229
- }
10230
- if (this.fetchDisposition !== null && this.fetchDisposition !== undefined) {
10231
- output.writeFieldBegin('fetchDisposition', Thrift.Type.I32, 3335);
10232
- output.writeI32(this.fetchDisposition);
10233
- output.writeFieldEnd();
10234
- }
10235
- if (this.remoteResultCacheEnabled !== null && this.remoteResultCacheEnabled !== undefined) {
10236
- output.writeFieldBegin('remoteResultCacheEnabled', Thrift.Type.BOOL, 3336);
10237
- output.writeBool(this.remoteResultCacheEnabled);
10238
- output.writeFieldEnd();
10239
- }
10240
- if (this.isServerless !== null && this.isServerless !== undefined) {
10241
- output.writeFieldBegin('isServerless', Thrift.Type.BOOL, 3337);
10242
- output.writeBool(this.isServerless);
10243
- output.writeFieldEnd();
10244
- }
10245
- if (this.resultDataFormat !== null && this.resultDataFormat !== undefined) {
10246
- output.writeFieldBegin('resultDataFormat', Thrift.Type.STRUCT, 3344);
10247
- this.resultDataFormat.write(output);
10248
- output.writeFieldEnd();
10249
- }
10250
- if (this.truncatedByThriftLimit !== null && this.truncatedByThriftLimit !== undefined) {
10251
- output.writeFieldBegin('truncatedByThriftLimit', Thrift.Type.BOOL, 3345);
10252
- output.writeBool(this.truncatedByThriftLimit);
10253
- output.writeFieldEnd();
10254
- }
10255
- if (this.resultByteLimit !== null && this.resultByteLimit !== undefined) {
10256
- output.writeFieldBegin('resultByteLimit', Thrift.Type.I64, 3346);
10257
- output.writeI64(this.resultByteLimit);
10258
- output.writeFieldEnd();
10259
- }
10260
8192
  output.writeFieldStop();
10261
8193
  output.writeStructEnd();
10262
8194
  return;
@@ -10417,7 +8349,6 @@ var TFetchResultsResp = module.exports.TFetchResultsResp = function(args) {
10417
8349
  this.hasMoreRows = null;
10418
8350
  this.results = null;
10419
8351
  this.resultSetMetadata = null;
10420
- this.responseValidation = null;
10421
8352
  if (args) {
10422
8353
  if (args.status !== undefined && args.status !== null) {
10423
8354
  this.status = new ttypes.TStatus(args.status);
@@ -10433,9 +8364,6 @@ var TFetchResultsResp = module.exports.TFetchResultsResp = function(args) {
10433
8364
  if (args.resultSetMetadata !== undefined && args.resultSetMetadata !== null) {
10434
8365
  this.resultSetMetadata = new ttypes.TGetResultSetMetadataResp(args.resultSetMetadata);
10435
8366
  }
10436
- if (args.responseValidation !== undefined && args.responseValidation !== null) {
10437
- this.responseValidation = args.responseValidation;
10438
- }
10439
8367
  }
10440
8368
  };
10441
8369
  TFetchResultsResp.prototype = {};
@@ -10480,13 +8408,6 @@ TFetchResultsResp.prototype.read = function(input) {
10480
8408
  input.skip(ftype);
10481
8409
  }
10482
8410
  break;
10483
- case 3329:
10484
- if (ftype == Thrift.Type.STRING) {
10485
- this.responseValidation = input.readBinary();
10486
- } else {
10487
- input.skip(ftype);
10488
- }
10489
- break;
10490
8411
  default:
10491
8412
  input.skip(ftype);
10492
8413
  }
@@ -10518,11 +8439,6 @@ TFetchResultsResp.prototype.write = function(output) {
10518
8439
  this.resultSetMetadata.write(output);
10519
8440
  output.writeFieldEnd();
10520
8441
  }
10521
- if (this.responseValidation !== null && this.responseValidation !== undefined) {
10522
- output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
10523
- output.writeBinary(this.responseValidation);
10524
- output.writeFieldEnd();
10525
- }
10526
8442
  output.writeFieldStop();
10527
8443
  output.writeStructEnd();
10528
8444
  return;
@@ -10532,7 +8448,6 @@ var TGetDelegationTokenReq = module.exports.TGetDelegationTokenReq = function(ar
10532
8448
  this.sessionHandle = null;
10533
8449
  this.owner = null;
10534
8450
  this.renewer = null;
10535
- this.sessionConf = null;
10536
8451
  if (args) {
10537
8452
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
10538
8453
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -10549,9 +8464,6 @@ var TGetDelegationTokenReq = module.exports.TGetDelegationTokenReq = function(ar
10549
8464
  } else {
10550
8465
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field renewer is unset!');
10551
8466
  }
10552
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
10553
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
10554
- }
10555
8467
  }
10556
8468
  };
10557
8469
  TGetDelegationTokenReq.prototype = {};
@@ -10587,14 +8499,6 @@ TGetDelegationTokenReq.prototype.read = function(input) {
10587
8499
  input.skip(ftype);
10588
8500
  }
10589
8501
  break;
10590
- case 3329:
10591
- if (ftype == Thrift.Type.STRUCT) {
10592
- this.sessionConf = new ttypes.TDBSqlSessionConf();
10593
- this.sessionConf.read(input);
10594
- } else {
10595
- input.skip(ftype);
10596
- }
10597
- break;
10598
8502
  default:
10599
8503
  input.skip(ftype);
10600
8504
  }
@@ -10621,11 +8525,6 @@ TGetDelegationTokenReq.prototype.write = function(output) {
10621
8525
  output.writeString(this.renewer);
10622
8526
  output.writeFieldEnd();
10623
8527
  }
10624
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
10625
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3329);
10626
- this.sessionConf.write(output);
10627
- output.writeFieldEnd();
10628
- }
10629
8528
  output.writeFieldStop();
10630
8529
  output.writeStructEnd();
10631
8530
  return;
@@ -10700,7 +8599,6 @@ TGetDelegationTokenResp.prototype.write = function(output) {
10700
8599
  var TCancelDelegationTokenReq = module.exports.TCancelDelegationTokenReq = function(args) {
10701
8600
  this.sessionHandle = null;
10702
8601
  this.delegationToken = null;
10703
- this.sessionConf = null;
10704
8602
  if (args) {
10705
8603
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
10706
8604
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -10712,9 +8610,6 @@ var TCancelDelegationTokenReq = module.exports.TCancelDelegationTokenReq = funct
10712
8610
  } else {
10713
8611
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field delegationToken is unset!');
10714
8612
  }
10715
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
10716
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
10717
- }
10718
8613
  }
10719
8614
  };
10720
8615
  TCancelDelegationTokenReq.prototype = {};
@@ -10743,14 +8638,6 @@ TCancelDelegationTokenReq.prototype.read = function(input) {
10743
8638
  input.skip(ftype);
10744
8639
  }
10745
8640
  break;
10746
- case 3329:
10747
- if (ftype == Thrift.Type.STRUCT) {
10748
- this.sessionConf = new ttypes.TDBSqlSessionConf();
10749
- this.sessionConf.read(input);
10750
- } else {
10751
- input.skip(ftype);
10752
- }
10753
- break;
10754
8641
  default:
10755
8642
  input.skip(ftype);
10756
8643
  }
@@ -10772,11 +8659,6 @@ TCancelDelegationTokenReq.prototype.write = function(output) {
10772
8659
  output.writeString(this.delegationToken);
10773
8660
  output.writeFieldEnd();
10774
8661
  }
10775
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
10776
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3329);
10777
- this.sessionConf.write(output);
10778
- output.writeFieldEnd();
10779
- }
10780
8662
  output.writeFieldStop();
10781
8663
  output.writeStructEnd();
10782
8664
  return;
@@ -10838,7 +8720,6 @@ TCancelDelegationTokenResp.prototype.write = function(output) {
10838
8720
  var TRenewDelegationTokenReq = module.exports.TRenewDelegationTokenReq = function(args) {
10839
8721
  this.sessionHandle = null;
10840
8722
  this.delegationToken = null;
10841
- this.sessionConf = null;
10842
8723
  if (args) {
10843
8724
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
10844
8725
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -10850,9 +8731,6 @@ var TRenewDelegationTokenReq = module.exports.TRenewDelegationTokenReq = functio
10850
8731
  } else {
10851
8732
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field delegationToken is unset!');
10852
8733
  }
10853
- if (args.sessionConf !== undefined && args.sessionConf !== null) {
10854
- this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
10855
- }
10856
8734
  }
10857
8735
  };
10858
8736
  TRenewDelegationTokenReq.prototype = {};
@@ -10881,14 +8759,6 @@ TRenewDelegationTokenReq.prototype.read = function(input) {
10881
8759
  input.skip(ftype);
10882
8760
  }
10883
8761
  break;
10884
- case 3329:
10885
- if (ftype == Thrift.Type.STRUCT) {
10886
- this.sessionConf = new ttypes.TDBSqlSessionConf();
10887
- this.sessionConf.read(input);
10888
- } else {
10889
- input.skip(ftype);
10890
- }
10891
- break;
10892
8762
  default:
10893
8763
  input.skip(ftype);
10894
8764
  }
@@ -10910,11 +8780,6 @@ TRenewDelegationTokenReq.prototype.write = function(output) {
10910
8780
  output.writeString(this.delegationToken);
10911
8781
  output.writeFieldEnd();
10912
8782
  }
10913
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
10914
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3329);
10915
- this.sessionConf.write(output);
10916
- output.writeFieldEnd();
10917
- }
10918
8783
  output.writeFieldStop();
10919
8784
  output.writeStructEnd();
10920
8785
  return;
@@ -11027,12 +8892,12 @@ TProgressUpdateResp.prototype.read = function(input) {
11027
8892
  case 1:
11028
8893
  if (ftype == Thrift.Type.LIST) {
11029
8894
  this.headerNames = [];
11030
- var _rtmp3215 = input.readListBegin();
11031
- var _size214 = _rtmp3215.size || 0;
11032
- for (var _i216 = 0; _i216 < _size214; ++_i216) {
11033
- var elem217 = null;
11034
- elem217 = input.readString();
11035
- this.headerNames.push(elem217);
8895
+ var _rtmp3167 = input.readListBegin();
8896
+ var _size166 = _rtmp3167.size || 0;
8897
+ for (var _i168 = 0; _i168 < _size166; ++_i168) {
8898
+ var elem169 = null;
8899
+ elem169 = input.readString();
8900
+ this.headerNames.push(elem169);
11036
8901
  }
11037
8902
  input.readListEnd();
11038
8903
  } else {
@@ -11042,20 +8907,20 @@ TProgressUpdateResp.prototype.read = function(input) {
11042
8907
  case 2:
11043
8908
  if (ftype == Thrift.Type.LIST) {
11044
8909
  this.rows = [];
11045
- var _rtmp3219 = input.readListBegin();
11046
- var _size218 = _rtmp3219.size || 0;
11047
- for (var _i220 = 0; _i220 < _size218; ++_i220) {
11048
- var elem221 = null;
11049
- elem221 = [];
11050
- var _rtmp3223 = input.readListBegin();
11051
- var _size222 = _rtmp3223.size || 0;
11052
- for (var _i224 = 0; _i224 < _size222; ++_i224) {
11053
- var elem225 = null;
11054
- elem225 = input.readString();
11055
- elem221.push(elem225);
8910
+ var _rtmp3171 = input.readListBegin();
8911
+ var _size170 = _rtmp3171.size || 0;
8912
+ for (var _i172 = 0; _i172 < _size170; ++_i172) {
8913
+ var elem173 = null;
8914
+ elem173 = [];
8915
+ var _rtmp3175 = input.readListBegin();
8916
+ var _size174 = _rtmp3175.size || 0;
8917
+ for (var _i176 = 0; _i176 < _size174; ++_i176) {
8918
+ var elem177 = null;
8919
+ elem177 = input.readString();
8920
+ elem173.push(elem177);
11056
8921
  }
11057
8922
  input.readListEnd();
11058
- this.rows.push(elem221);
8923
+ this.rows.push(elem173);
11059
8924
  }
11060
8925
  input.readListEnd();
11061
8926
  } else {
@@ -11104,10 +8969,10 @@ TProgressUpdateResp.prototype.write = function(output) {
11104
8969
  if (this.headerNames !== null && this.headerNames !== undefined) {
11105
8970
  output.writeFieldBegin('headerNames', Thrift.Type.LIST, 1);
11106
8971
  output.writeListBegin(Thrift.Type.STRING, this.headerNames.length);
11107
- for (var iter226 in this.headerNames) {
11108
- if (this.headerNames.hasOwnProperty(iter226)) {
11109
- iter226 = this.headerNames[iter226];
11110
- output.writeString(iter226);
8972
+ for (var iter178 in this.headerNames) {
8973
+ if (this.headerNames.hasOwnProperty(iter178)) {
8974
+ iter178 = this.headerNames[iter178];
8975
+ output.writeString(iter178);
11111
8976
  }
11112
8977
  }
11113
8978
  output.writeListEnd();
@@ -11116,14 +8981,14 @@ TProgressUpdateResp.prototype.write = function(output) {
11116
8981
  if (this.rows !== null && this.rows !== undefined) {
11117
8982
  output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
11118
8983
  output.writeListBegin(Thrift.Type.LIST, this.rows.length);
11119
- for (var iter227 in this.rows) {
11120
- if (this.rows.hasOwnProperty(iter227)) {
11121
- iter227 = this.rows[iter227];
11122
- output.writeListBegin(Thrift.Type.STRING, iter227.length);
11123
- for (var iter228 in iter227) {
11124
- if (iter227.hasOwnProperty(iter228)) {
11125
- iter228 = iter227[iter228];
11126
- output.writeString(iter228);
8984
+ for (var iter179 in this.rows) {
8985
+ if (this.rows.hasOwnProperty(iter179)) {
8986
+ iter179 = this.rows[iter179];
8987
+ output.writeListBegin(Thrift.Type.STRING, iter179.length);
8988
+ for (var iter180 in iter179) {
8989
+ if (iter179.hasOwnProperty(iter180)) {
8990
+ iter180 = iter179[iter180];
8991
+ output.writeString(iter180);
11127
8992
  }
11128
8993
  }
11129
8994
  output.writeListEnd();