@databricks/sql 1.3.0 → 1.4.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.
- package/dist/DBSQLClient.d.ts +1 -0
- package/dist/DBSQLClient.js +8 -1
- package/dist/DBSQLClient.js.map +1 -1
- package/dist/DBSQLOperation/OperationStatusHelper.d.ts +1 -1
- package/dist/DBSQLOperation/OperationStatusHelper.js +29 -6
- package/dist/DBSQLOperation/OperationStatusHelper.js.map +1 -1
- package/dist/DBSQLOperation/SchemaHelper.d.ts +1 -0
- package/dist/DBSQLOperation/SchemaHelper.js +20 -7
- package/dist/DBSQLOperation/SchemaHelper.js.map +1 -1
- package/dist/DBSQLOperation/index.d.ts +9 -2
- package/dist/DBSQLOperation/index.js +86 -10
- package/dist/DBSQLOperation/index.js.map +1 -1
- package/dist/DBSQLSession.d.ts +10 -1
- package/dist/DBSQLSession.js +72 -14
- package/dist/DBSQLSession.js.map +1 -1
- package/dist/contracts/IDBSQLSession.d.ts +1 -0
- package/dist/errors/OperationStateError.d.ts +10 -2
- package/dist/errors/OperationStateError.js +19 -2
- package/dist/errors/OperationStateError.js.map +1 -1
- package/dist/globalConfig.d.ts +2 -0
- package/dist/globalConfig.js +2 -0
- package/dist/globalConfig.js.map +1 -1
- package/dist/result/ArrowResult.d.ts +3 -2
- package/dist/result/ArrowResult.js +35 -17
- package/dist/result/ArrowResult.js.map +1 -1
- package/dist/result/CloudFetchResult.d.ts +13 -0
- package/dist/result/CloudFetchResult.js +69 -0
- package/dist/result/CloudFetchResult.js.map +1 -0
- package/dist/result/IOperationResult.d.ts +2 -1
- package/dist/result/JsonResult.d.ts +2 -1
- package/dist/result/JsonResult.js +24 -8
- package/dist/result/JsonResult.js.map +1 -1
- package/dist/utils/CloseableCollection.d.ts +10 -0
- package/dist/utils/CloseableCollection.js +40 -0
- package/dist/utils/CloseableCollection.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -1
- package/thrift/TCLIService.d.ts +43 -0
- package/thrift/TCLIService_types.d.ts +26 -6
- package/thrift/TCLIService_types.js +593 -284
|
@@ -2947,6 +2947,7 @@ var TSparkArrowResultLink = module.exports.TSparkArrowResultLink = function(args
|
|
|
2947
2947
|
this.startRowOffset = null;
|
|
2948
2948
|
this.rowCount = null;
|
|
2949
2949
|
this.bytesNum = null;
|
|
2950
|
+
this.httpHeaders = null;
|
|
2950
2951
|
if (args) {
|
|
2951
2952
|
if (args.fileLink !== undefined && args.fileLink !== null) {
|
|
2952
2953
|
this.fileLink = args.fileLink;
|
|
@@ -2973,6 +2974,9 @@ var TSparkArrowResultLink = module.exports.TSparkArrowResultLink = function(args
|
|
|
2973
2974
|
} else {
|
|
2974
2975
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field bytesNum is unset!');
|
|
2975
2976
|
}
|
|
2977
|
+
if (args.httpHeaders !== undefined && args.httpHeaders !== null) {
|
|
2978
|
+
this.httpHeaders = Thrift.copyMap(args.httpHeaders, [null]);
|
|
2979
|
+
}
|
|
2976
2980
|
}
|
|
2977
2981
|
};
|
|
2978
2982
|
TSparkArrowResultLink.prototype = {};
|
|
@@ -3021,6 +3025,23 @@ TSparkArrowResultLink.prototype.read = function(input) {
|
|
|
3021
3025
|
input.skip(ftype);
|
|
3022
3026
|
}
|
|
3023
3027
|
break;
|
|
3028
|
+
case 6:
|
|
3029
|
+
if (ftype == Thrift.Type.MAP) {
|
|
3030
|
+
this.httpHeaders = {};
|
|
3031
|
+
var _rtmp377 = input.readMapBegin();
|
|
3032
|
+
var _size76 = _rtmp377.size || 0;
|
|
3033
|
+
for (var _i78 = 0; _i78 < _size76; ++_i78) {
|
|
3034
|
+
var key79 = null;
|
|
3035
|
+
var val80 = null;
|
|
3036
|
+
key79 = input.readString();
|
|
3037
|
+
val80 = input.readString();
|
|
3038
|
+
this.httpHeaders[key79] = val80;
|
|
3039
|
+
}
|
|
3040
|
+
input.readMapEnd();
|
|
3041
|
+
} else {
|
|
3042
|
+
input.skip(ftype);
|
|
3043
|
+
}
|
|
3044
|
+
break;
|
|
3024
3045
|
default:
|
|
3025
3046
|
input.skip(ftype);
|
|
3026
3047
|
}
|
|
@@ -3057,6 +3078,19 @@ TSparkArrowResultLink.prototype.write = function(output) {
|
|
|
3057
3078
|
output.writeI64(this.bytesNum);
|
|
3058
3079
|
output.writeFieldEnd();
|
|
3059
3080
|
}
|
|
3081
|
+
if (this.httpHeaders !== null && this.httpHeaders !== undefined) {
|
|
3082
|
+
output.writeFieldBegin('httpHeaders', Thrift.Type.MAP, 6);
|
|
3083
|
+
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.httpHeaders));
|
|
3084
|
+
for (var kiter81 in this.httpHeaders) {
|
|
3085
|
+
if (this.httpHeaders.hasOwnProperty(kiter81)) {
|
|
3086
|
+
var viter82 = this.httpHeaders[kiter81];
|
|
3087
|
+
output.writeString(kiter81);
|
|
3088
|
+
output.writeString(viter82);
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
output.writeMapEnd();
|
|
3092
|
+
output.writeFieldEnd();
|
|
3093
|
+
}
|
|
3060
3094
|
output.writeFieldStop();
|
|
3061
3095
|
output.writeStructEnd();
|
|
3062
3096
|
return;
|
|
@@ -3070,6 +3104,7 @@ var TDBSqlCloudResultFile = module.exports.TDBSqlCloudResultFile = function(args
|
|
|
3070
3104
|
this.compressedBytes = null;
|
|
3071
3105
|
this.fileLink = null;
|
|
3072
3106
|
this.linkExpiryTime = null;
|
|
3107
|
+
this.httpHeaders = null;
|
|
3073
3108
|
if (args) {
|
|
3074
3109
|
if (args.filePath !== undefined && args.filePath !== null) {
|
|
3075
3110
|
this.filePath = args.filePath;
|
|
@@ -3092,6 +3127,9 @@ var TDBSqlCloudResultFile = module.exports.TDBSqlCloudResultFile = function(args
|
|
|
3092
3127
|
if (args.linkExpiryTime !== undefined && args.linkExpiryTime !== null) {
|
|
3093
3128
|
this.linkExpiryTime = args.linkExpiryTime;
|
|
3094
3129
|
}
|
|
3130
|
+
if (args.httpHeaders !== undefined && args.httpHeaders !== null) {
|
|
3131
|
+
this.httpHeaders = Thrift.copyMap(args.httpHeaders, [null]);
|
|
3132
|
+
}
|
|
3095
3133
|
}
|
|
3096
3134
|
};
|
|
3097
3135
|
TDBSqlCloudResultFile.prototype = {};
|
|
@@ -3154,6 +3192,23 @@ TDBSqlCloudResultFile.prototype.read = function(input) {
|
|
|
3154
3192
|
input.skip(ftype);
|
|
3155
3193
|
}
|
|
3156
3194
|
break;
|
|
3195
|
+
case 8:
|
|
3196
|
+
if (ftype == Thrift.Type.MAP) {
|
|
3197
|
+
this.httpHeaders = {};
|
|
3198
|
+
var _rtmp384 = input.readMapBegin();
|
|
3199
|
+
var _size83 = _rtmp384.size || 0;
|
|
3200
|
+
for (var _i85 = 0; _i85 < _size83; ++_i85) {
|
|
3201
|
+
var key86 = null;
|
|
3202
|
+
var val87 = null;
|
|
3203
|
+
key86 = input.readString();
|
|
3204
|
+
val87 = input.readString();
|
|
3205
|
+
this.httpHeaders[key86] = val87;
|
|
3206
|
+
}
|
|
3207
|
+
input.readMapEnd();
|
|
3208
|
+
} else {
|
|
3209
|
+
input.skip(ftype);
|
|
3210
|
+
}
|
|
3211
|
+
break;
|
|
3157
3212
|
default:
|
|
3158
3213
|
input.skip(ftype);
|
|
3159
3214
|
}
|
|
@@ -3200,6 +3255,19 @@ TDBSqlCloudResultFile.prototype.write = function(output) {
|
|
|
3200
3255
|
output.writeI64(this.linkExpiryTime);
|
|
3201
3256
|
output.writeFieldEnd();
|
|
3202
3257
|
}
|
|
3258
|
+
if (this.httpHeaders !== null && this.httpHeaders !== undefined) {
|
|
3259
|
+
output.writeFieldBegin('httpHeaders', Thrift.Type.MAP, 8);
|
|
3260
|
+
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.httpHeaders));
|
|
3261
|
+
for (var kiter88 in this.httpHeaders) {
|
|
3262
|
+
if (this.httpHeaders.hasOwnProperty(kiter88)) {
|
|
3263
|
+
var viter89 = this.httpHeaders[kiter88];
|
|
3264
|
+
output.writeString(kiter88);
|
|
3265
|
+
output.writeString(viter89);
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
output.writeMapEnd();
|
|
3269
|
+
output.writeFieldEnd();
|
|
3270
|
+
}
|
|
3203
3271
|
output.writeFieldStop();
|
|
3204
3272
|
output.writeStructEnd();
|
|
3205
3273
|
return;
|
|
@@ -3266,13 +3334,13 @@ TRowSet.prototype.read = function(input) {
|
|
|
3266
3334
|
case 2:
|
|
3267
3335
|
if (ftype == Thrift.Type.LIST) {
|
|
3268
3336
|
this.rows = [];
|
|
3269
|
-
var
|
|
3270
|
-
var
|
|
3271
|
-
for (var
|
|
3272
|
-
var
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
this.rows.push(
|
|
3337
|
+
var _rtmp391 = input.readListBegin();
|
|
3338
|
+
var _size90 = _rtmp391.size || 0;
|
|
3339
|
+
for (var _i92 = 0; _i92 < _size90; ++_i92) {
|
|
3340
|
+
var elem93 = null;
|
|
3341
|
+
elem93 = new ttypes.TRow();
|
|
3342
|
+
elem93.read(input);
|
|
3343
|
+
this.rows.push(elem93);
|
|
3276
3344
|
}
|
|
3277
3345
|
input.readListEnd();
|
|
3278
3346
|
} else {
|
|
@@ -3282,13 +3350,13 @@ TRowSet.prototype.read = function(input) {
|
|
|
3282
3350
|
case 3:
|
|
3283
3351
|
if (ftype == Thrift.Type.LIST) {
|
|
3284
3352
|
this.columns = [];
|
|
3285
|
-
var
|
|
3286
|
-
var
|
|
3287
|
-
for (var
|
|
3288
|
-
var
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
this.columns.push(
|
|
3353
|
+
var _rtmp395 = input.readListBegin();
|
|
3354
|
+
var _size94 = _rtmp395.size || 0;
|
|
3355
|
+
for (var _i96 = 0; _i96 < _size94; ++_i96) {
|
|
3356
|
+
var elem97 = null;
|
|
3357
|
+
elem97 = new ttypes.TColumn();
|
|
3358
|
+
elem97.read(input);
|
|
3359
|
+
this.columns.push(elem97);
|
|
3292
3360
|
}
|
|
3293
3361
|
input.readListEnd();
|
|
3294
3362
|
} else {
|
|
@@ -3312,13 +3380,13 @@ TRowSet.prototype.read = function(input) {
|
|
|
3312
3380
|
case 1281:
|
|
3313
3381
|
if (ftype == Thrift.Type.LIST) {
|
|
3314
3382
|
this.arrowBatches = [];
|
|
3315
|
-
var
|
|
3316
|
-
var
|
|
3317
|
-
for (var
|
|
3318
|
-
var
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
this.arrowBatches.push(
|
|
3383
|
+
var _rtmp399 = input.readListBegin();
|
|
3384
|
+
var _size98 = _rtmp399.size || 0;
|
|
3385
|
+
for (var _i100 = 0; _i100 < _size98; ++_i100) {
|
|
3386
|
+
var elem101 = null;
|
|
3387
|
+
elem101 = new ttypes.TSparkArrowBatch();
|
|
3388
|
+
elem101.read(input);
|
|
3389
|
+
this.arrowBatches.push(elem101);
|
|
3322
3390
|
}
|
|
3323
3391
|
input.readListEnd();
|
|
3324
3392
|
} else {
|
|
@@ -3328,13 +3396,13 @@ TRowSet.prototype.read = function(input) {
|
|
|
3328
3396
|
case 1282:
|
|
3329
3397
|
if (ftype == Thrift.Type.LIST) {
|
|
3330
3398
|
this.resultLinks = [];
|
|
3331
|
-
var
|
|
3332
|
-
var
|
|
3333
|
-
for (var
|
|
3334
|
-
var
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
this.resultLinks.push(
|
|
3399
|
+
var _rtmp3103 = input.readListBegin();
|
|
3400
|
+
var _size102 = _rtmp3103.size || 0;
|
|
3401
|
+
for (var _i104 = 0; _i104 < _size102; ++_i104) {
|
|
3402
|
+
var elem105 = null;
|
|
3403
|
+
elem105 = new ttypes.TSparkArrowResultLink();
|
|
3404
|
+
elem105.read(input);
|
|
3405
|
+
this.resultLinks.push(elem105);
|
|
3338
3406
|
}
|
|
3339
3407
|
input.readListEnd();
|
|
3340
3408
|
} else {
|
|
@@ -3344,13 +3412,13 @@ TRowSet.prototype.read = function(input) {
|
|
|
3344
3412
|
case 3329:
|
|
3345
3413
|
if (ftype == Thrift.Type.LIST) {
|
|
3346
3414
|
this.cloudFetchResults = [];
|
|
3347
|
-
var
|
|
3348
|
-
var
|
|
3349
|
-
for (var
|
|
3350
|
-
var
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
this.cloudFetchResults.push(
|
|
3415
|
+
var _rtmp3107 = input.readListBegin();
|
|
3416
|
+
var _size106 = _rtmp3107.size || 0;
|
|
3417
|
+
for (var _i108 = 0; _i108 < _size106; ++_i108) {
|
|
3418
|
+
var elem109 = null;
|
|
3419
|
+
elem109 = new ttypes.TDBSqlCloudResultFile();
|
|
3420
|
+
elem109.read(input);
|
|
3421
|
+
this.cloudFetchResults.push(elem109);
|
|
3354
3422
|
}
|
|
3355
3423
|
input.readListEnd();
|
|
3356
3424
|
} else {
|
|
@@ -3376,10 +3444,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
3376
3444
|
if (this.rows !== null && this.rows !== undefined) {
|
|
3377
3445
|
output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
|
|
3378
3446
|
output.writeListBegin(Thrift.Type.STRUCT, this.rows.length);
|
|
3379
|
-
for (var
|
|
3380
|
-
if (this.rows.hasOwnProperty(
|
|
3381
|
-
|
|
3382
|
-
|
|
3447
|
+
for (var iter110 in this.rows) {
|
|
3448
|
+
if (this.rows.hasOwnProperty(iter110)) {
|
|
3449
|
+
iter110 = this.rows[iter110];
|
|
3450
|
+
iter110.write(output);
|
|
3383
3451
|
}
|
|
3384
3452
|
}
|
|
3385
3453
|
output.writeListEnd();
|
|
@@ -3388,10 +3456,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
3388
3456
|
if (this.columns !== null && this.columns !== undefined) {
|
|
3389
3457
|
output.writeFieldBegin('columns', Thrift.Type.LIST, 3);
|
|
3390
3458
|
output.writeListBegin(Thrift.Type.STRUCT, this.columns.length);
|
|
3391
|
-
for (var
|
|
3392
|
-
if (this.columns.hasOwnProperty(
|
|
3393
|
-
|
|
3394
|
-
|
|
3459
|
+
for (var iter111 in this.columns) {
|
|
3460
|
+
if (this.columns.hasOwnProperty(iter111)) {
|
|
3461
|
+
iter111 = this.columns[iter111];
|
|
3462
|
+
iter111.write(output);
|
|
3395
3463
|
}
|
|
3396
3464
|
}
|
|
3397
3465
|
output.writeListEnd();
|
|
@@ -3410,10 +3478,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
3410
3478
|
if (this.arrowBatches !== null && this.arrowBatches !== undefined) {
|
|
3411
3479
|
output.writeFieldBegin('arrowBatches', Thrift.Type.LIST, 1281);
|
|
3412
3480
|
output.writeListBegin(Thrift.Type.STRUCT, this.arrowBatches.length);
|
|
3413
|
-
for (var
|
|
3414
|
-
if (this.arrowBatches.hasOwnProperty(
|
|
3415
|
-
|
|
3416
|
-
|
|
3481
|
+
for (var iter112 in this.arrowBatches) {
|
|
3482
|
+
if (this.arrowBatches.hasOwnProperty(iter112)) {
|
|
3483
|
+
iter112 = this.arrowBatches[iter112];
|
|
3484
|
+
iter112.write(output);
|
|
3417
3485
|
}
|
|
3418
3486
|
}
|
|
3419
3487
|
output.writeListEnd();
|
|
@@ -3422,10 +3490,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
3422
3490
|
if (this.resultLinks !== null && this.resultLinks !== undefined) {
|
|
3423
3491
|
output.writeFieldBegin('resultLinks', Thrift.Type.LIST, 1282);
|
|
3424
3492
|
output.writeListBegin(Thrift.Type.STRUCT, this.resultLinks.length);
|
|
3425
|
-
for (var
|
|
3426
|
-
if (this.resultLinks.hasOwnProperty(
|
|
3427
|
-
|
|
3428
|
-
|
|
3493
|
+
for (var iter113 in this.resultLinks) {
|
|
3494
|
+
if (this.resultLinks.hasOwnProperty(iter113)) {
|
|
3495
|
+
iter113 = this.resultLinks[iter113];
|
|
3496
|
+
iter113.write(output);
|
|
3429
3497
|
}
|
|
3430
3498
|
}
|
|
3431
3499
|
output.writeListEnd();
|
|
@@ -3434,10 +3502,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
3434
3502
|
if (this.cloudFetchResults !== null && this.cloudFetchResults !== undefined) {
|
|
3435
3503
|
output.writeFieldBegin('cloudFetchResults', Thrift.Type.LIST, 3329);
|
|
3436
3504
|
output.writeListBegin(Thrift.Type.STRUCT, this.cloudFetchResults.length);
|
|
3437
|
-
for (var
|
|
3438
|
-
if (this.cloudFetchResults.hasOwnProperty(
|
|
3439
|
-
|
|
3440
|
-
|
|
3505
|
+
for (var iter114 in this.cloudFetchResults) {
|
|
3506
|
+
if (this.cloudFetchResults.hasOwnProperty(iter114)) {
|
|
3507
|
+
iter114 = this.cloudFetchResults[iter114];
|
|
3508
|
+
iter114.write(output);
|
|
3441
3509
|
}
|
|
3442
3510
|
}
|
|
3443
3511
|
output.writeListEnd();
|
|
@@ -3496,14 +3564,14 @@ TDBSqlTempView.prototype.read = function(input) {
|
|
|
3496
3564
|
case 3:
|
|
3497
3565
|
if (ftype == Thrift.Type.MAP) {
|
|
3498
3566
|
this.properties = {};
|
|
3499
|
-
var
|
|
3500
|
-
var
|
|
3501
|
-
for (var
|
|
3502
|
-
var
|
|
3503
|
-
var
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
this.properties[
|
|
3567
|
+
var _rtmp3116 = input.readMapBegin();
|
|
3568
|
+
var _size115 = _rtmp3116.size || 0;
|
|
3569
|
+
for (var _i117 = 0; _i117 < _size115; ++_i117) {
|
|
3570
|
+
var key118 = null;
|
|
3571
|
+
var val119 = null;
|
|
3572
|
+
key118 = input.readString();
|
|
3573
|
+
val119 = input.readString();
|
|
3574
|
+
this.properties[key118] = val119;
|
|
3507
3575
|
}
|
|
3508
3576
|
input.readMapEnd();
|
|
3509
3577
|
} else {
|
|
@@ -3541,11 +3609,11 @@ TDBSqlTempView.prototype.write = function(output) {
|
|
|
3541
3609
|
if (this.properties !== null && this.properties !== undefined) {
|
|
3542
3610
|
output.writeFieldBegin('properties', Thrift.Type.MAP, 3);
|
|
3543
3611
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.properties));
|
|
3544
|
-
for (var
|
|
3545
|
-
if (this.properties.hasOwnProperty(
|
|
3546
|
-
var
|
|
3547
|
-
output.writeString(
|
|
3548
|
-
output.writeString(
|
|
3612
|
+
for (var kiter120 in this.properties) {
|
|
3613
|
+
if (this.properties.hasOwnProperty(kiter120)) {
|
|
3614
|
+
var viter121 = this.properties[kiter120];
|
|
3615
|
+
output.writeString(kiter120);
|
|
3616
|
+
output.writeString(viter121);
|
|
3549
3617
|
}
|
|
3550
3618
|
}
|
|
3551
3619
|
output.writeMapEnd();
|
|
@@ -3930,14 +3998,14 @@ TDBSqlSessionConf.prototype.read = function(input) {
|
|
|
3930
3998
|
case 1:
|
|
3931
3999
|
if (ftype == Thrift.Type.MAP) {
|
|
3932
4000
|
this.confs = {};
|
|
3933
|
-
var
|
|
3934
|
-
var
|
|
3935
|
-
for (var
|
|
3936
|
-
var
|
|
3937
|
-
var
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
this.confs[
|
|
4001
|
+
var _rtmp3123 = input.readMapBegin();
|
|
4002
|
+
var _size122 = _rtmp3123.size || 0;
|
|
4003
|
+
for (var _i124 = 0; _i124 < _size122; ++_i124) {
|
|
4004
|
+
var key125 = null;
|
|
4005
|
+
var val126 = null;
|
|
4006
|
+
key125 = input.readString();
|
|
4007
|
+
val126 = input.readString();
|
|
4008
|
+
this.confs[key125] = val126;
|
|
3941
4009
|
}
|
|
3942
4010
|
input.readMapEnd();
|
|
3943
4011
|
} else {
|
|
@@ -3947,13 +4015,13 @@ TDBSqlSessionConf.prototype.read = function(input) {
|
|
|
3947
4015
|
case 2:
|
|
3948
4016
|
if (ftype == Thrift.Type.LIST) {
|
|
3949
4017
|
this.tempViews = [];
|
|
3950
|
-
var
|
|
3951
|
-
var
|
|
3952
|
-
for (var
|
|
3953
|
-
var
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
this.tempViews.push(
|
|
4018
|
+
var _rtmp3128 = input.readListBegin();
|
|
4019
|
+
var _size127 = _rtmp3128.size || 0;
|
|
4020
|
+
for (var _i129 = 0; _i129 < _size127; ++_i129) {
|
|
4021
|
+
var elem130 = null;
|
|
4022
|
+
elem130 = new ttypes.TDBSqlTempView();
|
|
4023
|
+
elem130.read(input);
|
|
4024
|
+
this.tempViews.push(elem130);
|
|
3957
4025
|
}
|
|
3958
4026
|
input.readListEnd();
|
|
3959
4027
|
} else {
|
|
@@ -3985,13 +4053,13 @@ TDBSqlSessionConf.prototype.read = function(input) {
|
|
|
3985
4053
|
case 6:
|
|
3986
4054
|
if (ftype == Thrift.Type.LIST) {
|
|
3987
4055
|
this.expressionsInfos = [];
|
|
3988
|
-
var
|
|
3989
|
-
var
|
|
3990
|
-
for (var
|
|
3991
|
-
var
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
this.expressionsInfos.push(
|
|
4056
|
+
var _rtmp3132 = input.readListBegin();
|
|
4057
|
+
var _size131 = _rtmp3132.size || 0;
|
|
4058
|
+
for (var _i133 = 0; _i133 < _size131; ++_i133) {
|
|
4059
|
+
var elem134 = null;
|
|
4060
|
+
elem134 = new ttypes.TExpressionInfo();
|
|
4061
|
+
elem134.read(input);
|
|
4062
|
+
this.expressionsInfos.push(elem134);
|
|
3995
4063
|
}
|
|
3996
4064
|
input.readListEnd();
|
|
3997
4065
|
} else {
|
|
@@ -4001,15 +4069,15 @@ TDBSqlSessionConf.prototype.read = function(input) {
|
|
|
4001
4069
|
case 7:
|
|
4002
4070
|
if (ftype == Thrift.Type.MAP) {
|
|
4003
4071
|
this.internalConfs = {};
|
|
4004
|
-
var
|
|
4005
|
-
var
|
|
4006
|
-
for (var
|
|
4007
|
-
var
|
|
4008
|
-
var
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
this.internalConfs[
|
|
4072
|
+
var _rtmp3136 = input.readMapBegin();
|
|
4073
|
+
var _size135 = _rtmp3136.size || 0;
|
|
4074
|
+
for (var _i137 = 0; _i137 < _size135; ++_i137) {
|
|
4075
|
+
var key138 = null;
|
|
4076
|
+
var val139 = null;
|
|
4077
|
+
key138 = input.readString();
|
|
4078
|
+
val139 = new ttypes.TDBSqlConfValue();
|
|
4079
|
+
val139.read(input);
|
|
4080
|
+
this.internalConfs[key138] = val139;
|
|
4013
4081
|
}
|
|
4014
4082
|
input.readMapEnd();
|
|
4015
4083
|
} else {
|
|
@@ -4030,11 +4098,11 @@ TDBSqlSessionConf.prototype.write = function(output) {
|
|
|
4030
4098
|
if (this.confs !== null && this.confs !== undefined) {
|
|
4031
4099
|
output.writeFieldBegin('confs', Thrift.Type.MAP, 1);
|
|
4032
4100
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confs));
|
|
4033
|
-
for (var
|
|
4034
|
-
if (this.confs.hasOwnProperty(
|
|
4035
|
-
var
|
|
4036
|
-
output.writeString(
|
|
4037
|
-
output.writeString(
|
|
4101
|
+
for (var kiter140 in this.confs) {
|
|
4102
|
+
if (this.confs.hasOwnProperty(kiter140)) {
|
|
4103
|
+
var viter141 = this.confs[kiter140];
|
|
4104
|
+
output.writeString(kiter140);
|
|
4105
|
+
output.writeString(viter141);
|
|
4038
4106
|
}
|
|
4039
4107
|
}
|
|
4040
4108
|
output.writeMapEnd();
|
|
@@ -4043,10 +4111,10 @@ TDBSqlSessionConf.prototype.write = function(output) {
|
|
|
4043
4111
|
if (this.tempViews !== null && this.tempViews !== undefined) {
|
|
4044
4112
|
output.writeFieldBegin('tempViews', Thrift.Type.LIST, 2);
|
|
4045
4113
|
output.writeListBegin(Thrift.Type.STRUCT, this.tempViews.length);
|
|
4046
|
-
for (var
|
|
4047
|
-
if (this.tempViews.hasOwnProperty(
|
|
4048
|
-
|
|
4049
|
-
|
|
4114
|
+
for (var iter142 in this.tempViews) {
|
|
4115
|
+
if (this.tempViews.hasOwnProperty(iter142)) {
|
|
4116
|
+
iter142 = this.tempViews[iter142];
|
|
4117
|
+
iter142.write(output);
|
|
4050
4118
|
}
|
|
4051
4119
|
}
|
|
4052
4120
|
output.writeListEnd();
|
|
@@ -4070,10 +4138,10 @@ TDBSqlSessionConf.prototype.write = function(output) {
|
|
|
4070
4138
|
if (this.expressionsInfos !== null && this.expressionsInfos !== undefined) {
|
|
4071
4139
|
output.writeFieldBegin('expressionsInfos', Thrift.Type.LIST, 6);
|
|
4072
4140
|
output.writeListBegin(Thrift.Type.STRUCT, this.expressionsInfos.length);
|
|
4073
|
-
for (var
|
|
4074
|
-
if (this.expressionsInfos.hasOwnProperty(
|
|
4075
|
-
|
|
4076
|
-
|
|
4141
|
+
for (var iter143 in this.expressionsInfos) {
|
|
4142
|
+
if (this.expressionsInfos.hasOwnProperty(iter143)) {
|
|
4143
|
+
iter143 = this.expressionsInfos[iter143];
|
|
4144
|
+
iter143.write(output);
|
|
4077
4145
|
}
|
|
4078
4146
|
}
|
|
4079
4147
|
output.writeListEnd();
|
|
@@ -4082,11 +4150,11 @@ TDBSqlSessionConf.prototype.write = function(output) {
|
|
|
4082
4150
|
if (this.internalConfs !== null && this.internalConfs !== undefined) {
|
|
4083
4151
|
output.writeFieldBegin('internalConfs', Thrift.Type.MAP, 7);
|
|
4084
4152
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.internalConfs));
|
|
4085
|
-
for (var
|
|
4086
|
-
if (this.internalConfs.hasOwnProperty(
|
|
4087
|
-
var
|
|
4088
|
-
output.writeString(
|
|
4089
|
-
|
|
4153
|
+
for (var kiter144 in this.internalConfs) {
|
|
4154
|
+
if (this.internalConfs.hasOwnProperty(kiter144)) {
|
|
4155
|
+
var viter145 = this.internalConfs[kiter144];
|
|
4156
|
+
output.writeString(kiter144);
|
|
4157
|
+
viter145.write(output);
|
|
4090
4158
|
}
|
|
4091
4159
|
}
|
|
4092
4160
|
output.writeMapEnd();
|
|
@@ -4104,6 +4172,7 @@ var TStatus = module.exports.TStatus = function(args) {
|
|
|
4104
4172
|
this.errorCode = null;
|
|
4105
4173
|
this.errorMessage = null;
|
|
4106
4174
|
this.displayMessage = null;
|
|
4175
|
+
this.errorDetailsJson = null;
|
|
4107
4176
|
this.responseValidation = null;
|
|
4108
4177
|
if (args) {
|
|
4109
4178
|
if (args.statusCode !== undefined && args.statusCode !== null) {
|
|
@@ -4126,6 +4195,9 @@ var TStatus = module.exports.TStatus = function(args) {
|
|
|
4126
4195
|
if (args.displayMessage !== undefined && args.displayMessage !== null) {
|
|
4127
4196
|
this.displayMessage = args.displayMessage;
|
|
4128
4197
|
}
|
|
4198
|
+
if (args.errorDetailsJson !== undefined && args.errorDetailsJson !== null) {
|
|
4199
|
+
this.errorDetailsJson = args.errorDetailsJson;
|
|
4200
|
+
}
|
|
4129
4201
|
if (args.responseValidation !== undefined && args.responseValidation !== null) {
|
|
4130
4202
|
this.responseValidation = args.responseValidation;
|
|
4131
4203
|
}
|
|
@@ -4152,12 +4224,12 @@ TStatus.prototype.read = function(input) {
|
|
|
4152
4224
|
case 2:
|
|
4153
4225
|
if (ftype == Thrift.Type.LIST) {
|
|
4154
4226
|
this.infoMessages = [];
|
|
4155
|
-
var
|
|
4156
|
-
var
|
|
4157
|
-
for (var
|
|
4158
|
-
var
|
|
4159
|
-
|
|
4160
|
-
this.infoMessages.push(
|
|
4227
|
+
var _rtmp3147 = input.readListBegin();
|
|
4228
|
+
var _size146 = _rtmp3147.size || 0;
|
|
4229
|
+
for (var _i148 = 0; _i148 < _size146; ++_i148) {
|
|
4230
|
+
var elem149 = null;
|
|
4231
|
+
elem149 = input.readString();
|
|
4232
|
+
this.infoMessages.push(elem149);
|
|
4161
4233
|
}
|
|
4162
4234
|
input.readListEnd();
|
|
4163
4235
|
} else {
|
|
@@ -4192,6 +4264,13 @@ TStatus.prototype.read = function(input) {
|
|
|
4192
4264
|
input.skip(ftype);
|
|
4193
4265
|
}
|
|
4194
4266
|
break;
|
|
4267
|
+
case 1281:
|
|
4268
|
+
if (ftype == Thrift.Type.STRING) {
|
|
4269
|
+
this.errorDetailsJson = input.readString();
|
|
4270
|
+
} else {
|
|
4271
|
+
input.skip(ftype);
|
|
4272
|
+
}
|
|
4273
|
+
break;
|
|
4195
4274
|
case 3329:
|
|
4196
4275
|
if (ftype == Thrift.Type.STRING) {
|
|
4197
4276
|
this.responseValidation = input.readBinary();
|
|
@@ -4218,10 +4297,10 @@ TStatus.prototype.write = function(output) {
|
|
|
4218
4297
|
if (this.infoMessages !== null && this.infoMessages !== undefined) {
|
|
4219
4298
|
output.writeFieldBegin('infoMessages', Thrift.Type.LIST, 2);
|
|
4220
4299
|
output.writeListBegin(Thrift.Type.STRING, this.infoMessages.length);
|
|
4221
|
-
for (var
|
|
4222
|
-
if (this.infoMessages.hasOwnProperty(
|
|
4223
|
-
|
|
4224
|
-
output.writeString(
|
|
4300
|
+
for (var iter150 in this.infoMessages) {
|
|
4301
|
+
if (this.infoMessages.hasOwnProperty(iter150)) {
|
|
4302
|
+
iter150 = this.infoMessages[iter150];
|
|
4303
|
+
output.writeString(iter150);
|
|
4225
4304
|
}
|
|
4226
4305
|
}
|
|
4227
4306
|
output.writeListEnd();
|
|
@@ -4247,6 +4326,11 @@ TStatus.prototype.write = function(output) {
|
|
|
4247
4326
|
output.writeString(this.displayMessage);
|
|
4248
4327
|
output.writeFieldEnd();
|
|
4249
4328
|
}
|
|
4329
|
+
if (this.errorDetailsJson !== null && this.errorDetailsJson !== undefined) {
|
|
4330
|
+
output.writeFieldBegin('errorDetailsJson', Thrift.Type.STRING, 1281);
|
|
4331
|
+
output.writeString(this.errorDetailsJson);
|
|
4332
|
+
output.writeFieldEnd();
|
|
4333
|
+
}
|
|
4250
4334
|
if (this.responseValidation !== null && this.responseValidation !== undefined) {
|
|
4251
4335
|
output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
|
|
4252
4336
|
output.writeBinary(this.responseValidation);
|
|
@@ -4650,14 +4734,14 @@ TOpenSessionReq.prototype.read = function(input) {
|
|
|
4650
4734
|
case 4:
|
|
4651
4735
|
if (ftype == Thrift.Type.MAP) {
|
|
4652
4736
|
this.configuration = {};
|
|
4653
|
-
var
|
|
4654
|
-
var
|
|
4655
|
-
for (var
|
|
4656
|
-
var
|
|
4657
|
-
var
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
this.configuration[
|
|
4737
|
+
var _rtmp3152 = input.readMapBegin();
|
|
4738
|
+
var _size151 = _rtmp3152.size || 0;
|
|
4739
|
+
for (var _i153 = 0; _i153 < _size151; ++_i153) {
|
|
4740
|
+
var key154 = null;
|
|
4741
|
+
var val155 = null;
|
|
4742
|
+
key154 = input.readString();
|
|
4743
|
+
val155 = input.readString();
|
|
4744
|
+
this.configuration[key154] = val155;
|
|
4661
4745
|
}
|
|
4662
4746
|
input.readMapEnd();
|
|
4663
4747
|
} else {
|
|
@@ -4667,12 +4751,12 @@ TOpenSessionReq.prototype.read = function(input) {
|
|
|
4667
4751
|
case 1281:
|
|
4668
4752
|
if (ftype == Thrift.Type.LIST) {
|
|
4669
4753
|
this.getInfos = [];
|
|
4670
|
-
var
|
|
4671
|
-
var
|
|
4672
|
-
for (var
|
|
4673
|
-
var
|
|
4674
|
-
|
|
4675
|
-
this.getInfos.push(
|
|
4754
|
+
var _rtmp3157 = input.readListBegin();
|
|
4755
|
+
var _size156 = _rtmp3157.size || 0;
|
|
4756
|
+
for (var _i158 = 0; _i158 < _size156; ++_i158) {
|
|
4757
|
+
var elem159 = null;
|
|
4758
|
+
elem159 = input.readI32();
|
|
4759
|
+
this.getInfos.push(elem159);
|
|
4676
4760
|
}
|
|
4677
4761
|
input.readListEnd();
|
|
4678
4762
|
} else {
|
|
@@ -4689,14 +4773,14 @@ TOpenSessionReq.prototype.read = function(input) {
|
|
|
4689
4773
|
case 1283:
|
|
4690
4774
|
if (ftype == Thrift.Type.MAP) {
|
|
4691
4775
|
this.connectionProperties = {};
|
|
4692
|
-
var
|
|
4693
|
-
var
|
|
4694
|
-
for (var
|
|
4695
|
-
var
|
|
4696
|
-
var
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
this.connectionProperties[
|
|
4776
|
+
var _rtmp3161 = input.readMapBegin();
|
|
4777
|
+
var _size160 = _rtmp3161.size || 0;
|
|
4778
|
+
for (var _i162 = 0; _i162 < _size160; ++_i162) {
|
|
4779
|
+
var key163 = null;
|
|
4780
|
+
var val164 = null;
|
|
4781
|
+
key163 = input.readString();
|
|
4782
|
+
val164 = input.readString();
|
|
4783
|
+
this.connectionProperties[key163] = val164;
|
|
4700
4784
|
}
|
|
4701
4785
|
input.readMapEnd();
|
|
4702
4786
|
} else {
|
|
@@ -4755,11 +4839,11 @@ TOpenSessionReq.prototype.write = function(output) {
|
|
|
4755
4839
|
if (this.configuration !== null && this.configuration !== undefined) {
|
|
4756
4840
|
output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
|
|
4757
4841
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
|
|
4758
|
-
for (var
|
|
4759
|
-
if (this.configuration.hasOwnProperty(
|
|
4760
|
-
var
|
|
4761
|
-
output.writeString(
|
|
4762
|
-
output.writeString(
|
|
4842
|
+
for (var kiter165 in this.configuration) {
|
|
4843
|
+
if (this.configuration.hasOwnProperty(kiter165)) {
|
|
4844
|
+
var viter166 = this.configuration[kiter165];
|
|
4845
|
+
output.writeString(kiter165);
|
|
4846
|
+
output.writeString(viter166);
|
|
4763
4847
|
}
|
|
4764
4848
|
}
|
|
4765
4849
|
output.writeMapEnd();
|
|
@@ -4768,10 +4852,10 @@ TOpenSessionReq.prototype.write = function(output) {
|
|
|
4768
4852
|
if (this.getInfos !== null && this.getInfos !== undefined) {
|
|
4769
4853
|
output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
|
|
4770
4854
|
output.writeListBegin(Thrift.Type.I32, this.getInfos.length);
|
|
4771
|
-
for (var
|
|
4772
|
-
if (this.getInfos.hasOwnProperty(
|
|
4773
|
-
|
|
4774
|
-
output.writeI32(
|
|
4855
|
+
for (var iter167 in this.getInfos) {
|
|
4856
|
+
if (this.getInfos.hasOwnProperty(iter167)) {
|
|
4857
|
+
iter167 = this.getInfos[iter167];
|
|
4858
|
+
output.writeI32(iter167);
|
|
4775
4859
|
}
|
|
4776
4860
|
}
|
|
4777
4861
|
output.writeListEnd();
|
|
@@ -4785,11 +4869,11 @@ TOpenSessionReq.prototype.write = function(output) {
|
|
|
4785
4869
|
if (this.connectionProperties !== null && this.connectionProperties !== undefined) {
|
|
4786
4870
|
output.writeFieldBegin('connectionProperties', Thrift.Type.MAP, 1283);
|
|
4787
4871
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.connectionProperties));
|
|
4788
|
-
for (var
|
|
4789
|
-
if (this.connectionProperties.hasOwnProperty(
|
|
4790
|
-
var
|
|
4791
|
-
output.writeString(
|
|
4792
|
-
output.writeString(
|
|
4872
|
+
for (var kiter168 in this.connectionProperties) {
|
|
4873
|
+
if (this.connectionProperties.hasOwnProperty(kiter168)) {
|
|
4874
|
+
var viter169 = this.connectionProperties[kiter168];
|
|
4875
|
+
output.writeString(kiter168);
|
|
4876
|
+
output.writeString(viter169);
|
|
4793
4877
|
}
|
|
4794
4878
|
}
|
|
4795
4879
|
output.writeMapEnd();
|
|
@@ -4888,14 +4972,14 @@ TOpenSessionResp.prototype.read = function(input) {
|
|
|
4888
4972
|
case 4:
|
|
4889
4973
|
if (ftype == Thrift.Type.MAP) {
|
|
4890
4974
|
this.configuration = {};
|
|
4891
|
-
var
|
|
4892
|
-
var
|
|
4893
|
-
for (var
|
|
4894
|
-
var
|
|
4895
|
-
var
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
this.configuration[
|
|
4975
|
+
var _rtmp3171 = input.readMapBegin();
|
|
4976
|
+
var _size170 = _rtmp3171.size || 0;
|
|
4977
|
+
for (var _i172 = 0; _i172 < _size170; ++_i172) {
|
|
4978
|
+
var key173 = null;
|
|
4979
|
+
var val174 = null;
|
|
4980
|
+
key173 = input.readString();
|
|
4981
|
+
val174 = input.readString();
|
|
4982
|
+
this.configuration[key173] = val174;
|
|
4899
4983
|
}
|
|
4900
4984
|
input.readMapEnd();
|
|
4901
4985
|
} else {
|
|
@@ -4920,13 +5004,13 @@ TOpenSessionResp.prototype.read = function(input) {
|
|
|
4920
5004
|
case 1281:
|
|
4921
5005
|
if (ftype == Thrift.Type.LIST) {
|
|
4922
5006
|
this.getInfos = [];
|
|
4923
|
-
var
|
|
4924
|
-
var
|
|
4925
|
-
for (var
|
|
4926
|
-
var
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
this.getInfos.push(
|
|
5007
|
+
var _rtmp3176 = input.readListBegin();
|
|
5008
|
+
var _size175 = _rtmp3176.size || 0;
|
|
5009
|
+
for (var _i177 = 0; _i177 < _size175; ++_i177) {
|
|
5010
|
+
var elem178 = null;
|
|
5011
|
+
elem178 = new ttypes.TGetInfoValue();
|
|
5012
|
+
elem178.read(input);
|
|
5013
|
+
this.getInfos.push(elem178);
|
|
4930
5014
|
}
|
|
4931
5015
|
input.readListEnd();
|
|
4932
5016
|
} else {
|
|
@@ -4962,11 +5046,11 @@ TOpenSessionResp.prototype.write = function(output) {
|
|
|
4962
5046
|
if (this.configuration !== null && this.configuration !== undefined) {
|
|
4963
5047
|
output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
|
|
4964
5048
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
|
|
4965
|
-
for (var
|
|
4966
|
-
if (this.configuration.hasOwnProperty(
|
|
4967
|
-
var
|
|
4968
|
-
output.writeString(
|
|
4969
|
-
output.writeString(
|
|
5049
|
+
for (var kiter179 in this.configuration) {
|
|
5050
|
+
if (this.configuration.hasOwnProperty(kiter179)) {
|
|
5051
|
+
var viter180 = this.configuration[kiter179];
|
|
5052
|
+
output.writeString(kiter179);
|
|
5053
|
+
output.writeString(viter180);
|
|
4970
5054
|
}
|
|
4971
5055
|
}
|
|
4972
5056
|
output.writeMapEnd();
|
|
@@ -4985,10 +5069,10 @@ TOpenSessionResp.prototype.write = function(output) {
|
|
|
4985
5069
|
if (this.getInfos !== null && this.getInfos !== undefined) {
|
|
4986
5070
|
output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
|
|
4987
5071
|
output.writeListBegin(Thrift.Type.STRUCT, this.getInfos.length);
|
|
4988
|
-
for (var
|
|
4989
|
-
if (this.getInfos.hasOwnProperty(
|
|
4990
|
-
|
|
4991
|
-
|
|
5072
|
+
for (var iter181 in this.getInfos) {
|
|
5073
|
+
if (this.getInfos.hasOwnProperty(iter181)) {
|
|
5074
|
+
iter181 = this.getInfos[iter181];
|
|
5075
|
+
iter181.write(output);
|
|
4992
5076
|
}
|
|
4993
5077
|
}
|
|
4994
5078
|
output.writeListEnd();
|
|
@@ -5675,6 +5759,8 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
|
|
|
5675
5759
|
this.useArrowNativeTypes = null;
|
|
5676
5760
|
this.resultRowLimit = null;
|
|
5677
5761
|
this.parameters = null;
|
|
5762
|
+
this.maxBytesPerBatch = null;
|
|
5763
|
+
this.statementConf = null;
|
|
5678
5764
|
this.operationId = null;
|
|
5679
5765
|
this.sessionConf = null;
|
|
5680
5766
|
this.rejectHighCostQueries = null;
|
|
@@ -5691,6 +5777,10 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
|
|
|
5691
5777
|
this.resultByteLimit = null;
|
|
5692
5778
|
this.resultDataFormat = null;
|
|
5693
5779
|
this.originatingClientIdentity = null;
|
|
5780
|
+
this.preferSingleFileResult = null;
|
|
5781
|
+
this.preferDriverOnlyUpload = null;
|
|
5782
|
+
this.enforceEmbeddedSchemaCorrectness = false;
|
|
5783
|
+
this.idempotencyToken = null;
|
|
5694
5784
|
if (args) {
|
|
5695
5785
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
5696
5786
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -5735,6 +5825,12 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
|
|
|
5735
5825
|
if (args.parameters !== undefined && args.parameters !== null) {
|
|
5736
5826
|
this.parameters = Thrift.copyList(args.parameters, [ttypes.TSparkParameter]);
|
|
5737
5827
|
}
|
|
5828
|
+
if (args.maxBytesPerBatch !== undefined && args.maxBytesPerBatch !== null) {
|
|
5829
|
+
this.maxBytesPerBatch = args.maxBytesPerBatch;
|
|
5830
|
+
}
|
|
5831
|
+
if (args.statementConf !== undefined && args.statementConf !== null) {
|
|
5832
|
+
this.statementConf = new ttypes.TStatementConf(args.statementConf);
|
|
5833
|
+
}
|
|
5738
5834
|
if (args.operationId !== undefined && args.operationId !== null) {
|
|
5739
5835
|
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
5740
5836
|
}
|
|
@@ -5783,6 +5879,18 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
|
|
|
5783
5879
|
if (args.originatingClientIdentity !== undefined && args.originatingClientIdentity !== null) {
|
|
5784
5880
|
this.originatingClientIdentity = args.originatingClientIdentity;
|
|
5785
5881
|
}
|
|
5882
|
+
if (args.preferSingleFileResult !== undefined && args.preferSingleFileResult !== null) {
|
|
5883
|
+
this.preferSingleFileResult = args.preferSingleFileResult;
|
|
5884
|
+
}
|
|
5885
|
+
if (args.preferDriverOnlyUpload !== undefined && args.preferDriverOnlyUpload !== null) {
|
|
5886
|
+
this.preferDriverOnlyUpload = args.preferDriverOnlyUpload;
|
|
5887
|
+
}
|
|
5888
|
+
if (args.enforceEmbeddedSchemaCorrectness !== undefined && args.enforceEmbeddedSchemaCorrectness !== null) {
|
|
5889
|
+
this.enforceEmbeddedSchemaCorrectness = args.enforceEmbeddedSchemaCorrectness;
|
|
5890
|
+
}
|
|
5891
|
+
if (args.idempotencyToken !== undefined && args.idempotencyToken !== null) {
|
|
5892
|
+
this.idempotencyToken = args.idempotencyToken;
|
|
5893
|
+
}
|
|
5786
5894
|
}
|
|
5787
5895
|
};
|
|
5788
5896
|
TExecuteStatementReq.prototype = {};
|
|
@@ -5814,14 +5922,14 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
5814
5922
|
case 3:
|
|
5815
5923
|
if (ftype == Thrift.Type.MAP) {
|
|
5816
5924
|
this.confOverlay = {};
|
|
5817
|
-
var
|
|
5818
|
-
var
|
|
5819
|
-
for (var
|
|
5820
|
-
var
|
|
5821
|
-
var
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
this.confOverlay[
|
|
5925
|
+
var _rtmp3183 = input.readMapBegin();
|
|
5926
|
+
var _size182 = _rtmp3183.size || 0;
|
|
5927
|
+
for (var _i184 = 0; _i184 < _size182; ++_i184) {
|
|
5928
|
+
var key185 = null;
|
|
5929
|
+
var val186 = null;
|
|
5930
|
+
key185 = input.readString();
|
|
5931
|
+
val186 = input.readString();
|
|
5932
|
+
this.confOverlay[key185] = val186;
|
|
5825
5933
|
}
|
|
5826
5934
|
input.readMapEnd();
|
|
5827
5935
|
} else {
|
|
@@ -5896,19 +6004,34 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
5896
6004
|
case 1288:
|
|
5897
6005
|
if (ftype == Thrift.Type.LIST) {
|
|
5898
6006
|
this.parameters = [];
|
|
5899
|
-
var
|
|
5900
|
-
var
|
|
5901
|
-
for (var
|
|
5902
|
-
var
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
this.parameters.push(
|
|
6007
|
+
var _rtmp3188 = input.readListBegin();
|
|
6008
|
+
var _size187 = _rtmp3188.size || 0;
|
|
6009
|
+
for (var _i189 = 0; _i189 < _size187; ++_i189) {
|
|
6010
|
+
var elem190 = null;
|
|
6011
|
+
elem190 = new ttypes.TSparkParameter();
|
|
6012
|
+
elem190.read(input);
|
|
6013
|
+
this.parameters.push(elem190);
|
|
5906
6014
|
}
|
|
5907
6015
|
input.readListEnd();
|
|
5908
6016
|
} else {
|
|
5909
6017
|
input.skip(ftype);
|
|
5910
6018
|
}
|
|
5911
6019
|
break;
|
|
6020
|
+
case 1289:
|
|
6021
|
+
if (ftype == Thrift.Type.I64) {
|
|
6022
|
+
this.maxBytesPerBatch = input.readI64();
|
|
6023
|
+
} else {
|
|
6024
|
+
input.skip(ftype);
|
|
6025
|
+
}
|
|
6026
|
+
break;
|
|
6027
|
+
case 1296:
|
|
6028
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6029
|
+
this.statementConf = new ttypes.TStatementConf();
|
|
6030
|
+
this.statementConf.read(input);
|
|
6031
|
+
} else {
|
|
6032
|
+
input.skip(ftype);
|
|
6033
|
+
}
|
|
6034
|
+
break;
|
|
5912
6035
|
case 3329:
|
|
5913
6036
|
if (ftype == Thrift.Type.STRUCT) {
|
|
5914
6037
|
this.operationId = new ttypes.THandleIdentifier();
|
|
@@ -5984,13 +6107,13 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
5984
6107
|
case 3345:
|
|
5985
6108
|
if (ftype == Thrift.Type.LIST) {
|
|
5986
6109
|
this.statementList = [];
|
|
5987
|
-
var
|
|
5988
|
-
var
|
|
5989
|
-
for (var
|
|
5990
|
-
var
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
this.statementList.push(
|
|
6110
|
+
var _rtmp3192 = input.readListBegin();
|
|
6111
|
+
var _size191 = _rtmp3192.size || 0;
|
|
6112
|
+
for (var _i193 = 0; _i193 < _size191; ++_i193) {
|
|
6113
|
+
var elem194 = null;
|
|
6114
|
+
elem194 = new ttypes.TDBSqlStatement();
|
|
6115
|
+
elem194.read(input);
|
|
6116
|
+
this.statementList.push(elem194);
|
|
5994
6117
|
}
|
|
5995
6118
|
input.readListEnd();
|
|
5996
6119
|
} else {
|
|
@@ -6033,6 +6156,34 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
6033
6156
|
input.skip(ftype);
|
|
6034
6157
|
}
|
|
6035
6158
|
break;
|
|
6159
|
+
case 3351:
|
|
6160
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6161
|
+
this.preferSingleFileResult = input.readBool();
|
|
6162
|
+
} else {
|
|
6163
|
+
input.skip(ftype);
|
|
6164
|
+
}
|
|
6165
|
+
break;
|
|
6166
|
+
case 3352:
|
|
6167
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6168
|
+
this.preferDriverOnlyUpload = input.readBool();
|
|
6169
|
+
} else {
|
|
6170
|
+
input.skip(ftype);
|
|
6171
|
+
}
|
|
6172
|
+
break;
|
|
6173
|
+
case 3353:
|
|
6174
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6175
|
+
this.enforceEmbeddedSchemaCorrectness = input.readBool();
|
|
6176
|
+
} else {
|
|
6177
|
+
input.skip(ftype);
|
|
6178
|
+
}
|
|
6179
|
+
break;
|
|
6180
|
+
case 3360:
|
|
6181
|
+
if (ftype == Thrift.Type.STRING) {
|
|
6182
|
+
this.idempotencyToken = input.readString();
|
|
6183
|
+
} else {
|
|
6184
|
+
input.skip(ftype);
|
|
6185
|
+
}
|
|
6186
|
+
break;
|
|
6036
6187
|
default:
|
|
6037
6188
|
input.skip(ftype);
|
|
6038
6189
|
}
|
|
@@ -6057,11 +6208,11 @@ TExecuteStatementReq.prototype.write = function(output) {
|
|
|
6057
6208
|
if (this.confOverlay !== null && this.confOverlay !== undefined) {
|
|
6058
6209
|
output.writeFieldBegin('confOverlay', Thrift.Type.MAP, 3);
|
|
6059
6210
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confOverlay));
|
|
6060
|
-
for (var
|
|
6061
|
-
if (this.confOverlay.hasOwnProperty(
|
|
6062
|
-
var
|
|
6063
|
-
output.writeString(
|
|
6064
|
-
output.writeString(
|
|
6211
|
+
for (var kiter195 in this.confOverlay) {
|
|
6212
|
+
if (this.confOverlay.hasOwnProperty(kiter195)) {
|
|
6213
|
+
var viter196 = this.confOverlay[kiter195];
|
|
6214
|
+
output.writeString(kiter195);
|
|
6215
|
+
output.writeString(viter196);
|
|
6065
6216
|
}
|
|
6066
6217
|
}
|
|
6067
6218
|
output.writeMapEnd();
|
|
@@ -6115,15 +6266,25 @@ TExecuteStatementReq.prototype.write = function(output) {
|
|
|
6115
6266
|
if (this.parameters !== null && this.parameters !== undefined) {
|
|
6116
6267
|
output.writeFieldBegin('parameters', Thrift.Type.LIST, 1288);
|
|
6117
6268
|
output.writeListBegin(Thrift.Type.STRUCT, this.parameters.length);
|
|
6118
|
-
for (var
|
|
6119
|
-
if (this.parameters.hasOwnProperty(
|
|
6120
|
-
|
|
6121
|
-
|
|
6269
|
+
for (var iter197 in this.parameters) {
|
|
6270
|
+
if (this.parameters.hasOwnProperty(iter197)) {
|
|
6271
|
+
iter197 = this.parameters[iter197];
|
|
6272
|
+
iter197.write(output);
|
|
6122
6273
|
}
|
|
6123
6274
|
}
|
|
6124
6275
|
output.writeListEnd();
|
|
6125
6276
|
output.writeFieldEnd();
|
|
6126
6277
|
}
|
|
6278
|
+
if (this.maxBytesPerBatch !== null && this.maxBytesPerBatch !== undefined) {
|
|
6279
|
+
output.writeFieldBegin('maxBytesPerBatch', Thrift.Type.I64, 1289);
|
|
6280
|
+
output.writeI64(this.maxBytesPerBatch);
|
|
6281
|
+
output.writeFieldEnd();
|
|
6282
|
+
}
|
|
6283
|
+
if (this.statementConf !== null && this.statementConf !== undefined) {
|
|
6284
|
+
output.writeFieldBegin('statementConf', Thrift.Type.STRUCT, 1296);
|
|
6285
|
+
this.statementConf.write(output);
|
|
6286
|
+
output.writeFieldEnd();
|
|
6287
|
+
}
|
|
6127
6288
|
if (this.operationId !== null && this.operationId !== undefined) {
|
|
6128
6289
|
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
6129
6290
|
this.operationId.write(output);
|
|
@@ -6177,10 +6338,10 @@ TExecuteStatementReq.prototype.write = function(output) {
|
|
|
6177
6338
|
if (this.statementList !== null && this.statementList !== undefined) {
|
|
6178
6339
|
output.writeFieldBegin('statementList', Thrift.Type.LIST, 3345);
|
|
6179
6340
|
output.writeListBegin(Thrift.Type.STRUCT, this.statementList.length);
|
|
6180
|
-
for (var
|
|
6181
|
-
if (this.statementList.hasOwnProperty(
|
|
6182
|
-
|
|
6183
|
-
|
|
6341
|
+
for (var iter198 in this.statementList) {
|
|
6342
|
+
if (this.statementList.hasOwnProperty(iter198)) {
|
|
6343
|
+
iter198 = this.statementList[iter198];
|
|
6344
|
+
iter198.write(output);
|
|
6184
6345
|
}
|
|
6185
6346
|
}
|
|
6186
6347
|
output.writeListEnd();
|
|
@@ -6211,6 +6372,26 @@ TExecuteStatementReq.prototype.write = function(output) {
|
|
|
6211
6372
|
output.writeString(this.originatingClientIdentity);
|
|
6212
6373
|
output.writeFieldEnd();
|
|
6213
6374
|
}
|
|
6375
|
+
if (this.preferSingleFileResult !== null && this.preferSingleFileResult !== undefined) {
|
|
6376
|
+
output.writeFieldBegin('preferSingleFileResult', Thrift.Type.BOOL, 3351);
|
|
6377
|
+
output.writeBool(this.preferSingleFileResult);
|
|
6378
|
+
output.writeFieldEnd();
|
|
6379
|
+
}
|
|
6380
|
+
if (this.preferDriverOnlyUpload !== null && this.preferDriverOnlyUpload !== undefined) {
|
|
6381
|
+
output.writeFieldBegin('preferDriverOnlyUpload', Thrift.Type.BOOL, 3352);
|
|
6382
|
+
output.writeBool(this.preferDriverOnlyUpload);
|
|
6383
|
+
output.writeFieldEnd();
|
|
6384
|
+
}
|
|
6385
|
+
if (this.enforceEmbeddedSchemaCorrectness !== null && this.enforceEmbeddedSchemaCorrectness !== undefined) {
|
|
6386
|
+
output.writeFieldBegin('enforceEmbeddedSchemaCorrectness', Thrift.Type.BOOL, 3353);
|
|
6387
|
+
output.writeBool(this.enforceEmbeddedSchemaCorrectness);
|
|
6388
|
+
output.writeFieldEnd();
|
|
6389
|
+
}
|
|
6390
|
+
if (this.idempotencyToken !== null && this.idempotencyToken !== undefined) {
|
|
6391
|
+
output.writeFieldBegin('idempotencyToken', Thrift.Type.STRING, 3360);
|
|
6392
|
+
output.writeString(this.idempotencyToken);
|
|
6393
|
+
output.writeFieldEnd();
|
|
6394
|
+
}
|
|
6214
6395
|
output.writeFieldStop();
|
|
6215
6396
|
output.writeStructEnd();
|
|
6216
6397
|
return;
|
|
@@ -6441,6 +6622,102 @@ TSparkParameter.prototype.write = function(output) {
|
|
|
6441
6622
|
return;
|
|
6442
6623
|
};
|
|
6443
6624
|
|
|
6625
|
+
var TStatementConf = module.exports.TStatementConf = function(args) {
|
|
6626
|
+
this.sessionless = null;
|
|
6627
|
+
this.initialNamespace = null;
|
|
6628
|
+
this.client_protocol = null;
|
|
6629
|
+
this.client_protocol_i64 = null;
|
|
6630
|
+
if (args) {
|
|
6631
|
+
if (args.sessionless !== undefined && args.sessionless !== null) {
|
|
6632
|
+
this.sessionless = args.sessionless;
|
|
6633
|
+
}
|
|
6634
|
+
if (args.initialNamespace !== undefined && args.initialNamespace !== null) {
|
|
6635
|
+
this.initialNamespace = new ttypes.TNamespace(args.initialNamespace);
|
|
6636
|
+
}
|
|
6637
|
+
if (args.client_protocol !== undefined && args.client_protocol !== null) {
|
|
6638
|
+
this.client_protocol = args.client_protocol;
|
|
6639
|
+
}
|
|
6640
|
+
if (args.client_protocol_i64 !== undefined && args.client_protocol_i64 !== null) {
|
|
6641
|
+
this.client_protocol_i64 = args.client_protocol_i64;
|
|
6642
|
+
}
|
|
6643
|
+
}
|
|
6644
|
+
};
|
|
6645
|
+
TStatementConf.prototype = {};
|
|
6646
|
+
TStatementConf.prototype.read = function(input) {
|
|
6647
|
+
input.readStructBegin();
|
|
6648
|
+
while (true) {
|
|
6649
|
+
var ret = input.readFieldBegin();
|
|
6650
|
+
var ftype = ret.ftype;
|
|
6651
|
+
var fid = ret.fid;
|
|
6652
|
+
if (ftype == Thrift.Type.STOP) {
|
|
6653
|
+
break;
|
|
6654
|
+
}
|
|
6655
|
+
switch (fid) {
|
|
6656
|
+
case 1:
|
|
6657
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6658
|
+
this.sessionless = input.readBool();
|
|
6659
|
+
} else {
|
|
6660
|
+
input.skip(ftype);
|
|
6661
|
+
}
|
|
6662
|
+
break;
|
|
6663
|
+
case 2:
|
|
6664
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6665
|
+
this.initialNamespace = new ttypes.TNamespace();
|
|
6666
|
+
this.initialNamespace.read(input);
|
|
6667
|
+
} else {
|
|
6668
|
+
input.skip(ftype);
|
|
6669
|
+
}
|
|
6670
|
+
break;
|
|
6671
|
+
case 3:
|
|
6672
|
+
if (ftype == Thrift.Type.I32) {
|
|
6673
|
+
this.client_protocol = input.readI32();
|
|
6674
|
+
} else {
|
|
6675
|
+
input.skip(ftype);
|
|
6676
|
+
}
|
|
6677
|
+
break;
|
|
6678
|
+
case 4:
|
|
6679
|
+
if (ftype == Thrift.Type.I64) {
|
|
6680
|
+
this.client_protocol_i64 = input.readI64();
|
|
6681
|
+
} else {
|
|
6682
|
+
input.skip(ftype);
|
|
6683
|
+
}
|
|
6684
|
+
break;
|
|
6685
|
+
default:
|
|
6686
|
+
input.skip(ftype);
|
|
6687
|
+
}
|
|
6688
|
+
input.readFieldEnd();
|
|
6689
|
+
}
|
|
6690
|
+
input.readStructEnd();
|
|
6691
|
+
return;
|
|
6692
|
+
};
|
|
6693
|
+
|
|
6694
|
+
TStatementConf.prototype.write = function(output) {
|
|
6695
|
+
output.writeStructBegin('TStatementConf');
|
|
6696
|
+
if (this.sessionless !== null && this.sessionless !== undefined) {
|
|
6697
|
+
output.writeFieldBegin('sessionless', Thrift.Type.BOOL, 1);
|
|
6698
|
+
output.writeBool(this.sessionless);
|
|
6699
|
+
output.writeFieldEnd();
|
|
6700
|
+
}
|
|
6701
|
+
if (this.initialNamespace !== null && this.initialNamespace !== undefined) {
|
|
6702
|
+
output.writeFieldBegin('initialNamespace', Thrift.Type.STRUCT, 2);
|
|
6703
|
+
this.initialNamespace.write(output);
|
|
6704
|
+
output.writeFieldEnd();
|
|
6705
|
+
}
|
|
6706
|
+
if (this.client_protocol !== null && this.client_protocol !== undefined) {
|
|
6707
|
+
output.writeFieldBegin('client_protocol', Thrift.Type.I32, 3);
|
|
6708
|
+
output.writeI32(this.client_protocol);
|
|
6709
|
+
output.writeFieldEnd();
|
|
6710
|
+
}
|
|
6711
|
+
if (this.client_protocol_i64 !== null && this.client_protocol_i64 !== undefined) {
|
|
6712
|
+
output.writeFieldBegin('client_protocol_i64', Thrift.Type.I64, 4);
|
|
6713
|
+
output.writeI64(this.client_protocol_i64);
|
|
6714
|
+
output.writeFieldEnd();
|
|
6715
|
+
}
|
|
6716
|
+
output.writeFieldStop();
|
|
6717
|
+
output.writeStructEnd();
|
|
6718
|
+
return;
|
|
6719
|
+
};
|
|
6720
|
+
|
|
6444
6721
|
var TExecuteStatementResp = module.exports.TExecuteStatementResp = function(args) {
|
|
6445
6722
|
this.status = null;
|
|
6446
6723
|
this.operationHandle = null;
|
|
@@ -6590,13 +6867,13 @@ TExecuteStatementResp.prototype.read = function(input) {
|
|
|
6590
6867
|
case 3337:
|
|
6591
6868
|
if (ftype == Thrift.Type.LIST) {
|
|
6592
6869
|
this.operationHandles = [];
|
|
6593
|
-
var
|
|
6594
|
-
var
|
|
6595
|
-
for (var
|
|
6596
|
-
var
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
this.operationHandles.push(
|
|
6870
|
+
var _rtmp3200 = input.readListBegin();
|
|
6871
|
+
var _size199 = _rtmp3200.size || 0;
|
|
6872
|
+
for (var _i201 = 0; _i201 < _size199; ++_i201) {
|
|
6873
|
+
var elem202 = null;
|
|
6874
|
+
elem202 = new ttypes.TOperationHandle();
|
|
6875
|
+
elem202.read(input);
|
|
6876
|
+
this.operationHandles.push(elem202);
|
|
6600
6877
|
}
|
|
6601
6878
|
input.readListEnd();
|
|
6602
6879
|
} else {
|
|
@@ -6672,10 +6949,10 @@ TExecuteStatementResp.prototype.write = function(output) {
|
|
|
6672
6949
|
if (this.operationHandles !== null && this.operationHandles !== undefined) {
|
|
6673
6950
|
output.writeFieldBegin('operationHandles', Thrift.Type.LIST, 3337);
|
|
6674
6951
|
output.writeListBegin(Thrift.Type.STRUCT, this.operationHandles.length);
|
|
6675
|
-
for (var
|
|
6676
|
-
if (this.operationHandles.hasOwnProperty(
|
|
6677
|
-
|
|
6678
|
-
|
|
6952
|
+
for (var iter203 in this.operationHandles) {
|
|
6953
|
+
if (this.operationHandles.hasOwnProperty(iter203)) {
|
|
6954
|
+
iter203 = this.operationHandles[iter203];
|
|
6955
|
+
iter203.write(output);
|
|
6679
6956
|
}
|
|
6680
6957
|
}
|
|
6681
6958
|
output.writeListEnd();
|
|
@@ -7406,12 +7683,12 @@ TGetTablesReq.prototype.read = function(input) {
|
|
|
7406
7683
|
case 5:
|
|
7407
7684
|
if (ftype == Thrift.Type.LIST) {
|
|
7408
7685
|
this.tableTypes = [];
|
|
7409
|
-
var
|
|
7410
|
-
var
|
|
7411
|
-
for (var
|
|
7412
|
-
var
|
|
7413
|
-
|
|
7414
|
-
this.tableTypes.push(
|
|
7686
|
+
var _rtmp3205 = input.readListBegin();
|
|
7687
|
+
var _size204 = _rtmp3205.size || 0;
|
|
7688
|
+
for (var _i206 = 0; _i206 < _size204; ++_i206) {
|
|
7689
|
+
var elem207 = null;
|
|
7690
|
+
elem207 = input.readString();
|
|
7691
|
+
this.tableTypes.push(elem207);
|
|
7415
7692
|
}
|
|
7416
7693
|
input.readListEnd();
|
|
7417
7694
|
} else {
|
|
@@ -7483,10 +7760,10 @@ TGetTablesReq.prototype.write = function(output) {
|
|
|
7483
7760
|
if (this.tableTypes !== null && this.tableTypes !== undefined) {
|
|
7484
7761
|
output.writeFieldBegin('tableTypes', Thrift.Type.LIST, 5);
|
|
7485
7762
|
output.writeListBegin(Thrift.Type.STRING, this.tableTypes.length);
|
|
7486
|
-
for (var
|
|
7487
|
-
if (this.tableTypes.hasOwnProperty(
|
|
7488
|
-
|
|
7489
|
-
output.writeString(
|
|
7763
|
+
for (var iter208 in this.tableTypes) {
|
|
7764
|
+
if (this.tableTypes.hasOwnProperty(iter208)) {
|
|
7765
|
+
iter208 = this.tableTypes[iter208];
|
|
7766
|
+
output.writeString(iter208);
|
|
7490
7767
|
}
|
|
7491
7768
|
}
|
|
7492
7769
|
output.writeListEnd();
|
|
@@ -8944,6 +9221,7 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
|
|
|
8944
9221
|
this.numModifiedRows = null;
|
|
8945
9222
|
this.displayMessage = null;
|
|
8946
9223
|
this.diagnosticInfo = null;
|
|
9224
|
+
this.errorDetailsJson = null;
|
|
8947
9225
|
this.responseValidation = null;
|
|
8948
9226
|
this.idempotencyType = null;
|
|
8949
9227
|
this.statementTimeout = null;
|
|
@@ -8990,6 +9268,9 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
|
|
|
8990
9268
|
if (args.diagnosticInfo !== undefined && args.diagnosticInfo !== null) {
|
|
8991
9269
|
this.diagnosticInfo = args.diagnosticInfo;
|
|
8992
9270
|
}
|
|
9271
|
+
if (args.errorDetailsJson !== undefined && args.errorDetailsJson !== null) {
|
|
9272
|
+
this.errorDetailsJson = args.errorDetailsJson;
|
|
9273
|
+
}
|
|
8993
9274
|
if (args.responseValidation !== undefined && args.responseValidation !== null) {
|
|
8994
9275
|
this.responseValidation = args.responseValidation;
|
|
8995
9276
|
}
|
|
@@ -9108,6 +9389,13 @@ TGetOperationStatusResp.prototype.read = function(input) {
|
|
|
9108
9389
|
input.skip(ftype);
|
|
9109
9390
|
}
|
|
9110
9391
|
break;
|
|
9392
|
+
case 1283:
|
|
9393
|
+
if (ftype == Thrift.Type.STRING) {
|
|
9394
|
+
this.errorDetailsJson = input.readString();
|
|
9395
|
+
} else {
|
|
9396
|
+
input.skip(ftype);
|
|
9397
|
+
}
|
|
9398
|
+
break;
|
|
9111
9399
|
case 3329:
|
|
9112
9400
|
if (ftype == Thrift.Type.STRING) {
|
|
9113
9401
|
this.responseValidation = input.readBinary();
|
|
@@ -9212,6 +9500,11 @@ TGetOperationStatusResp.prototype.write = function(output) {
|
|
|
9212
9500
|
output.writeString(this.diagnosticInfo);
|
|
9213
9501
|
output.writeFieldEnd();
|
|
9214
9502
|
}
|
|
9503
|
+
if (this.errorDetailsJson !== null && this.errorDetailsJson !== undefined) {
|
|
9504
|
+
output.writeFieldBegin('errorDetailsJson', Thrift.Type.STRING, 1283);
|
|
9505
|
+
output.writeString(this.errorDetailsJson);
|
|
9506
|
+
output.writeFieldEnd();
|
|
9507
|
+
}
|
|
9215
9508
|
if (this.responseValidation !== null && this.responseValidation !== undefined) {
|
|
9216
9509
|
output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
|
|
9217
9510
|
output.writeBinary(this.responseValidation);
|
|
@@ -9565,6 +9858,7 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
|
|
|
9565
9858
|
this.isServerless = null;
|
|
9566
9859
|
this.resultDataFormat = null;
|
|
9567
9860
|
this.truncatedByThriftLimit = null;
|
|
9861
|
+
this.resultByteLimit = null;
|
|
9568
9862
|
if (args) {
|
|
9569
9863
|
if (args.status !== undefined && args.status !== null) {
|
|
9570
9864
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -9628,6 +9922,9 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
|
|
|
9628
9922
|
if (args.truncatedByThriftLimit !== undefined && args.truncatedByThriftLimit !== null) {
|
|
9629
9923
|
this.truncatedByThriftLimit = args.truncatedByThriftLimit;
|
|
9630
9924
|
}
|
|
9925
|
+
if (args.resultByteLimit !== undefined && args.resultByteLimit !== null) {
|
|
9926
|
+
this.resultByteLimit = args.resultByteLimit;
|
|
9927
|
+
}
|
|
9631
9928
|
}
|
|
9632
9929
|
};
|
|
9633
9930
|
TGetResultSetMetadataResp.prototype = {};
|
|
@@ -9716,13 +10013,13 @@ TGetResultSetMetadataResp.prototype.read = function(input) {
|
|
|
9716
10013
|
case 3330:
|
|
9717
10014
|
if (ftype == Thrift.Type.LIST) {
|
|
9718
10015
|
this.resultFiles = [];
|
|
9719
|
-
var
|
|
9720
|
-
var
|
|
9721
|
-
for (var
|
|
9722
|
-
var
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
this.resultFiles.push(
|
|
10016
|
+
var _rtmp3210 = input.readListBegin();
|
|
10017
|
+
var _size209 = _rtmp3210.size || 0;
|
|
10018
|
+
for (var _i211 = 0; _i211 < _size209; ++_i211) {
|
|
10019
|
+
var elem212 = null;
|
|
10020
|
+
elem212 = new ttypes.TDBSqlCloudResultFile();
|
|
10021
|
+
elem212.read(input);
|
|
10022
|
+
this.resultFiles.push(elem212);
|
|
9726
10023
|
}
|
|
9727
10024
|
input.readListEnd();
|
|
9728
10025
|
} else {
|
|
@@ -9793,6 +10090,13 @@ TGetResultSetMetadataResp.prototype.read = function(input) {
|
|
|
9793
10090
|
input.skip(ftype);
|
|
9794
10091
|
}
|
|
9795
10092
|
break;
|
|
10093
|
+
case 3346:
|
|
10094
|
+
if (ftype == Thrift.Type.I64) {
|
|
10095
|
+
this.resultByteLimit = input.readI64();
|
|
10096
|
+
} else {
|
|
10097
|
+
input.skip(ftype);
|
|
10098
|
+
}
|
|
10099
|
+
break;
|
|
9796
10100
|
default:
|
|
9797
10101
|
input.skip(ftype);
|
|
9798
10102
|
}
|
|
@@ -9857,10 +10161,10 @@ TGetResultSetMetadataResp.prototype.write = function(output) {
|
|
|
9857
10161
|
if (this.resultFiles !== null && this.resultFiles !== undefined) {
|
|
9858
10162
|
output.writeFieldBegin('resultFiles', Thrift.Type.LIST, 3330);
|
|
9859
10163
|
output.writeListBegin(Thrift.Type.STRUCT, this.resultFiles.length);
|
|
9860
|
-
for (var
|
|
9861
|
-
if (this.resultFiles.hasOwnProperty(
|
|
9862
|
-
|
|
9863
|
-
|
|
10164
|
+
for (var iter213 in this.resultFiles) {
|
|
10165
|
+
if (this.resultFiles.hasOwnProperty(iter213)) {
|
|
10166
|
+
iter213 = this.resultFiles[iter213];
|
|
10167
|
+
iter213.write(output);
|
|
9864
10168
|
}
|
|
9865
10169
|
}
|
|
9866
10170
|
output.writeListEnd();
|
|
@@ -9911,6 +10215,11 @@ TGetResultSetMetadataResp.prototype.write = function(output) {
|
|
|
9911
10215
|
output.writeBool(this.truncatedByThriftLimit);
|
|
9912
10216
|
output.writeFieldEnd();
|
|
9913
10217
|
}
|
|
10218
|
+
if (this.resultByteLimit !== null && this.resultByteLimit !== undefined) {
|
|
10219
|
+
output.writeFieldBegin('resultByteLimit', Thrift.Type.I64, 3346);
|
|
10220
|
+
output.writeI64(this.resultByteLimit);
|
|
10221
|
+
output.writeFieldEnd();
|
|
10222
|
+
}
|
|
9914
10223
|
output.writeFieldStop();
|
|
9915
10224
|
output.writeStructEnd();
|
|
9916
10225
|
return;
|
|
@@ -10681,12 +10990,12 @@ TProgressUpdateResp.prototype.read = function(input) {
|
|
|
10681
10990
|
case 1:
|
|
10682
10991
|
if (ftype == Thrift.Type.LIST) {
|
|
10683
10992
|
this.headerNames = [];
|
|
10684
|
-
var
|
|
10685
|
-
var
|
|
10686
|
-
for (var
|
|
10687
|
-
var
|
|
10688
|
-
|
|
10689
|
-
this.headerNames.push(
|
|
10993
|
+
var _rtmp3215 = input.readListBegin();
|
|
10994
|
+
var _size214 = _rtmp3215.size || 0;
|
|
10995
|
+
for (var _i216 = 0; _i216 < _size214; ++_i216) {
|
|
10996
|
+
var elem217 = null;
|
|
10997
|
+
elem217 = input.readString();
|
|
10998
|
+
this.headerNames.push(elem217);
|
|
10690
10999
|
}
|
|
10691
11000
|
input.readListEnd();
|
|
10692
11001
|
} else {
|
|
@@ -10696,20 +11005,20 @@ TProgressUpdateResp.prototype.read = function(input) {
|
|
|
10696
11005
|
case 2:
|
|
10697
11006
|
if (ftype == Thrift.Type.LIST) {
|
|
10698
11007
|
this.rows = [];
|
|
10699
|
-
var
|
|
10700
|
-
var
|
|
10701
|
-
for (var
|
|
10702
|
-
var
|
|
10703
|
-
|
|
10704
|
-
var
|
|
10705
|
-
var
|
|
10706
|
-
for (var
|
|
10707
|
-
var
|
|
10708
|
-
|
|
10709
|
-
|
|
11008
|
+
var _rtmp3219 = input.readListBegin();
|
|
11009
|
+
var _size218 = _rtmp3219.size || 0;
|
|
11010
|
+
for (var _i220 = 0; _i220 < _size218; ++_i220) {
|
|
11011
|
+
var elem221 = null;
|
|
11012
|
+
elem221 = [];
|
|
11013
|
+
var _rtmp3223 = input.readListBegin();
|
|
11014
|
+
var _size222 = _rtmp3223.size || 0;
|
|
11015
|
+
for (var _i224 = 0; _i224 < _size222; ++_i224) {
|
|
11016
|
+
var elem225 = null;
|
|
11017
|
+
elem225 = input.readString();
|
|
11018
|
+
elem221.push(elem225);
|
|
10710
11019
|
}
|
|
10711
11020
|
input.readListEnd();
|
|
10712
|
-
this.rows.push(
|
|
11021
|
+
this.rows.push(elem221);
|
|
10713
11022
|
}
|
|
10714
11023
|
input.readListEnd();
|
|
10715
11024
|
} else {
|
|
@@ -10758,10 +11067,10 @@ TProgressUpdateResp.prototype.write = function(output) {
|
|
|
10758
11067
|
if (this.headerNames !== null && this.headerNames !== undefined) {
|
|
10759
11068
|
output.writeFieldBegin('headerNames', Thrift.Type.LIST, 1);
|
|
10760
11069
|
output.writeListBegin(Thrift.Type.STRING, this.headerNames.length);
|
|
10761
|
-
for (var
|
|
10762
|
-
if (this.headerNames.hasOwnProperty(
|
|
10763
|
-
|
|
10764
|
-
output.writeString(
|
|
11070
|
+
for (var iter226 in this.headerNames) {
|
|
11071
|
+
if (this.headerNames.hasOwnProperty(iter226)) {
|
|
11072
|
+
iter226 = this.headerNames[iter226];
|
|
11073
|
+
output.writeString(iter226);
|
|
10765
11074
|
}
|
|
10766
11075
|
}
|
|
10767
11076
|
output.writeListEnd();
|
|
@@ -10770,14 +11079,14 @@ TProgressUpdateResp.prototype.write = function(output) {
|
|
|
10770
11079
|
if (this.rows !== null && this.rows !== undefined) {
|
|
10771
11080
|
output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
|
|
10772
11081
|
output.writeListBegin(Thrift.Type.LIST, this.rows.length);
|
|
10773
|
-
for (var
|
|
10774
|
-
if (this.rows.hasOwnProperty(
|
|
10775
|
-
|
|
10776
|
-
output.writeListBegin(Thrift.Type.STRING,
|
|
10777
|
-
for (var
|
|
10778
|
-
if (
|
|
10779
|
-
|
|
10780
|
-
output.writeString(
|
|
11082
|
+
for (var iter227 in this.rows) {
|
|
11083
|
+
if (this.rows.hasOwnProperty(iter227)) {
|
|
11084
|
+
iter227 = this.rows[iter227];
|
|
11085
|
+
output.writeListBegin(Thrift.Type.STRING, iter227.length);
|
|
11086
|
+
for (var iter228 in iter227) {
|
|
11087
|
+
if (iter227.hasOwnProperty(iter228)) {
|
|
11088
|
+
iter228 = iter227[iter228];
|
|
11089
|
+
output.writeString(iter228);
|
|
10781
11090
|
}
|
|
10782
11091
|
}
|
|
10783
11092
|
output.writeListEnd();
|