@databricks/sql 1.3.0 → 1.5.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.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/dist/DBSQLClient.d.ts +1 -0
  3. package/dist/DBSQLClient.js +11 -2
  4. package/dist/DBSQLClient.js.map +1 -1
  5. package/dist/DBSQLOperation/OperationStatusHelper.d.ts +1 -1
  6. package/dist/DBSQLOperation/OperationStatusHelper.js +29 -6
  7. package/dist/DBSQLOperation/OperationStatusHelper.js.map +1 -1
  8. package/dist/DBSQLOperation/index.d.ts +18 -5
  9. package/dist/DBSQLOperation/index.js +156 -18
  10. package/dist/DBSQLOperation/index.js.map +1 -1
  11. package/dist/DBSQLParameter.d.ts +29 -0
  12. package/dist/DBSQLParameter.js +73 -0
  13. package/dist/DBSQLParameter.js.map +1 -0
  14. package/dist/DBSQLSession.d.ts +15 -2
  15. package/dist/DBSQLSession.js +209 -16
  16. package/dist/DBSQLSession.js.map +1 -1
  17. package/dist/connection/auth/DatabricksOAuth/OAuthManager.d.ts +5 -0
  18. package/dist/connection/auth/DatabricksOAuth/OAuthManager.js +52 -17
  19. package/dist/connection/auth/DatabricksOAuth/OAuthManager.js.map +1 -1
  20. package/dist/contracts/IDBSQLClient.d.ts +2 -0
  21. package/dist/contracts/IDBSQLSession.d.ts +34 -0
  22. package/dist/errors/OperationStateError.d.ts +10 -2
  23. package/dist/errors/OperationStateError.js +20 -2
  24. package/dist/errors/OperationStateError.js.map +1 -1
  25. package/dist/errors/StagingError.d.ts +2 -0
  26. package/dist/errors/StagingError.js +6 -0
  27. package/dist/errors/StagingError.js.map +1 -0
  28. package/dist/globalConfig.d.ts +2 -0
  29. package/dist/globalConfig.js +2 -0
  30. package/dist/globalConfig.js.map +1 -1
  31. package/dist/index.d.ts +2 -1
  32. package/dist/index.js +4 -1
  33. package/dist/index.js.map +1 -1
  34. package/dist/result/ArrowResult.d.ts +3 -2
  35. package/dist/result/ArrowResult.js +37 -19
  36. package/dist/result/ArrowResult.js.map +1 -1
  37. package/dist/result/CloudFetchResult.d.ts +13 -0
  38. package/dist/result/CloudFetchResult.js +69 -0
  39. package/dist/result/CloudFetchResult.js.map +1 -0
  40. package/dist/result/IOperationResult.d.ts +2 -1
  41. package/dist/result/JsonResult.d.ts +2 -1
  42. package/dist/result/JsonResult.js +24 -8
  43. package/dist/result/JsonResult.js.map +1 -1
  44. package/dist/utils/CloseableCollection.d.ts +10 -0
  45. package/dist/utils/CloseableCollection.js +40 -0
  46. package/dist/utils/CloseableCollection.js.map +1 -0
  47. package/dist/version.d.ts +1 -1
  48. package/dist/version.js +1 -1
  49. package/package.json +4 -2
  50. package/thrift/TCLIService.d.ts +45 -1
  51. package/thrift/TCLIService.js +1 -1
  52. package/thrift/TCLIService_types.d.ts +36 -8
  53. package/thrift/TCLIService_types.js +634 -288
  54. package/dist/DBSQLOperation/CompleteOperationHelper.d.ts +0 -13
  55. package/dist/DBSQLOperation/CompleteOperationHelper.js +0 -56
  56. package/dist/DBSQLOperation/CompleteOperationHelper.js.map +0 -1
  57. package/dist/DBSQLOperation/SchemaHelper.d.ts +0 -12
  58. package/dist/DBSQLOperation/SchemaHelper.js +0 -61
  59. package/dist/DBSQLOperation/SchemaHelper.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  //
2
- // Autogenerated by Thrift Compiler (0.16.0)
2
+ // Autogenerated by Thrift Compiler (0.19.0)
3
3
  //
4
4
  // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  //
@@ -50,7 +50,9 @@ ttypes.TProtocolVersion = {
50
50
  '42246' : 'SPARK_CLI_SERVICE_PROTOCOL_V6',
51
51
  'SPARK_CLI_SERVICE_PROTOCOL_V6' : 42246,
52
52
  '42247' : 'SPARK_CLI_SERVICE_PROTOCOL_V7',
53
- 'SPARK_CLI_SERVICE_PROTOCOL_V7' : 42247
53
+ 'SPARK_CLI_SERVICE_PROTOCOL_V7' : 42247,
54
+ '42248' : 'SPARK_CLI_SERVICE_PROTOCOL_V8',
55
+ 'SPARK_CLI_SERVICE_PROTOCOL_V8' : 42248
54
56
  };
55
57
  ttypes.TTypeId = {
56
58
  '0' : 'BOOLEAN_TYPE',
@@ -292,6 +294,12 @@ ttypes.TResultPersistenceMode = {
292
294
  '2' : 'ALL_RESULTS',
293
295
  'ALL_RESULTS' : 2
294
296
  };
297
+ ttypes.TDBSqlCloseOperationReason = {
298
+ '0' : 'NONE',
299
+ 'NONE' : 0,
300
+ '1' : 'COMMAND_INACTIVITY_TIMEOUT',
301
+ 'COMMAND_INACTIVITY_TIMEOUT' : 1
302
+ };
295
303
  ttypes.TCacheLookupResult = {
296
304
  '0' : 'CACHE_INELIGIBLE',
297
305
  'CACHE_INELIGIBLE' : 0,
@@ -2947,6 +2955,7 @@ var TSparkArrowResultLink = module.exports.TSparkArrowResultLink = function(args
2947
2955
  this.startRowOffset = null;
2948
2956
  this.rowCount = null;
2949
2957
  this.bytesNum = null;
2958
+ this.httpHeaders = null;
2950
2959
  if (args) {
2951
2960
  if (args.fileLink !== undefined && args.fileLink !== null) {
2952
2961
  this.fileLink = args.fileLink;
@@ -2973,6 +2982,9 @@ var TSparkArrowResultLink = module.exports.TSparkArrowResultLink = function(args
2973
2982
  } else {
2974
2983
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field bytesNum is unset!');
2975
2984
  }
2985
+ if (args.httpHeaders !== undefined && args.httpHeaders !== null) {
2986
+ this.httpHeaders = Thrift.copyMap(args.httpHeaders, [null]);
2987
+ }
2976
2988
  }
2977
2989
  };
2978
2990
  TSparkArrowResultLink.prototype = {};
@@ -3021,6 +3033,23 @@ TSparkArrowResultLink.prototype.read = function(input) {
3021
3033
  input.skip(ftype);
3022
3034
  }
3023
3035
  break;
3036
+ case 6:
3037
+ if (ftype == Thrift.Type.MAP) {
3038
+ this.httpHeaders = {};
3039
+ var _rtmp377 = input.readMapBegin();
3040
+ var _size76 = _rtmp377.size || 0;
3041
+ for (var _i78 = 0; _i78 < _size76; ++_i78) {
3042
+ var key79 = null;
3043
+ var val80 = null;
3044
+ key79 = input.readString();
3045
+ val80 = input.readString();
3046
+ this.httpHeaders[key79] = val80;
3047
+ }
3048
+ input.readMapEnd();
3049
+ } else {
3050
+ input.skip(ftype);
3051
+ }
3052
+ break;
3024
3053
  default:
3025
3054
  input.skip(ftype);
3026
3055
  }
@@ -3057,6 +3086,19 @@ TSparkArrowResultLink.prototype.write = function(output) {
3057
3086
  output.writeI64(this.bytesNum);
3058
3087
  output.writeFieldEnd();
3059
3088
  }
3089
+ if (this.httpHeaders !== null && this.httpHeaders !== undefined) {
3090
+ output.writeFieldBegin('httpHeaders', Thrift.Type.MAP, 6);
3091
+ output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.httpHeaders));
3092
+ for (var kiter81 in this.httpHeaders) {
3093
+ if (this.httpHeaders.hasOwnProperty(kiter81)) {
3094
+ var viter82 = this.httpHeaders[kiter81];
3095
+ output.writeString(kiter81);
3096
+ output.writeString(viter82);
3097
+ }
3098
+ }
3099
+ output.writeMapEnd();
3100
+ output.writeFieldEnd();
3101
+ }
3060
3102
  output.writeFieldStop();
3061
3103
  output.writeStructEnd();
3062
3104
  return;
@@ -3070,6 +3112,7 @@ var TDBSqlCloudResultFile = module.exports.TDBSqlCloudResultFile = function(args
3070
3112
  this.compressedBytes = null;
3071
3113
  this.fileLink = null;
3072
3114
  this.linkExpiryTime = null;
3115
+ this.httpHeaders = null;
3073
3116
  if (args) {
3074
3117
  if (args.filePath !== undefined && args.filePath !== null) {
3075
3118
  this.filePath = args.filePath;
@@ -3092,6 +3135,9 @@ var TDBSqlCloudResultFile = module.exports.TDBSqlCloudResultFile = function(args
3092
3135
  if (args.linkExpiryTime !== undefined && args.linkExpiryTime !== null) {
3093
3136
  this.linkExpiryTime = args.linkExpiryTime;
3094
3137
  }
3138
+ if (args.httpHeaders !== undefined && args.httpHeaders !== null) {
3139
+ this.httpHeaders = Thrift.copyMap(args.httpHeaders, [null]);
3140
+ }
3095
3141
  }
3096
3142
  };
3097
3143
  TDBSqlCloudResultFile.prototype = {};
@@ -3154,6 +3200,23 @@ TDBSqlCloudResultFile.prototype.read = function(input) {
3154
3200
  input.skip(ftype);
3155
3201
  }
3156
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;
3157
3220
  default:
3158
3221
  input.skip(ftype);
3159
3222
  }
@@ -3200,6 +3263,19 @@ TDBSqlCloudResultFile.prototype.write = function(output) {
3200
3263
  output.writeI64(this.linkExpiryTime);
3201
3264
  output.writeFieldEnd();
3202
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
+ }
3203
3279
  output.writeFieldStop();
3204
3280
  output.writeStructEnd();
3205
3281
  return;
@@ -3266,13 +3342,13 @@ TRowSet.prototype.read = function(input) {
3266
3342
  case 2:
3267
3343
  if (ftype == Thrift.Type.LIST) {
3268
3344
  this.rows = [];
3269
- var _rtmp377 = input.readListBegin();
3270
- var _size76 = _rtmp377.size || 0;
3271
- for (var _i78 = 0; _i78 < _size76; ++_i78) {
3272
- var elem79 = null;
3273
- elem79 = new ttypes.TRow();
3274
- elem79.read(input);
3275
- this.rows.push(elem79);
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);
3276
3352
  }
3277
3353
  input.readListEnd();
3278
3354
  } else {
@@ -3282,13 +3358,13 @@ TRowSet.prototype.read = function(input) {
3282
3358
  case 3:
3283
3359
  if (ftype == Thrift.Type.LIST) {
3284
3360
  this.columns = [];
3285
- var _rtmp381 = input.readListBegin();
3286
- var _size80 = _rtmp381.size || 0;
3287
- for (var _i82 = 0; _i82 < _size80; ++_i82) {
3288
- var elem83 = null;
3289
- elem83 = new ttypes.TColumn();
3290
- elem83.read(input);
3291
- this.columns.push(elem83);
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);
3292
3368
  }
3293
3369
  input.readListEnd();
3294
3370
  } else {
@@ -3312,13 +3388,13 @@ TRowSet.prototype.read = function(input) {
3312
3388
  case 1281:
3313
3389
  if (ftype == Thrift.Type.LIST) {
3314
3390
  this.arrowBatches = [];
3315
- var _rtmp385 = input.readListBegin();
3316
- var _size84 = _rtmp385.size || 0;
3317
- for (var _i86 = 0; _i86 < _size84; ++_i86) {
3318
- var elem87 = null;
3319
- elem87 = new ttypes.TSparkArrowBatch();
3320
- elem87.read(input);
3321
- this.arrowBatches.push(elem87);
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);
3322
3398
  }
3323
3399
  input.readListEnd();
3324
3400
  } else {
@@ -3328,13 +3404,13 @@ TRowSet.prototype.read = function(input) {
3328
3404
  case 1282:
3329
3405
  if (ftype == Thrift.Type.LIST) {
3330
3406
  this.resultLinks = [];
3331
- var _rtmp389 = input.readListBegin();
3332
- var _size88 = _rtmp389.size || 0;
3333
- for (var _i90 = 0; _i90 < _size88; ++_i90) {
3334
- var elem91 = null;
3335
- elem91 = new ttypes.TSparkArrowResultLink();
3336
- elem91.read(input);
3337
- this.resultLinks.push(elem91);
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);
3338
3414
  }
3339
3415
  input.readListEnd();
3340
3416
  } else {
@@ -3344,13 +3420,13 @@ TRowSet.prototype.read = function(input) {
3344
3420
  case 3329:
3345
3421
  if (ftype == Thrift.Type.LIST) {
3346
3422
  this.cloudFetchResults = [];
3347
- var _rtmp393 = input.readListBegin();
3348
- var _size92 = _rtmp393.size || 0;
3349
- for (var _i94 = 0; _i94 < _size92; ++_i94) {
3350
- var elem95 = null;
3351
- elem95 = new ttypes.TDBSqlCloudResultFile();
3352
- elem95.read(input);
3353
- this.cloudFetchResults.push(elem95);
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);
3354
3430
  }
3355
3431
  input.readListEnd();
3356
3432
  } else {
@@ -3376,10 +3452,10 @@ TRowSet.prototype.write = function(output) {
3376
3452
  if (this.rows !== null && this.rows !== undefined) {
3377
3453
  output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
3378
3454
  output.writeListBegin(Thrift.Type.STRUCT, this.rows.length);
3379
- for (var iter96 in this.rows) {
3380
- if (this.rows.hasOwnProperty(iter96)) {
3381
- iter96 = this.rows[iter96];
3382
- iter96.write(output);
3455
+ for (var iter110 in this.rows) {
3456
+ if (this.rows.hasOwnProperty(iter110)) {
3457
+ iter110 = this.rows[iter110];
3458
+ iter110.write(output);
3383
3459
  }
3384
3460
  }
3385
3461
  output.writeListEnd();
@@ -3388,10 +3464,10 @@ TRowSet.prototype.write = function(output) {
3388
3464
  if (this.columns !== null && this.columns !== undefined) {
3389
3465
  output.writeFieldBegin('columns', Thrift.Type.LIST, 3);
3390
3466
  output.writeListBegin(Thrift.Type.STRUCT, this.columns.length);
3391
- for (var iter97 in this.columns) {
3392
- if (this.columns.hasOwnProperty(iter97)) {
3393
- iter97 = this.columns[iter97];
3394
- iter97.write(output);
3467
+ for (var iter111 in this.columns) {
3468
+ if (this.columns.hasOwnProperty(iter111)) {
3469
+ iter111 = this.columns[iter111];
3470
+ iter111.write(output);
3395
3471
  }
3396
3472
  }
3397
3473
  output.writeListEnd();
@@ -3410,10 +3486,10 @@ TRowSet.prototype.write = function(output) {
3410
3486
  if (this.arrowBatches !== null && this.arrowBatches !== undefined) {
3411
3487
  output.writeFieldBegin('arrowBatches', Thrift.Type.LIST, 1281);
3412
3488
  output.writeListBegin(Thrift.Type.STRUCT, this.arrowBatches.length);
3413
- for (var iter98 in this.arrowBatches) {
3414
- if (this.arrowBatches.hasOwnProperty(iter98)) {
3415
- iter98 = this.arrowBatches[iter98];
3416
- iter98.write(output);
3489
+ for (var iter112 in this.arrowBatches) {
3490
+ if (this.arrowBatches.hasOwnProperty(iter112)) {
3491
+ iter112 = this.arrowBatches[iter112];
3492
+ iter112.write(output);
3417
3493
  }
3418
3494
  }
3419
3495
  output.writeListEnd();
@@ -3422,10 +3498,10 @@ TRowSet.prototype.write = function(output) {
3422
3498
  if (this.resultLinks !== null && this.resultLinks !== undefined) {
3423
3499
  output.writeFieldBegin('resultLinks', Thrift.Type.LIST, 1282);
3424
3500
  output.writeListBegin(Thrift.Type.STRUCT, this.resultLinks.length);
3425
- for (var iter99 in this.resultLinks) {
3426
- if (this.resultLinks.hasOwnProperty(iter99)) {
3427
- iter99 = this.resultLinks[iter99];
3428
- iter99.write(output);
3501
+ for (var iter113 in this.resultLinks) {
3502
+ if (this.resultLinks.hasOwnProperty(iter113)) {
3503
+ iter113 = this.resultLinks[iter113];
3504
+ iter113.write(output);
3429
3505
  }
3430
3506
  }
3431
3507
  output.writeListEnd();
@@ -3434,10 +3510,10 @@ TRowSet.prototype.write = function(output) {
3434
3510
  if (this.cloudFetchResults !== null && this.cloudFetchResults !== undefined) {
3435
3511
  output.writeFieldBegin('cloudFetchResults', Thrift.Type.LIST, 3329);
3436
3512
  output.writeListBegin(Thrift.Type.STRUCT, this.cloudFetchResults.length);
3437
- for (var iter100 in this.cloudFetchResults) {
3438
- if (this.cloudFetchResults.hasOwnProperty(iter100)) {
3439
- iter100 = this.cloudFetchResults[iter100];
3440
- iter100.write(output);
3513
+ for (var iter114 in this.cloudFetchResults) {
3514
+ if (this.cloudFetchResults.hasOwnProperty(iter114)) {
3515
+ iter114 = this.cloudFetchResults[iter114];
3516
+ iter114.write(output);
3441
3517
  }
3442
3518
  }
3443
3519
  output.writeListEnd();
@@ -3496,14 +3572,14 @@ TDBSqlTempView.prototype.read = function(input) {
3496
3572
  case 3:
3497
3573
  if (ftype == Thrift.Type.MAP) {
3498
3574
  this.properties = {};
3499
- var _rtmp3102 = input.readMapBegin();
3500
- var _size101 = _rtmp3102.size || 0;
3501
- for (var _i103 = 0; _i103 < _size101; ++_i103) {
3502
- var key104 = null;
3503
- var val105 = null;
3504
- key104 = input.readString();
3505
- val105 = input.readString();
3506
- this.properties[key104] = val105;
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;
3507
3583
  }
3508
3584
  input.readMapEnd();
3509
3585
  } else {
@@ -3541,11 +3617,11 @@ TDBSqlTempView.prototype.write = function(output) {
3541
3617
  if (this.properties !== null && this.properties !== undefined) {
3542
3618
  output.writeFieldBegin('properties', Thrift.Type.MAP, 3);
3543
3619
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.properties));
3544
- for (var kiter106 in this.properties) {
3545
- if (this.properties.hasOwnProperty(kiter106)) {
3546
- var viter107 = this.properties[kiter106];
3547
- output.writeString(kiter106);
3548
- output.writeString(viter107);
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);
3549
3625
  }
3550
3626
  }
3551
3627
  output.writeMapEnd();
@@ -3930,14 +4006,14 @@ TDBSqlSessionConf.prototype.read = function(input) {
3930
4006
  case 1:
3931
4007
  if (ftype == Thrift.Type.MAP) {
3932
4008
  this.confs = {};
3933
- var _rtmp3109 = input.readMapBegin();
3934
- var _size108 = _rtmp3109.size || 0;
3935
- for (var _i110 = 0; _i110 < _size108; ++_i110) {
3936
- var key111 = null;
3937
- var val112 = null;
3938
- key111 = input.readString();
3939
- val112 = input.readString();
3940
- this.confs[key111] = val112;
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;
3941
4017
  }
3942
4018
  input.readMapEnd();
3943
4019
  } else {
@@ -3947,13 +4023,13 @@ TDBSqlSessionConf.prototype.read = function(input) {
3947
4023
  case 2:
3948
4024
  if (ftype == Thrift.Type.LIST) {
3949
4025
  this.tempViews = [];
3950
- var _rtmp3114 = input.readListBegin();
3951
- var _size113 = _rtmp3114.size || 0;
3952
- for (var _i115 = 0; _i115 < _size113; ++_i115) {
3953
- var elem116 = null;
3954
- elem116 = new ttypes.TDBSqlTempView();
3955
- elem116.read(input);
3956
- this.tempViews.push(elem116);
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);
3957
4033
  }
3958
4034
  input.readListEnd();
3959
4035
  } else {
@@ -3985,13 +4061,13 @@ TDBSqlSessionConf.prototype.read = function(input) {
3985
4061
  case 6:
3986
4062
  if (ftype == Thrift.Type.LIST) {
3987
4063
  this.expressionsInfos = [];
3988
- var _rtmp3118 = input.readListBegin();
3989
- var _size117 = _rtmp3118.size || 0;
3990
- for (var _i119 = 0; _i119 < _size117; ++_i119) {
3991
- var elem120 = null;
3992
- elem120 = new ttypes.TExpressionInfo();
3993
- elem120.read(input);
3994
- this.expressionsInfos.push(elem120);
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);
3995
4071
  }
3996
4072
  input.readListEnd();
3997
4073
  } else {
@@ -4001,15 +4077,15 @@ TDBSqlSessionConf.prototype.read = function(input) {
4001
4077
  case 7:
4002
4078
  if (ftype == Thrift.Type.MAP) {
4003
4079
  this.internalConfs = {};
4004
- var _rtmp3122 = input.readMapBegin();
4005
- var _size121 = _rtmp3122.size || 0;
4006
- for (var _i123 = 0; _i123 < _size121; ++_i123) {
4007
- var key124 = null;
4008
- var val125 = null;
4009
- key124 = input.readString();
4010
- val125 = new ttypes.TDBSqlConfValue();
4011
- val125.read(input);
4012
- this.internalConfs[key124] = val125;
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;
4013
4089
  }
4014
4090
  input.readMapEnd();
4015
4091
  } else {
@@ -4030,11 +4106,11 @@ TDBSqlSessionConf.prototype.write = function(output) {
4030
4106
  if (this.confs !== null && this.confs !== undefined) {
4031
4107
  output.writeFieldBegin('confs', Thrift.Type.MAP, 1);
4032
4108
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confs));
4033
- for (var kiter126 in this.confs) {
4034
- if (this.confs.hasOwnProperty(kiter126)) {
4035
- var viter127 = this.confs[kiter126];
4036
- output.writeString(kiter126);
4037
- output.writeString(viter127);
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);
4038
4114
  }
4039
4115
  }
4040
4116
  output.writeMapEnd();
@@ -4043,10 +4119,10 @@ TDBSqlSessionConf.prototype.write = function(output) {
4043
4119
  if (this.tempViews !== null && this.tempViews !== undefined) {
4044
4120
  output.writeFieldBegin('tempViews', Thrift.Type.LIST, 2);
4045
4121
  output.writeListBegin(Thrift.Type.STRUCT, this.tempViews.length);
4046
- for (var iter128 in this.tempViews) {
4047
- if (this.tempViews.hasOwnProperty(iter128)) {
4048
- iter128 = this.tempViews[iter128];
4049
- iter128.write(output);
4122
+ for (var iter142 in this.tempViews) {
4123
+ if (this.tempViews.hasOwnProperty(iter142)) {
4124
+ iter142 = this.tempViews[iter142];
4125
+ iter142.write(output);
4050
4126
  }
4051
4127
  }
4052
4128
  output.writeListEnd();
@@ -4070,10 +4146,10 @@ TDBSqlSessionConf.prototype.write = function(output) {
4070
4146
  if (this.expressionsInfos !== null && this.expressionsInfos !== undefined) {
4071
4147
  output.writeFieldBegin('expressionsInfos', Thrift.Type.LIST, 6);
4072
4148
  output.writeListBegin(Thrift.Type.STRUCT, this.expressionsInfos.length);
4073
- for (var iter129 in this.expressionsInfos) {
4074
- if (this.expressionsInfos.hasOwnProperty(iter129)) {
4075
- iter129 = this.expressionsInfos[iter129];
4076
- iter129.write(output);
4149
+ for (var iter143 in this.expressionsInfos) {
4150
+ if (this.expressionsInfos.hasOwnProperty(iter143)) {
4151
+ iter143 = this.expressionsInfos[iter143];
4152
+ iter143.write(output);
4077
4153
  }
4078
4154
  }
4079
4155
  output.writeListEnd();
@@ -4082,11 +4158,11 @@ TDBSqlSessionConf.prototype.write = function(output) {
4082
4158
  if (this.internalConfs !== null && this.internalConfs !== undefined) {
4083
4159
  output.writeFieldBegin('internalConfs', Thrift.Type.MAP, 7);
4084
4160
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.internalConfs));
4085
- for (var kiter130 in this.internalConfs) {
4086
- if (this.internalConfs.hasOwnProperty(kiter130)) {
4087
- var viter131 = this.internalConfs[kiter130];
4088
- output.writeString(kiter130);
4089
- viter131.write(output);
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);
4090
4166
  }
4091
4167
  }
4092
4168
  output.writeMapEnd();
@@ -4104,6 +4180,7 @@ var TStatus = module.exports.TStatus = function(args) {
4104
4180
  this.errorCode = null;
4105
4181
  this.errorMessage = null;
4106
4182
  this.displayMessage = null;
4183
+ this.errorDetailsJson = null;
4107
4184
  this.responseValidation = null;
4108
4185
  if (args) {
4109
4186
  if (args.statusCode !== undefined && args.statusCode !== null) {
@@ -4126,6 +4203,9 @@ var TStatus = module.exports.TStatus = function(args) {
4126
4203
  if (args.displayMessage !== undefined && args.displayMessage !== null) {
4127
4204
  this.displayMessage = args.displayMessage;
4128
4205
  }
4206
+ if (args.errorDetailsJson !== undefined && args.errorDetailsJson !== null) {
4207
+ this.errorDetailsJson = args.errorDetailsJson;
4208
+ }
4129
4209
  if (args.responseValidation !== undefined && args.responseValidation !== null) {
4130
4210
  this.responseValidation = args.responseValidation;
4131
4211
  }
@@ -4152,12 +4232,12 @@ TStatus.prototype.read = function(input) {
4152
4232
  case 2:
4153
4233
  if (ftype == Thrift.Type.LIST) {
4154
4234
  this.infoMessages = [];
4155
- var _rtmp3133 = input.readListBegin();
4156
- var _size132 = _rtmp3133.size || 0;
4157
- for (var _i134 = 0; _i134 < _size132; ++_i134) {
4158
- var elem135 = null;
4159
- elem135 = input.readString();
4160
- this.infoMessages.push(elem135);
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);
4161
4241
  }
4162
4242
  input.readListEnd();
4163
4243
  } else {
@@ -4192,6 +4272,13 @@ TStatus.prototype.read = function(input) {
4192
4272
  input.skip(ftype);
4193
4273
  }
4194
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;
4195
4282
  case 3329:
4196
4283
  if (ftype == Thrift.Type.STRING) {
4197
4284
  this.responseValidation = input.readBinary();
@@ -4218,10 +4305,10 @@ TStatus.prototype.write = function(output) {
4218
4305
  if (this.infoMessages !== null && this.infoMessages !== undefined) {
4219
4306
  output.writeFieldBegin('infoMessages', Thrift.Type.LIST, 2);
4220
4307
  output.writeListBegin(Thrift.Type.STRING, this.infoMessages.length);
4221
- for (var iter136 in this.infoMessages) {
4222
- if (this.infoMessages.hasOwnProperty(iter136)) {
4223
- iter136 = this.infoMessages[iter136];
4224
- output.writeString(iter136);
4308
+ for (var iter150 in this.infoMessages) {
4309
+ if (this.infoMessages.hasOwnProperty(iter150)) {
4310
+ iter150 = this.infoMessages[iter150];
4311
+ output.writeString(iter150);
4225
4312
  }
4226
4313
  }
4227
4314
  output.writeListEnd();
@@ -4247,6 +4334,11 @@ TStatus.prototype.write = function(output) {
4247
4334
  output.writeString(this.displayMessage);
4248
4335
  output.writeFieldEnd();
4249
4336
  }
4337
+ if (this.errorDetailsJson !== null && this.errorDetailsJson !== undefined) {
4338
+ output.writeFieldBegin('errorDetailsJson', Thrift.Type.STRING, 1281);
4339
+ output.writeString(this.errorDetailsJson);
4340
+ output.writeFieldEnd();
4341
+ }
4250
4342
  if (this.responseValidation !== null && this.responseValidation !== undefined) {
4251
4343
  output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
4252
4344
  output.writeBinary(this.responseValidation);
@@ -4650,14 +4742,14 @@ TOpenSessionReq.prototype.read = function(input) {
4650
4742
  case 4:
4651
4743
  if (ftype == Thrift.Type.MAP) {
4652
4744
  this.configuration = {};
4653
- var _rtmp3138 = input.readMapBegin();
4654
- var _size137 = _rtmp3138.size || 0;
4655
- for (var _i139 = 0; _i139 < _size137; ++_i139) {
4656
- var key140 = null;
4657
- var val141 = null;
4658
- key140 = input.readString();
4659
- val141 = input.readString();
4660
- this.configuration[key140] = val141;
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;
4661
4753
  }
4662
4754
  input.readMapEnd();
4663
4755
  } else {
@@ -4667,12 +4759,12 @@ TOpenSessionReq.prototype.read = function(input) {
4667
4759
  case 1281:
4668
4760
  if (ftype == Thrift.Type.LIST) {
4669
4761
  this.getInfos = [];
4670
- var _rtmp3143 = input.readListBegin();
4671
- var _size142 = _rtmp3143.size || 0;
4672
- for (var _i144 = 0; _i144 < _size142; ++_i144) {
4673
- var elem145 = null;
4674
- elem145 = input.readI32();
4675
- this.getInfos.push(elem145);
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);
4676
4768
  }
4677
4769
  input.readListEnd();
4678
4770
  } else {
@@ -4689,14 +4781,14 @@ TOpenSessionReq.prototype.read = function(input) {
4689
4781
  case 1283:
4690
4782
  if (ftype == Thrift.Type.MAP) {
4691
4783
  this.connectionProperties = {};
4692
- var _rtmp3147 = input.readMapBegin();
4693
- var _size146 = _rtmp3147.size || 0;
4694
- for (var _i148 = 0; _i148 < _size146; ++_i148) {
4695
- var key149 = null;
4696
- var val150 = null;
4697
- key149 = input.readString();
4698
- val150 = input.readString();
4699
- this.connectionProperties[key149] = val150;
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;
4700
4792
  }
4701
4793
  input.readMapEnd();
4702
4794
  } else {
@@ -4755,11 +4847,11 @@ TOpenSessionReq.prototype.write = function(output) {
4755
4847
  if (this.configuration !== null && this.configuration !== undefined) {
4756
4848
  output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
4757
4849
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
4758
- for (var kiter151 in this.configuration) {
4759
- if (this.configuration.hasOwnProperty(kiter151)) {
4760
- var viter152 = this.configuration[kiter151];
4761
- output.writeString(kiter151);
4762
- output.writeString(viter152);
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);
4763
4855
  }
4764
4856
  }
4765
4857
  output.writeMapEnd();
@@ -4768,10 +4860,10 @@ TOpenSessionReq.prototype.write = function(output) {
4768
4860
  if (this.getInfos !== null && this.getInfos !== undefined) {
4769
4861
  output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
4770
4862
  output.writeListBegin(Thrift.Type.I32, this.getInfos.length);
4771
- for (var iter153 in this.getInfos) {
4772
- if (this.getInfos.hasOwnProperty(iter153)) {
4773
- iter153 = this.getInfos[iter153];
4774
- output.writeI32(iter153);
4863
+ for (var iter167 in this.getInfos) {
4864
+ if (this.getInfos.hasOwnProperty(iter167)) {
4865
+ iter167 = this.getInfos[iter167];
4866
+ output.writeI32(iter167);
4775
4867
  }
4776
4868
  }
4777
4869
  output.writeListEnd();
@@ -4785,11 +4877,11 @@ TOpenSessionReq.prototype.write = function(output) {
4785
4877
  if (this.connectionProperties !== null && this.connectionProperties !== undefined) {
4786
4878
  output.writeFieldBegin('connectionProperties', Thrift.Type.MAP, 1283);
4787
4879
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.connectionProperties));
4788
- for (var kiter154 in this.connectionProperties) {
4789
- if (this.connectionProperties.hasOwnProperty(kiter154)) {
4790
- var viter155 = this.connectionProperties[kiter154];
4791
- output.writeString(kiter154);
4792
- output.writeString(viter155);
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);
4793
4885
  }
4794
4886
  }
4795
4887
  output.writeMapEnd();
@@ -4888,14 +4980,14 @@ TOpenSessionResp.prototype.read = function(input) {
4888
4980
  case 4:
4889
4981
  if (ftype == Thrift.Type.MAP) {
4890
4982
  this.configuration = {};
4891
- var _rtmp3157 = input.readMapBegin();
4892
- var _size156 = _rtmp3157.size || 0;
4893
- for (var _i158 = 0; _i158 < _size156; ++_i158) {
4894
- var key159 = null;
4895
- var val160 = null;
4896
- key159 = input.readString();
4897
- val160 = input.readString();
4898
- this.configuration[key159] = val160;
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;
4899
4991
  }
4900
4992
  input.readMapEnd();
4901
4993
  } else {
@@ -4920,13 +5012,13 @@ TOpenSessionResp.prototype.read = function(input) {
4920
5012
  case 1281:
4921
5013
  if (ftype == Thrift.Type.LIST) {
4922
5014
  this.getInfos = [];
4923
- var _rtmp3162 = input.readListBegin();
4924
- var _size161 = _rtmp3162.size || 0;
4925
- for (var _i163 = 0; _i163 < _size161; ++_i163) {
4926
- var elem164 = null;
4927
- elem164 = new ttypes.TGetInfoValue();
4928
- elem164.read(input);
4929
- this.getInfos.push(elem164);
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);
4930
5022
  }
4931
5023
  input.readListEnd();
4932
5024
  } else {
@@ -4962,11 +5054,11 @@ TOpenSessionResp.prototype.write = function(output) {
4962
5054
  if (this.configuration !== null && this.configuration !== undefined) {
4963
5055
  output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
4964
5056
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
4965
- for (var kiter165 in this.configuration) {
4966
- if (this.configuration.hasOwnProperty(kiter165)) {
4967
- var viter166 = this.configuration[kiter165];
4968
- output.writeString(kiter165);
4969
- output.writeString(viter166);
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);
4970
5062
  }
4971
5063
  }
4972
5064
  output.writeMapEnd();
@@ -4985,10 +5077,10 @@ TOpenSessionResp.prototype.write = function(output) {
4985
5077
  if (this.getInfos !== null && this.getInfos !== undefined) {
4986
5078
  output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
4987
5079
  output.writeListBegin(Thrift.Type.STRUCT, this.getInfos.length);
4988
- for (var iter167 in this.getInfos) {
4989
- if (this.getInfos.hasOwnProperty(iter167)) {
4990
- iter167 = this.getInfos[iter167];
4991
- iter167.write(output);
5080
+ for (var iter181 in this.getInfos) {
5081
+ if (this.getInfos.hasOwnProperty(iter181)) {
5082
+ iter181 = this.getInfos[iter181];
5083
+ iter181.write(output);
4992
5084
  }
4993
5085
  }
4994
5086
  output.writeListEnd();
@@ -5675,6 +5767,8 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
5675
5767
  this.useArrowNativeTypes = null;
5676
5768
  this.resultRowLimit = null;
5677
5769
  this.parameters = null;
5770
+ this.maxBytesPerBatch = null;
5771
+ this.statementConf = null;
5678
5772
  this.operationId = null;
5679
5773
  this.sessionConf = null;
5680
5774
  this.rejectHighCostQueries = null;
@@ -5691,6 +5785,11 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
5691
5785
  this.resultByteLimit = null;
5692
5786
  this.resultDataFormat = null;
5693
5787
  this.originatingClientIdentity = null;
5788
+ this.preferSingleFileResult = null;
5789
+ this.preferDriverOnlyUpload = null;
5790
+ this.enforceEmbeddedSchemaCorrectness = false;
5791
+ this.idempotencyToken = null;
5792
+ this.throwErrorOnByteLimitTruncation = null;
5694
5793
  if (args) {
5695
5794
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
5696
5795
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -5735,6 +5834,12 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
5735
5834
  if (args.parameters !== undefined && args.parameters !== null) {
5736
5835
  this.parameters = Thrift.copyList(args.parameters, [ttypes.TSparkParameter]);
5737
5836
  }
5837
+ if (args.maxBytesPerBatch !== undefined && args.maxBytesPerBatch !== null) {
5838
+ this.maxBytesPerBatch = args.maxBytesPerBatch;
5839
+ }
5840
+ if (args.statementConf !== undefined && args.statementConf !== null) {
5841
+ this.statementConf = new ttypes.TStatementConf(args.statementConf);
5842
+ }
5738
5843
  if (args.operationId !== undefined && args.operationId !== null) {
5739
5844
  this.operationId = new ttypes.THandleIdentifier(args.operationId);
5740
5845
  }
@@ -5783,6 +5888,21 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
5783
5888
  if (args.originatingClientIdentity !== undefined && args.originatingClientIdentity !== null) {
5784
5889
  this.originatingClientIdentity = args.originatingClientIdentity;
5785
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
+ }
5786
5906
  }
5787
5907
  };
5788
5908
  TExecuteStatementReq.prototype = {};
@@ -5814,14 +5934,14 @@ TExecuteStatementReq.prototype.read = function(input) {
5814
5934
  case 3:
5815
5935
  if (ftype == Thrift.Type.MAP) {
5816
5936
  this.confOverlay = {};
5817
- var _rtmp3169 = input.readMapBegin();
5818
- var _size168 = _rtmp3169.size || 0;
5819
- for (var _i170 = 0; _i170 < _size168; ++_i170) {
5820
- var key171 = null;
5821
- var val172 = null;
5822
- key171 = input.readString();
5823
- val172 = input.readString();
5824
- this.confOverlay[key171] = val172;
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;
5825
5945
  }
5826
5946
  input.readMapEnd();
5827
5947
  } else {
@@ -5896,19 +6016,34 @@ TExecuteStatementReq.prototype.read = function(input) {
5896
6016
  case 1288:
5897
6017
  if (ftype == Thrift.Type.LIST) {
5898
6018
  this.parameters = [];
5899
- var _rtmp3174 = input.readListBegin();
5900
- var _size173 = _rtmp3174.size || 0;
5901
- for (var _i175 = 0; _i175 < _size173; ++_i175) {
5902
- var elem176 = null;
5903
- elem176 = new ttypes.TSparkParameter();
5904
- elem176.read(input);
5905
- this.parameters.push(elem176);
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);
5906
6026
  }
5907
6027
  input.readListEnd();
5908
6028
  } else {
5909
6029
  input.skip(ftype);
5910
6030
  }
5911
6031
  break;
6032
+ case 1289:
6033
+ if (ftype == Thrift.Type.I64) {
6034
+ this.maxBytesPerBatch = input.readI64();
6035
+ } else {
6036
+ input.skip(ftype);
6037
+ }
6038
+ break;
6039
+ case 1296:
6040
+ if (ftype == Thrift.Type.STRUCT) {
6041
+ this.statementConf = new ttypes.TStatementConf();
6042
+ this.statementConf.read(input);
6043
+ } else {
6044
+ input.skip(ftype);
6045
+ }
6046
+ break;
5912
6047
  case 3329:
5913
6048
  if (ftype == Thrift.Type.STRUCT) {
5914
6049
  this.operationId = new ttypes.THandleIdentifier();
@@ -5984,13 +6119,13 @@ TExecuteStatementReq.prototype.read = function(input) {
5984
6119
  case 3345:
5985
6120
  if (ftype == Thrift.Type.LIST) {
5986
6121
  this.statementList = [];
5987
- var _rtmp3178 = input.readListBegin();
5988
- var _size177 = _rtmp3178.size || 0;
5989
- for (var _i179 = 0; _i179 < _size177; ++_i179) {
5990
- var elem180 = null;
5991
- elem180 = new ttypes.TDBSqlStatement();
5992
- elem180.read(input);
5993
- this.statementList.push(elem180);
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);
5994
6129
  }
5995
6130
  input.readListEnd();
5996
6131
  } else {
@@ -6033,6 +6168,41 @@ TExecuteStatementReq.prototype.read = function(input) {
6033
6168
  input.skip(ftype);
6034
6169
  }
6035
6170
  break;
6171
+ case 3351:
6172
+ if (ftype == Thrift.Type.BOOL) {
6173
+ this.preferSingleFileResult = input.readBool();
6174
+ } else {
6175
+ input.skip(ftype);
6176
+ }
6177
+ break;
6178
+ case 3352:
6179
+ if (ftype == Thrift.Type.BOOL) {
6180
+ this.preferDriverOnlyUpload = input.readBool();
6181
+ } else {
6182
+ input.skip(ftype);
6183
+ }
6184
+ break;
6185
+ case 3353:
6186
+ if (ftype == Thrift.Type.BOOL) {
6187
+ this.enforceEmbeddedSchemaCorrectness = input.readBool();
6188
+ } else {
6189
+ input.skip(ftype);
6190
+ }
6191
+ break;
6192
+ case 3360:
6193
+ if (ftype == Thrift.Type.STRING) {
6194
+ this.idempotencyToken = input.readString();
6195
+ } else {
6196
+ input.skip(ftype);
6197
+ }
6198
+ break;
6199
+ case 3361:
6200
+ if (ftype == Thrift.Type.BOOL) {
6201
+ this.throwErrorOnByteLimitTruncation = input.readBool();
6202
+ } else {
6203
+ input.skip(ftype);
6204
+ }
6205
+ break;
6036
6206
  default:
6037
6207
  input.skip(ftype);
6038
6208
  }
@@ -6057,11 +6227,11 @@ TExecuteStatementReq.prototype.write = function(output) {
6057
6227
  if (this.confOverlay !== null && this.confOverlay !== undefined) {
6058
6228
  output.writeFieldBegin('confOverlay', Thrift.Type.MAP, 3);
6059
6229
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confOverlay));
6060
- for (var kiter181 in this.confOverlay) {
6061
- if (this.confOverlay.hasOwnProperty(kiter181)) {
6062
- var viter182 = this.confOverlay[kiter181];
6063
- output.writeString(kiter181);
6064
- output.writeString(viter182);
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);
6065
6235
  }
6066
6236
  }
6067
6237
  output.writeMapEnd();
@@ -6115,15 +6285,25 @@ TExecuteStatementReq.prototype.write = function(output) {
6115
6285
  if (this.parameters !== null && this.parameters !== undefined) {
6116
6286
  output.writeFieldBegin('parameters', Thrift.Type.LIST, 1288);
6117
6287
  output.writeListBegin(Thrift.Type.STRUCT, this.parameters.length);
6118
- for (var iter183 in this.parameters) {
6119
- if (this.parameters.hasOwnProperty(iter183)) {
6120
- iter183 = this.parameters[iter183];
6121
- iter183.write(output);
6288
+ for (var iter197 in this.parameters) {
6289
+ if (this.parameters.hasOwnProperty(iter197)) {
6290
+ iter197 = this.parameters[iter197];
6291
+ iter197.write(output);
6122
6292
  }
6123
6293
  }
6124
6294
  output.writeListEnd();
6125
6295
  output.writeFieldEnd();
6126
6296
  }
6297
+ if (this.maxBytesPerBatch !== null && this.maxBytesPerBatch !== undefined) {
6298
+ output.writeFieldBegin('maxBytesPerBatch', Thrift.Type.I64, 1289);
6299
+ output.writeI64(this.maxBytesPerBatch);
6300
+ output.writeFieldEnd();
6301
+ }
6302
+ if (this.statementConf !== null && this.statementConf !== undefined) {
6303
+ output.writeFieldBegin('statementConf', Thrift.Type.STRUCT, 1296);
6304
+ this.statementConf.write(output);
6305
+ output.writeFieldEnd();
6306
+ }
6127
6307
  if (this.operationId !== null && this.operationId !== undefined) {
6128
6308
  output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
6129
6309
  this.operationId.write(output);
@@ -6177,10 +6357,10 @@ TExecuteStatementReq.prototype.write = function(output) {
6177
6357
  if (this.statementList !== null && this.statementList !== undefined) {
6178
6358
  output.writeFieldBegin('statementList', Thrift.Type.LIST, 3345);
6179
6359
  output.writeListBegin(Thrift.Type.STRUCT, this.statementList.length);
6180
- for (var iter184 in this.statementList) {
6181
- if (this.statementList.hasOwnProperty(iter184)) {
6182
- iter184 = this.statementList[iter184];
6183
- iter184.write(output);
6360
+ for (var iter198 in this.statementList) {
6361
+ if (this.statementList.hasOwnProperty(iter198)) {
6362
+ iter198 = this.statementList[iter198];
6363
+ iter198.write(output);
6184
6364
  }
6185
6365
  }
6186
6366
  output.writeListEnd();
@@ -6211,6 +6391,31 @@ TExecuteStatementReq.prototype.write = function(output) {
6211
6391
  output.writeString(this.originatingClientIdentity);
6212
6392
  output.writeFieldEnd();
6213
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
+ }
6214
6419
  output.writeFieldStop();
6215
6420
  output.writeStructEnd();
6216
6421
  return;
@@ -6441,6 +6646,102 @@ TSparkParameter.prototype.write = function(output) {
6441
6646
  return;
6442
6647
  };
6443
6648
 
6649
+ var TStatementConf = module.exports.TStatementConf = function(args) {
6650
+ this.sessionless = null;
6651
+ this.initialNamespace = null;
6652
+ this.client_protocol = null;
6653
+ this.client_protocol_i64 = null;
6654
+ if (args) {
6655
+ if (args.sessionless !== undefined && args.sessionless !== null) {
6656
+ this.sessionless = args.sessionless;
6657
+ }
6658
+ if (args.initialNamespace !== undefined && args.initialNamespace !== null) {
6659
+ this.initialNamespace = new ttypes.TNamespace(args.initialNamespace);
6660
+ }
6661
+ if (args.client_protocol !== undefined && args.client_protocol !== null) {
6662
+ this.client_protocol = args.client_protocol;
6663
+ }
6664
+ if (args.client_protocol_i64 !== undefined && args.client_protocol_i64 !== null) {
6665
+ this.client_protocol_i64 = args.client_protocol_i64;
6666
+ }
6667
+ }
6668
+ };
6669
+ TStatementConf.prototype = {};
6670
+ TStatementConf.prototype.read = function(input) {
6671
+ input.readStructBegin();
6672
+ while (true) {
6673
+ var ret = input.readFieldBegin();
6674
+ var ftype = ret.ftype;
6675
+ var fid = ret.fid;
6676
+ if (ftype == Thrift.Type.STOP) {
6677
+ break;
6678
+ }
6679
+ switch (fid) {
6680
+ case 1:
6681
+ if (ftype == Thrift.Type.BOOL) {
6682
+ this.sessionless = input.readBool();
6683
+ } else {
6684
+ input.skip(ftype);
6685
+ }
6686
+ break;
6687
+ case 2:
6688
+ if (ftype == Thrift.Type.STRUCT) {
6689
+ this.initialNamespace = new ttypes.TNamespace();
6690
+ this.initialNamespace.read(input);
6691
+ } else {
6692
+ input.skip(ftype);
6693
+ }
6694
+ break;
6695
+ case 3:
6696
+ if (ftype == Thrift.Type.I32) {
6697
+ this.client_protocol = input.readI32();
6698
+ } else {
6699
+ input.skip(ftype);
6700
+ }
6701
+ break;
6702
+ case 4:
6703
+ if (ftype == Thrift.Type.I64) {
6704
+ this.client_protocol_i64 = input.readI64();
6705
+ } else {
6706
+ input.skip(ftype);
6707
+ }
6708
+ break;
6709
+ default:
6710
+ input.skip(ftype);
6711
+ }
6712
+ input.readFieldEnd();
6713
+ }
6714
+ input.readStructEnd();
6715
+ return;
6716
+ };
6717
+
6718
+ TStatementConf.prototype.write = function(output) {
6719
+ output.writeStructBegin('TStatementConf');
6720
+ if (this.sessionless !== null && this.sessionless !== undefined) {
6721
+ output.writeFieldBegin('sessionless', Thrift.Type.BOOL, 1);
6722
+ output.writeBool(this.sessionless);
6723
+ output.writeFieldEnd();
6724
+ }
6725
+ if (this.initialNamespace !== null && this.initialNamespace !== undefined) {
6726
+ output.writeFieldBegin('initialNamespace', Thrift.Type.STRUCT, 2);
6727
+ this.initialNamespace.write(output);
6728
+ output.writeFieldEnd();
6729
+ }
6730
+ if (this.client_protocol !== null && this.client_protocol !== undefined) {
6731
+ output.writeFieldBegin('client_protocol', Thrift.Type.I32, 3);
6732
+ output.writeI32(this.client_protocol);
6733
+ output.writeFieldEnd();
6734
+ }
6735
+ if (this.client_protocol_i64 !== null && this.client_protocol_i64 !== undefined) {
6736
+ output.writeFieldBegin('client_protocol_i64', Thrift.Type.I64, 4);
6737
+ output.writeI64(this.client_protocol_i64);
6738
+ output.writeFieldEnd();
6739
+ }
6740
+ output.writeFieldStop();
6741
+ output.writeStructEnd();
6742
+ return;
6743
+ };
6744
+
6444
6745
  var TExecuteStatementResp = module.exports.TExecuteStatementResp = function(args) {
6445
6746
  this.status = null;
6446
6747
  this.operationHandle = null;
@@ -6590,13 +6891,13 @@ TExecuteStatementResp.prototype.read = function(input) {
6590
6891
  case 3337:
6591
6892
  if (ftype == Thrift.Type.LIST) {
6592
6893
  this.operationHandles = [];
6593
- var _rtmp3186 = input.readListBegin();
6594
- var _size185 = _rtmp3186.size || 0;
6595
- for (var _i187 = 0; _i187 < _size185; ++_i187) {
6596
- var elem188 = null;
6597
- elem188 = new ttypes.TOperationHandle();
6598
- elem188.read(input);
6599
- this.operationHandles.push(elem188);
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);
6600
6901
  }
6601
6902
  input.readListEnd();
6602
6903
  } else {
@@ -6672,10 +6973,10 @@ TExecuteStatementResp.prototype.write = function(output) {
6672
6973
  if (this.operationHandles !== null && this.operationHandles !== undefined) {
6673
6974
  output.writeFieldBegin('operationHandles', Thrift.Type.LIST, 3337);
6674
6975
  output.writeListBegin(Thrift.Type.STRUCT, this.operationHandles.length);
6675
- for (var iter189 in this.operationHandles) {
6676
- if (this.operationHandles.hasOwnProperty(iter189)) {
6677
- iter189 = this.operationHandles[iter189];
6678
- iter189.write(output);
6976
+ for (var iter203 in this.operationHandles) {
6977
+ if (this.operationHandles.hasOwnProperty(iter203)) {
6978
+ iter203 = this.operationHandles[iter203];
6979
+ iter203.write(output);
6679
6980
  }
6680
6981
  }
6681
6982
  output.writeListEnd();
@@ -7406,12 +7707,12 @@ TGetTablesReq.prototype.read = function(input) {
7406
7707
  case 5:
7407
7708
  if (ftype == Thrift.Type.LIST) {
7408
7709
  this.tableTypes = [];
7409
- var _rtmp3191 = input.readListBegin();
7410
- var _size190 = _rtmp3191.size || 0;
7411
- for (var _i192 = 0; _i192 < _size190; ++_i192) {
7412
- var elem193 = null;
7413
- elem193 = input.readString();
7414
- this.tableTypes.push(elem193);
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);
7415
7716
  }
7416
7717
  input.readListEnd();
7417
7718
  } else {
@@ -7483,10 +7784,10 @@ TGetTablesReq.prototype.write = function(output) {
7483
7784
  if (this.tableTypes !== null && this.tableTypes !== undefined) {
7484
7785
  output.writeFieldBegin('tableTypes', Thrift.Type.LIST, 5);
7485
7786
  output.writeListBegin(Thrift.Type.STRING, this.tableTypes.length);
7486
- for (var iter194 in this.tableTypes) {
7487
- if (this.tableTypes.hasOwnProperty(iter194)) {
7488
- iter194 = this.tableTypes[iter194];
7489
- output.writeString(iter194);
7787
+ for (var iter208 in this.tableTypes) {
7788
+ if (this.tableTypes.hasOwnProperty(iter208)) {
7789
+ iter208 = this.tableTypes[iter208];
7790
+ output.writeString(iter208);
7490
7791
  }
7491
7792
  }
7492
7793
  output.writeListEnd();
@@ -8944,6 +9245,7 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
8944
9245
  this.numModifiedRows = null;
8945
9246
  this.displayMessage = null;
8946
9247
  this.diagnosticInfo = null;
9248
+ this.errorDetailsJson = null;
8947
9249
  this.responseValidation = null;
8948
9250
  this.idempotencyType = null;
8949
9251
  this.statementTimeout = null;
@@ -8990,6 +9292,9 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
8990
9292
  if (args.diagnosticInfo !== undefined && args.diagnosticInfo !== null) {
8991
9293
  this.diagnosticInfo = args.diagnosticInfo;
8992
9294
  }
9295
+ if (args.errorDetailsJson !== undefined && args.errorDetailsJson !== null) {
9296
+ this.errorDetailsJson = args.errorDetailsJson;
9297
+ }
8993
9298
  if (args.responseValidation !== undefined && args.responseValidation !== null) {
8994
9299
  this.responseValidation = args.responseValidation;
8995
9300
  }
@@ -9108,6 +9413,13 @@ TGetOperationStatusResp.prototype.read = function(input) {
9108
9413
  input.skip(ftype);
9109
9414
  }
9110
9415
  break;
9416
+ case 1283:
9417
+ if (ftype == Thrift.Type.STRING) {
9418
+ this.errorDetailsJson = input.readString();
9419
+ } else {
9420
+ input.skip(ftype);
9421
+ }
9422
+ break;
9111
9423
  case 3329:
9112
9424
  if (ftype == Thrift.Type.STRING) {
9113
9425
  this.responseValidation = input.readBinary();
@@ -9212,6 +9524,11 @@ TGetOperationStatusResp.prototype.write = function(output) {
9212
9524
  output.writeString(this.diagnosticInfo);
9213
9525
  output.writeFieldEnd();
9214
9526
  }
9527
+ if (this.errorDetailsJson !== null && this.errorDetailsJson !== undefined) {
9528
+ output.writeFieldBegin('errorDetailsJson', Thrift.Type.STRING, 1283);
9529
+ output.writeString(this.errorDetailsJson);
9530
+ output.writeFieldEnd();
9531
+ }
9215
9532
  if (this.responseValidation !== null && this.responseValidation !== undefined) {
9216
9533
  output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
9217
9534
  output.writeBinary(this.responseValidation);
@@ -9374,12 +9691,16 @@ TCancelOperationResp.prototype.write = function(output) {
9374
9691
 
9375
9692
  var TCloseOperationReq = module.exports.TCloseOperationReq = function(args) {
9376
9693
  this.operationHandle = null;
9694
+ this.closeReason = 0;
9377
9695
  if (args) {
9378
9696
  if (args.operationHandle !== undefined && args.operationHandle !== null) {
9379
9697
  this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
9380
9698
  } else {
9381
9699
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field operationHandle is unset!');
9382
9700
  }
9701
+ if (args.closeReason !== undefined && args.closeReason !== null) {
9702
+ this.closeReason = args.closeReason;
9703
+ }
9383
9704
  }
9384
9705
  };
9385
9706
  TCloseOperationReq.prototype = {};
@@ -9401,9 +9722,13 @@ TCloseOperationReq.prototype.read = function(input) {
9401
9722
  input.skip(ftype);
9402
9723
  }
9403
9724
  break;
9404
- case 0:
9725
+ case 3329:
9726
+ if (ftype == Thrift.Type.I32) {
9727
+ this.closeReason = input.readI32();
9728
+ } else {
9405
9729
  input.skip(ftype);
9406
- break;
9730
+ }
9731
+ break;
9407
9732
  default:
9408
9733
  input.skip(ftype);
9409
9734
  }
@@ -9420,6 +9745,11 @@ TCloseOperationReq.prototype.write = function(output) {
9420
9745
  this.operationHandle.write(output);
9421
9746
  output.writeFieldEnd();
9422
9747
  }
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
+ }
9423
9753
  output.writeFieldStop();
9424
9754
  output.writeStructEnd();
9425
9755
  return;
@@ -9565,6 +9895,7 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
9565
9895
  this.isServerless = null;
9566
9896
  this.resultDataFormat = null;
9567
9897
  this.truncatedByThriftLimit = null;
9898
+ this.resultByteLimit = null;
9568
9899
  if (args) {
9569
9900
  if (args.status !== undefined && args.status !== null) {
9570
9901
  this.status = new ttypes.TStatus(args.status);
@@ -9628,6 +9959,9 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
9628
9959
  if (args.truncatedByThriftLimit !== undefined && args.truncatedByThriftLimit !== null) {
9629
9960
  this.truncatedByThriftLimit = args.truncatedByThriftLimit;
9630
9961
  }
9962
+ if (args.resultByteLimit !== undefined && args.resultByteLimit !== null) {
9963
+ this.resultByteLimit = args.resultByteLimit;
9964
+ }
9631
9965
  }
9632
9966
  };
9633
9967
  TGetResultSetMetadataResp.prototype = {};
@@ -9716,13 +10050,13 @@ TGetResultSetMetadataResp.prototype.read = function(input) {
9716
10050
  case 3330:
9717
10051
  if (ftype == Thrift.Type.LIST) {
9718
10052
  this.resultFiles = [];
9719
- var _rtmp3196 = input.readListBegin();
9720
- var _size195 = _rtmp3196.size || 0;
9721
- for (var _i197 = 0; _i197 < _size195; ++_i197) {
9722
- var elem198 = null;
9723
- elem198 = new ttypes.TDBSqlCloudResultFile();
9724
- elem198.read(input);
9725
- this.resultFiles.push(elem198);
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);
9726
10060
  }
9727
10061
  input.readListEnd();
9728
10062
  } else {
@@ -9793,6 +10127,13 @@ TGetResultSetMetadataResp.prototype.read = function(input) {
9793
10127
  input.skip(ftype);
9794
10128
  }
9795
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;
9796
10137
  default:
9797
10138
  input.skip(ftype);
9798
10139
  }
@@ -9857,10 +10198,10 @@ TGetResultSetMetadataResp.prototype.write = function(output) {
9857
10198
  if (this.resultFiles !== null && this.resultFiles !== undefined) {
9858
10199
  output.writeFieldBegin('resultFiles', Thrift.Type.LIST, 3330);
9859
10200
  output.writeListBegin(Thrift.Type.STRUCT, this.resultFiles.length);
9860
- for (var iter199 in this.resultFiles) {
9861
- if (this.resultFiles.hasOwnProperty(iter199)) {
9862
- iter199 = this.resultFiles[iter199];
9863
- iter199.write(output);
10201
+ for (var iter213 in this.resultFiles) {
10202
+ if (this.resultFiles.hasOwnProperty(iter213)) {
10203
+ iter213 = this.resultFiles[iter213];
10204
+ iter213.write(output);
9864
10205
  }
9865
10206
  }
9866
10207
  output.writeListEnd();
@@ -9911,6 +10252,11 @@ TGetResultSetMetadataResp.prototype.write = function(output) {
9911
10252
  output.writeBool(this.truncatedByThriftLimit);
9912
10253
  output.writeFieldEnd();
9913
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
+ }
9914
10260
  output.writeFieldStop();
9915
10261
  output.writeStructEnd();
9916
10262
  return;
@@ -10681,12 +11027,12 @@ TProgressUpdateResp.prototype.read = function(input) {
10681
11027
  case 1:
10682
11028
  if (ftype == Thrift.Type.LIST) {
10683
11029
  this.headerNames = [];
10684
- var _rtmp3201 = input.readListBegin();
10685
- var _size200 = _rtmp3201.size || 0;
10686
- for (var _i202 = 0; _i202 < _size200; ++_i202) {
10687
- var elem203 = null;
10688
- elem203 = input.readString();
10689
- this.headerNames.push(elem203);
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);
10690
11036
  }
10691
11037
  input.readListEnd();
10692
11038
  } else {
@@ -10696,20 +11042,20 @@ TProgressUpdateResp.prototype.read = function(input) {
10696
11042
  case 2:
10697
11043
  if (ftype == Thrift.Type.LIST) {
10698
11044
  this.rows = [];
10699
- var _rtmp3205 = input.readListBegin();
10700
- var _size204 = _rtmp3205.size || 0;
10701
- for (var _i206 = 0; _i206 < _size204; ++_i206) {
10702
- var elem207 = null;
10703
- elem207 = [];
10704
- var _rtmp3209 = input.readListBegin();
10705
- var _size208 = _rtmp3209.size || 0;
10706
- for (var _i210 = 0; _i210 < _size208; ++_i210) {
10707
- var elem211 = null;
10708
- elem211 = input.readString();
10709
- elem207.push(elem211);
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);
10710
11056
  }
10711
11057
  input.readListEnd();
10712
- this.rows.push(elem207);
11058
+ this.rows.push(elem221);
10713
11059
  }
10714
11060
  input.readListEnd();
10715
11061
  } else {
@@ -10758,10 +11104,10 @@ TProgressUpdateResp.prototype.write = function(output) {
10758
11104
  if (this.headerNames !== null && this.headerNames !== undefined) {
10759
11105
  output.writeFieldBegin('headerNames', Thrift.Type.LIST, 1);
10760
11106
  output.writeListBegin(Thrift.Type.STRING, this.headerNames.length);
10761
- for (var iter212 in this.headerNames) {
10762
- if (this.headerNames.hasOwnProperty(iter212)) {
10763
- iter212 = this.headerNames[iter212];
10764
- output.writeString(iter212);
11107
+ for (var iter226 in this.headerNames) {
11108
+ if (this.headerNames.hasOwnProperty(iter226)) {
11109
+ iter226 = this.headerNames[iter226];
11110
+ output.writeString(iter226);
10765
11111
  }
10766
11112
  }
10767
11113
  output.writeListEnd();
@@ -10770,14 +11116,14 @@ TProgressUpdateResp.prototype.write = function(output) {
10770
11116
  if (this.rows !== null && this.rows !== undefined) {
10771
11117
  output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
10772
11118
  output.writeListBegin(Thrift.Type.LIST, this.rows.length);
10773
- for (var iter213 in this.rows) {
10774
- if (this.rows.hasOwnProperty(iter213)) {
10775
- iter213 = this.rows[iter213];
10776
- output.writeListBegin(Thrift.Type.STRING, iter213.length);
10777
- for (var iter214 in iter213) {
10778
- if (iter213.hasOwnProperty(iter214)) {
10779
- iter214 = iter213[iter214];
10780
- output.writeString(iter214);
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);
10781
11127
  }
10782
11128
  }
10783
11129
  output.writeListEnd();