@databricks/sql 1.2.1 → 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 +8 -6
- package/dist/DBSQLClient.js +98 -59
- 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/connection/auth/DatabricksOAuth/AuthorizationCode.d.ts +24 -0
- package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.js +165 -0
- package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.d.ts +47 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.js +169 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.d.ts +10 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.js +29 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthScope.d.ts +7 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthScope.js +11 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthScope.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthToken.d.ts +10 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthToken.js +32 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthToken.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/index.d.ts +21 -0
- package/dist/connection/auth/DatabricksOAuth/index.js +41 -0
- package/dist/connection/auth/DatabricksOAuth/index.js.map +1 -0
- package/dist/connection/auth/PlainHttpAuthentication.d.ts +11 -11
- package/dist/connection/auth/PlainHttpAuthentication.js +15 -7
- package/dist/connection/auth/PlainHttpAuthentication.js.map +1 -1
- package/dist/connection/connections/HttpConnection.d.ts +1 -2
- package/dist/connection/connections/HttpConnection.js +24 -14
- package/dist/connection/connections/HttpConnection.js.map +1 -1
- package/dist/connection/contracts/IAuthentication.d.ts +2 -2
- package/dist/connection/contracts/IConnectionOptions.d.ts +3 -1
- package/dist/connection/contracts/IConnectionProvider.d.ts +1 -2
- package/dist/contracts/IDBSQLClient.d.ts +17 -3
- 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 +7 -0
- package/dist/globalConfig.js +7 -0
- package/dist/globalConfig.js.map +1 -1
- package/dist/hive/Commands/BaseCommand.d.ts +3 -1
- package/dist/hive/Commands/BaseCommand.js +66 -4
- package/dist/hive/Commands/BaseCommand.js.map +1 -1
- package/dist/hive/HiveDriver.d.ts +3 -2
- package/dist/hive/HiveDriver.js +116 -44
- package/dist/hive/HiveDriver.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/node_modules/thrift/lib/nodejs/lib/thrift/http_connection.js +8 -0
- package/dist/result/ArrowResult.d.ts +3 -2
- package/dist/result/ArrowResult.js +38 -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/utils/areHeadersEqual.d.ts +2 -0
- package/dist/utils/areHeadersEqual.js +49 -0
- package/dist/utils/areHeadersEqual.js.map +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -2
- package/thrift/TCLIService.d.ts +60 -0
- package/thrift/TCLIService_types.d.ts +206 -14
- package/thrift/TCLIService_types.js +2334 -291
- package/dist/connection/auth/NoSaslAuthentication.d.ts +0 -5
- package/dist/connection/auth/NoSaslAuthentication.js +0 -14
- package/dist/connection/auth/NoSaslAuthentication.js.map +0 -1
- package/dist/connection/auth/helpers/SaslPackageFactory.d.ts +0 -11
- package/dist/connection/auth/helpers/SaslPackageFactory.js +0 -20
- package/dist/connection/auth/helpers/SaslPackageFactory.js.map +0 -1
- package/dist/connection/contracts/ITransport.d.ts +0 -6
- package/dist/connection/contracts/ITransport.js +0 -3
- package/dist/connection/contracts/ITransport.js.map +0 -1
- package/dist/connection/transports/HttpTransport.d.ts +0 -8
- package/dist/connection/transports/HttpTransport.js +0 -18
- package/dist/connection/transports/HttpTransport.js.map +0 -1
- package/dist/connection/types/AuthOptions.d.ts +0 -4
- package/dist/connection/types/AuthOptions.js +0 -3
- package/dist/connection/types/AuthOptions.js.map +0 -1
|
@@ -48,7 +48,9 @@ ttypes.TProtocolVersion = {
|
|
|
48
48
|
'42245' : 'SPARK_CLI_SERVICE_PROTOCOL_V5',
|
|
49
49
|
'SPARK_CLI_SERVICE_PROTOCOL_V5' : 42245,
|
|
50
50
|
'42246' : 'SPARK_CLI_SERVICE_PROTOCOL_V6',
|
|
51
|
-
'SPARK_CLI_SERVICE_PROTOCOL_V6' : 42246
|
|
51
|
+
'SPARK_CLI_SERVICE_PROTOCOL_V6' : 42246,
|
|
52
|
+
'42247' : 'SPARK_CLI_SERVICE_PROTOCOL_V7',
|
|
53
|
+
'SPARK_CLI_SERVICE_PROTOCOL_V7' : 42247
|
|
52
54
|
};
|
|
53
55
|
ttypes.TTypeId = {
|
|
54
56
|
'0' : 'BOOLEAN_TYPE',
|
|
@@ -106,6 +108,20 @@ ttypes.TSparkRowSetType = {
|
|
|
106
108
|
'3' : 'URL_BASED_SET',
|
|
107
109
|
'URL_BASED_SET' : 3
|
|
108
110
|
};
|
|
111
|
+
ttypes.TDBSqlCompressionCodec = {
|
|
112
|
+
'0' : 'NONE',
|
|
113
|
+
'NONE' : 0,
|
|
114
|
+
'1' : 'LZ4_FRAME',
|
|
115
|
+
'LZ4_FRAME' : 1,
|
|
116
|
+
'2' : 'LZ4_BLOCK',
|
|
117
|
+
'LZ4_BLOCK' : 2
|
|
118
|
+
};
|
|
119
|
+
ttypes.TDBSqlArrowLayout = {
|
|
120
|
+
'0' : 'ARROW_BATCH',
|
|
121
|
+
'ARROW_BATCH' : 0,
|
|
122
|
+
'1' : 'ARROW_STREAMING',
|
|
123
|
+
'ARROW_STREAMING' : 1
|
|
124
|
+
};
|
|
109
125
|
ttypes.TOperationIdempotencyType = {
|
|
110
126
|
'0' : 'UNKNOWN',
|
|
111
127
|
'UNKNOWN' : 0,
|
|
@@ -114,6 +130,12 @@ ttypes.TOperationIdempotencyType = {
|
|
|
114
130
|
'2' : 'IDEMPOTENT',
|
|
115
131
|
'IDEMPOTENT' : 2
|
|
116
132
|
};
|
|
133
|
+
ttypes.TOperationTimeoutLevel = {
|
|
134
|
+
'0' : 'CLUSTER',
|
|
135
|
+
'CLUSTER' : 0,
|
|
136
|
+
'1' : 'SESSION',
|
|
137
|
+
'SESSION' : 1
|
|
138
|
+
};
|
|
117
139
|
ttypes.TStatusCode = {
|
|
118
140
|
'0' : 'SUCCESS_STATUS',
|
|
119
141
|
'SUCCESS_STATUS' : 0,
|
|
@@ -262,6 +284,14 @@ ttypes.TGetInfoType = {
|
|
|
262
284
|
'10005' : 'CLI_MAX_IDENTIFIER_LEN',
|
|
263
285
|
'CLI_MAX_IDENTIFIER_LEN' : 10005
|
|
264
286
|
};
|
|
287
|
+
ttypes.TResultPersistenceMode = {
|
|
288
|
+
'0' : 'ONLY_LARGE_RESULTS',
|
|
289
|
+
'ONLY_LARGE_RESULTS' : 0,
|
|
290
|
+
'1' : 'ALL_QUERY_RESULTS',
|
|
291
|
+
'ALL_QUERY_RESULTS' : 1,
|
|
292
|
+
'2' : 'ALL_RESULTS',
|
|
293
|
+
'ALL_RESULTS' : 2
|
|
294
|
+
};
|
|
265
295
|
ttypes.TCacheLookupResult = {
|
|
266
296
|
'0' : 'CACHE_INELIGIBLE',
|
|
267
297
|
'CACHE_INELIGIBLE' : 0,
|
|
@@ -272,6 +302,28 @@ ttypes.TCacheLookupResult = {
|
|
|
272
302
|
'3' : 'CACHE_MISS',
|
|
273
303
|
'CACHE_MISS' : 3
|
|
274
304
|
};
|
|
305
|
+
ttypes.TCloudFetchDisabledReason = {
|
|
306
|
+
'0' : 'ARROW_SUPPORT',
|
|
307
|
+
'ARROW_SUPPORT' : 0,
|
|
308
|
+
'1' : 'CLOUD_FETCH_SUPPORT',
|
|
309
|
+
'CLOUD_FETCH_SUPPORT' : 1,
|
|
310
|
+
'2' : 'PROTOCOL_VERSION',
|
|
311
|
+
'PROTOCOL_VERSION' : 2,
|
|
312
|
+
'3' : 'REGION_SUPPORT',
|
|
313
|
+
'REGION_SUPPORT' : 3,
|
|
314
|
+
'4' : 'BLOCKLISTED_OPERATION',
|
|
315
|
+
'BLOCKLISTED_OPERATION' : 4,
|
|
316
|
+
'5' : 'SMALL_RESULT_SIZE',
|
|
317
|
+
'SMALL_RESULT_SIZE' : 5,
|
|
318
|
+
'6' : 'CUSTOMER_STORAGE_SUPPORT',
|
|
319
|
+
'CUSTOMER_STORAGE_SUPPORT' : 6,
|
|
320
|
+
'7' : 'UNKNOWN',
|
|
321
|
+
'UNKNOWN' : 7
|
|
322
|
+
};
|
|
323
|
+
ttypes.TDBSqlManifestFileFormat = {
|
|
324
|
+
'0' : 'THRIFT_GET_RESULT_SET_METADATA_RESP',
|
|
325
|
+
'THRIFT_GET_RESULT_SET_METADATA_RESP' : 0
|
|
326
|
+
};
|
|
275
327
|
ttypes.TFetchOrientation = {
|
|
276
328
|
'0' : 'FETCH_NEXT',
|
|
277
329
|
'FETCH_NEXT' : 0,
|
|
@@ -286,6 +338,16 @@ ttypes.TFetchOrientation = {
|
|
|
286
338
|
'5' : 'FETCH_LAST',
|
|
287
339
|
'FETCH_LAST' : 5
|
|
288
340
|
};
|
|
341
|
+
ttypes.TDBSqlFetchDisposition = {
|
|
342
|
+
'0' : 'DISPOSITION_UNSPECIFIED',
|
|
343
|
+
'DISPOSITION_UNSPECIFIED' : 0,
|
|
344
|
+
'1' : 'DISPOSITION_INLINE',
|
|
345
|
+
'DISPOSITION_INLINE' : 1,
|
|
346
|
+
'2' : 'DISPOSITION_EXTERNAL_LINKS',
|
|
347
|
+
'DISPOSITION_EXTERNAL_LINKS' : 2,
|
|
348
|
+
'3' : 'DISPOSITION_INTERNAL_DBFS',
|
|
349
|
+
'DISPOSITION_INTERNAL_DBFS' : 3
|
|
350
|
+
};
|
|
289
351
|
ttypes.TJobExecutionStatus = {
|
|
290
352
|
'0' : 'IN_PROGRESS',
|
|
291
353
|
'IN_PROGRESS' : 0,
|
|
@@ -2567,6 +2629,251 @@ TColumn.prototype.write = function(output) {
|
|
|
2567
2629
|
return;
|
|
2568
2630
|
};
|
|
2569
2631
|
|
|
2632
|
+
var TDBSqlJsonArrayFormat = module.exports.TDBSqlJsonArrayFormat = function(args) {
|
|
2633
|
+
this.compressionCodec = null;
|
|
2634
|
+
if (args) {
|
|
2635
|
+
if (args.compressionCodec !== undefined && args.compressionCodec !== null) {
|
|
2636
|
+
this.compressionCodec = args.compressionCodec;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
};
|
|
2640
|
+
TDBSqlJsonArrayFormat.prototype = {};
|
|
2641
|
+
TDBSqlJsonArrayFormat.prototype.read = function(input) {
|
|
2642
|
+
input.readStructBegin();
|
|
2643
|
+
while (true) {
|
|
2644
|
+
var ret = input.readFieldBegin();
|
|
2645
|
+
var ftype = ret.ftype;
|
|
2646
|
+
var fid = ret.fid;
|
|
2647
|
+
if (ftype == Thrift.Type.STOP) {
|
|
2648
|
+
break;
|
|
2649
|
+
}
|
|
2650
|
+
switch (fid) {
|
|
2651
|
+
case 1:
|
|
2652
|
+
if (ftype == Thrift.Type.I32) {
|
|
2653
|
+
this.compressionCodec = input.readI32();
|
|
2654
|
+
} else {
|
|
2655
|
+
input.skip(ftype);
|
|
2656
|
+
}
|
|
2657
|
+
break;
|
|
2658
|
+
case 0:
|
|
2659
|
+
input.skip(ftype);
|
|
2660
|
+
break;
|
|
2661
|
+
default:
|
|
2662
|
+
input.skip(ftype);
|
|
2663
|
+
}
|
|
2664
|
+
input.readFieldEnd();
|
|
2665
|
+
}
|
|
2666
|
+
input.readStructEnd();
|
|
2667
|
+
return;
|
|
2668
|
+
};
|
|
2669
|
+
|
|
2670
|
+
TDBSqlJsonArrayFormat.prototype.write = function(output) {
|
|
2671
|
+
output.writeStructBegin('TDBSqlJsonArrayFormat');
|
|
2672
|
+
if (this.compressionCodec !== null && this.compressionCodec !== undefined) {
|
|
2673
|
+
output.writeFieldBegin('compressionCodec', Thrift.Type.I32, 1);
|
|
2674
|
+
output.writeI32(this.compressionCodec);
|
|
2675
|
+
output.writeFieldEnd();
|
|
2676
|
+
}
|
|
2677
|
+
output.writeFieldStop();
|
|
2678
|
+
output.writeStructEnd();
|
|
2679
|
+
return;
|
|
2680
|
+
};
|
|
2681
|
+
|
|
2682
|
+
var TDBSqlCsvFormat = module.exports.TDBSqlCsvFormat = function(args) {
|
|
2683
|
+
this.compressionCodec = null;
|
|
2684
|
+
if (args) {
|
|
2685
|
+
if (args.compressionCodec !== undefined && args.compressionCodec !== null) {
|
|
2686
|
+
this.compressionCodec = args.compressionCodec;
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
};
|
|
2690
|
+
TDBSqlCsvFormat.prototype = {};
|
|
2691
|
+
TDBSqlCsvFormat.prototype.read = function(input) {
|
|
2692
|
+
input.readStructBegin();
|
|
2693
|
+
while (true) {
|
|
2694
|
+
var ret = input.readFieldBegin();
|
|
2695
|
+
var ftype = ret.ftype;
|
|
2696
|
+
var fid = ret.fid;
|
|
2697
|
+
if (ftype == Thrift.Type.STOP) {
|
|
2698
|
+
break;
|
|
2699
|
+
}
|
|
2700
|
+
switch (fid) {
|
|
2701
|
+
case 1:
|
|
2702
|
+
if (ftype == Thrift.Type.I32) {
|
|
2703
|
+
this.compressionCodec = input.readI32();
|
|
2704
|
+
} else {
|
|
2705
|
+
input.skip(ftype);
|
|
2706
|
+
}
|
|
2707
|
+
break;
|
|
2708
|
+
case 0:
|
|
2709
|
+
input.skip(ftype);
|
|
2710
|
+
break;
|
|
2711
|
+
default:
|
|
2712
|
+
input.skip(ftype);
|
|
2713
|
+
}
|
|
2714
|
+
input.readFieldEnd();
|
|
2715
|
+
}
|
|
2716
|
+
input.readStructEnd();
|
|
2717
|
+
return;
|
|
2718
|
+
};
|
|
2719
|
+
|
|
2720
|
+
TDBSqlCsvFormat.prototype.write = function(output) {
|
|
2721
|
+
output.writeStructBegin('TDBSqlCsvFormat');
|
|
2722
|
+
if (this.compressionCodec !== null && this.compressionCodec !== undefined) {
|
|
2723
|
+
output.writeFieldBegin('compressionCodec', Thrift.Type.I32, 1);
|
|
2724
|
+
output.writeI32(this.compressionCodec);
|
|
2725
|
+
output.writeFieldEnd();
|
|
2726
|
+
}
|
|
2727
|
+
output.writeFieldStop();
|
|
2728
|
+
output.writeStructEnd();
|
|
2729
|
+
return;
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
var TDBSqlArrowFormat = module.exports.TDBSqlArrowFormat = function(args) {
|
|
2733
|
+
this.arrowLayout = null;
|
|
2734
|
+
this.compressionCodec = null;
|
|
2735
|
+
if (args) {
|
|
2736
|
+
if (args.arrowLayout !== undefined && args.arrowLayout !== null) {
|
|
2737
|
+
this.arrowLayout = args.arrowLayout;
|
|
2738
|
+
}
|
|
2739
|
+
if (args.compressionCodec !== undefined && args.compressionCodec !== null) {
|
|
2740
|
+
this.compressionCodec = args.compressionCodec;
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
};
|
|
2744
|
+
TDBSqlArrowFormat.prototype = {};
|
|
2745
|
+
TDBSqlArrowFormat.prototype.read = function(input) {
|
|
2746
|
+
input.readStructBegin();
|
|
2747
|
+
while (true) {
|
|
2748
|
+
var ret = input.readFieldBegin();
|
|
2749
|
+
var ftype = ret.ftype;
|
|
2750
|
+
var fid = ret.fid;
|
|
2751
|
+
if (ftype == Thrift.Type.STOP) {
|
|
2752
|
+
break;
|
|
2753
|
+
}
|
|
2754
|
+
switch (fid) {
|
|
2755
|
+
case 1:
|
|
2756
|
+
if (ftype == Thrift.Type.I32) {
|
|
2757
|
+
this.arrowLayout = input.readI32();
|
|
2758
|
+
} else {
|
|
2759
|
+
input.skip(ftype);
|
|
2760
|
+
}
|
|
2761
|
+
break;
|
|
2762
|
+
case 2:
|
|
2763
|
+
if (ftype == Thrift.Type.I32) {
|
|
2764
|
+
this.compressionCodec = input.readI32();
|
|
2765
|
+
} else {
|
|
2766
|
+
input.skip(ftype);
|
|
2767
|
+
}
|
|
2768
|
+
break;
|
|
2769
|
+
default:
|
|
2770
|
+
input.skip(ftype);
|
|
2771
|
+
}
|
|
2772
|
+
input.readFieldEnd();
|
|
2773
|
+
}
|
|
2774
|
+
input.readStructEnd();
|
|
2775
|
+
return;
|
|
2776
|
+
};
|
|
2777
|
+
|
|
2778
|
+
TDBSqlArrowFormat.prototype.write = function(output) {
|
|
2779
|
+
output.writeStructBegin('TDBSqlArrowFormat');
|
|
2780
|
+
if (this.arrowLayout !== null && this.arrowLayout !== undefined) {
|
|
2781
|
+
output.writeFieldBegin('arrowLayout', Thrift.Type.I32, 1);
|
|
2782
|
+
output.writeI32(this.arrowLayout);
|
|
2783
|
+
output.writeFieldEnd();
|
|
2784
|
+
}
|
|
2785
|
+
if (this.compressionCodec !== null && this.compressionCodec !== undefined) {
|
|
2786
|
+
output.writeFieldBegin('compressionCodec', Thrift.Type.I32, 2);
|
|
2787
|
+
output.writeI32(this.compressionCodec);
|
|
2788
|
+
output.writeFieldEnd();
|
|
2789
|
+
}
|
|
2790
|
+
output.writeFieldStop();
|
|
2791
|
+
output.writeStructEnd();
|
|
2792
|
+
return;
|
|
2793
|
+
};
|
|
2794
|
+
|
|
2795
|
+
var TDBSqlResultFormat = module.exports.TDBSqlResultFormat = function(args) {
|
|
2796
|
+
this.arrowFormat = null;
|
|
2797
|
+
this.csvFormat = null;
|
|
2798
|
+
this.jsonArrayFormat = null;
|
|
2799
|
+
if (args) {
|
|
2800
|
+
if (args.arrowFormat !== undefined && args.arrowFormat !== null) {
|
|
2801
|
+
this.arrowFormat = new ttypes.TDBSqlArrowFormat(args.arrowFormat);
|
|
2802
|
+
}
|
|
2803
|
+
if (args.csvFormat !== undefined && args.csvFormat !== null) {
|
|
2804
|
+
this.csvFormat = new ttypes.TDBSqlCsvFormat(args.csvFormat);
|
|
2805
|
+
}
|
|
2806
|
+
if (args.jsonArrayFormat !== undefined && args.jsonArrayFormat !== null) {
|
|
2807
|
+
this.jsonArrayFormat = new ttypes.TDBSqlJsonArrayFormat(args.jsonArrayFormat);
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
};
|
|
2811
|
+
TDBSqlResultFormat.prototype = {};
|
|
2812
|
+
TDBSqlResultFormat.prototype.read = function(input) {
|
|
2813
|
+
input.readStructBegin();
|
|
2814
|
+
while (true) {
|
|
2815
|
+
var ret = input.readFieldBegin();
|
|
2816
|
+
var ftype = ret.ftype;
|
|
2817
|
+
var fid = ret.fid;
|
|
2818
|
+
if (ftype == Thrift.Type.STOP) {
|
|
2819
|
+
break;
|
|
2820
|
+
}
|
|
2821
|
+
switch (fid) {
|
|
2822
|
+
case 1:
|
|
2823
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
2824
|
+
this.arrowFormat = new ttypes.TDBSqlArrowFormat();
|
|
2825
|
+
this.arrowFormat.read(input);
|
|
2826
|
+
} else {
|
|
2827
|
+
input.skip(ftype);
|
|
2828
|
+
}
|
|
2829
|
+
break;
|
|
2830
|
+
case 2:
|
|
2831
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
2832
|
+
this.csvFormat = new ttypes.TDBSqlCsvFormat();
|
|
2833
|
+
this.csvFormat.read(input);
|
|
2834
|
+
} else {
|
|
2835
|
+
input.skip(ftype);
|
|
2836
|
+
}
|
|
2837
|
+
break;
|
|
2838
|
+
case 3:
|
|
2839
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
2840
|
+
this.jsonArrayFormat = new ttypes.TDBSqlJsonArrayFormat();
|
|
2841
|
+
this.jsonArrayFormat.read(input);
|
|
2842
|
+
} else {
|
|
2843
|
+
input.skip(ftype);
|
|
2844
|
+
}
|
|
2845
|
+
break;
|
|
2846
|
+
default:
|
|
2847
|
+
input.skip(ftype);
|
|
2848
|
+
}
|
|
2849
|
+
input.readFieldEnd();
|
|
2850
|
+
}
|
|
2851
|
+
input.readStructEnd();
|
|
2852
|
+
return;
|
|
2853
|
+
};
|
|
2854
|
+
|
|
2855
|
+
TDBSqlResultFormat.prototype.write = function(output) {
|
|
2856
|
+
output.writeStructBegin('TDBSqlResultFormat');
|
|
2857
|
+
if (this.arrowFormat !== null && this.arrowFormat !== undefined) {
|
|
2858
|
+
output.writeFieldBegin('arrowFormat', Thrift.Type.STRUCT, 1);
|
|
2859
|
+
this.arrowFormat.write(output);
|
|
2860
|
+
output.writeFieldEnd();
|
|
2861
|
+
}
|
|
2862
|
+
if (this.csvFormat !== null && this.csvFormat !== undefined) {
|
|
2863
|
+
output.writeFieldBegin('csvFormat', Thrift.Type.STRUCT, 2);
|
|
2864
|
+
this.csvFormat.write(output);
|
|
2865
|
+
output.writeFieldEnd();
|
|
2866
|
+
}
|
|
2867
|
+
if (this.jsonArrayFormat !== null && this.jsonArrayFormat !== undefined) {
|
|
2868
|
+
output.writeFieldBegin('jsonArrayFormat', Thrift.Type.STRUCT, 3);
|
|
2869
|
+
this.jsonArrayFormat.write(output);
|
|
2870
|
+
output.writeFieldEnd();
|
|
2871
|
+
}
|
|
2872
|
+
output.writeFieldStop();
|
|
2873
|
+
output.writeStructEnd();
|
|
2874
|
+
return;
|
|
2875
|
+
};
|
|
2876
|
+
|
|
2570
2877
|
var TSparkArrowBatch = module.exports.TSparkArrowBatch = function(args) {
|
|
2571
2878
|
this.batch = null;
|
|
2572
2879
|
this.rowCount = null;
|
|
@@ -2640,6 +2947,7 @@ var TSparkArrowResultLink = module.exports.TSparkArrowResultLink = function(args
|
|
|
2640
2947
|
this.startRowOffset = null;
|
|
2641
2948
|
this.rowCount = null;
|
|
2642
2949
|
this.bytesNum = null;
|
|
2950
|
+
this.httpHeaders = null;
|
|
2643
2951
|
if (args) {
|
|
2644
2952
|
if (args.fileLink !== undefined && args.fileLink !== null) {
|
|
2645
2953
|
this.fileLink = args.fileLink;
|
|
@@ -2666,6 +2974,9 @@ var TSparkArrowResultLink = module.exports.TSparkArrowResultLink = function(args
|
|
|
2666
2974
|
} else {
|
|
2667
2975
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field bytesNum is unset!');
|
|
2668
2976
|
}
|
|
2977
|
+
if (args.httpHeaders !== undefined && args.httpHeaders !== null) {
|
|
2978
|
+
this.httpHeaders = Thrift.copyMap(args.httpHeaders, [null]);
|
|
2979
|
+
}
|
|
2669
2980
|
}
|
|
2670
2981
|
};
|
|
2671
2982
|
TSparkArrowResultLink.prototype = {};
|
|
@@ -2714,6 +3025,23 @@ TSparkArrowResultLink.prototype.read = function(input) {
|
|
|
2714
3025
|
input.skip(ftype);
|
|
2715
3026
|
}
|
|
2716
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;
|
|
2717
3045
|
default:
|
|
2718
3046
|
input.skip(ftype);
|
|
2719
3047
|
}
|
|
@@ -2750,49 +3078,62 @@ TSparkArrowResultLink.prototype.write = function(output) {
|
|
|
2750
3078
|
output.writeI64(this.bytesNum);
|
|
2751
3079
|
output.writeFieldEnd();
|
|
2752
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
|
+
}
|
|
2753
3094
|
output.writeFieldStop();
|
|
2754
3095
|
output.writeStructEnd();
|
|
2755
3096
|
return;
|
|
2756
3097
|
};
|
|
2757
3098
|
|
|
2758
|
-
var
|
|
3099
|
+
var TDBSqlCloudResultFile = module.exports.TDBSqlCloudResultFile = function(args) {
|
|
3100
|
+
this.filePath = null;
|
|
2759
3101
|
this.startRowOffset = null;
|
|
2760
|
-
this.
|
|
2761
|
-
this.
|
|
2762
|
-
this.
|
|
2763
|
-
this.
|
|
2764
|
-
this.
|
|
2765
|
-
this.
|
|
3102
|
+
this.rowCount = null;
|
|
3103
|
+
this.uncompressedBytes = null;
|
|
3104
|
+
this.compressedBytes = null;
|
|
3105
|
+
this.fileLink = null;
|
|
3106
|
+
this.linkExpiryTime = null;
|
|
3107
|
+
this.httpHeaders = null;
|
|
2766
3108
|
if (args) {
|
|
3109
|
+
if (args.filePath !== undefined && args.filePath !== null) {
|
|
3110
|
+
this.filePath = args.filePath;
|
|
3111
|
+
}
|
|
2767
3112
|
if (args.startRowOffset !== undefined && args.startRowOffset !== null) {
|
|
2768
3113
|
this.startRowOffset = args.startRowOffset;
|
|
2769
|
-
} else {
|
|
2770
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field startRowOffset is unset!');
|
|
2771
3114
|
}
|
|
2772
|
-
if (args.
|
|
2773
|
-
this.
|
|
2774
|
-
} else {
|
|
2775
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field rows is unset!');
|
|
3115
|
+
if (args.rowCount !== undefined && args.rowCount !== null) {
|
|
3116
|
+
this.rowCount = args.rowCount;
|
|
2776
3117
|
}
|
|
2777
|
-
if (args.
|
|
2778
|
-
this.
|
|
3118
|
+
if (args.uncompressedBytes !== undefined && args.uncompressedBytes !== null) {
|
|
3119
|
+
this.uncompressedBytes = args.uncompressedBytes;
|
|
2779
3120
|
}
|
|
2780
|
-
if (args.
|
|
2781
|
-
this.
|
|
3121
|
+
if (args.compressedBytes !== undefined && args.compressedBytes !== null) {
|
|
3122
|
+
this.compressedBytes = args.compressedBytes;
|
|
2782
3123
|
}
|
|
2783
|
-
if (args.
|
|
2784
|
-
this.
|
|
3124
|
+
if (args.fileLink !== undefined && args.fileLink !== null) {
|
|
3125
|
+
this.fileLink = args.fileLink;
|
|
2785
3126
|
}
|
|
2786
|
-
if (args.
|
|
2787
|
-
this.
|
|
3127
|
+
if (args.linkExpiryTime !== undefined && args.linkExpiryTime !== null) {
|
|
3128
|
+
this.linkExpiryTime = args.linkExpiryTime;
|
|
2788
3129
|
}
|
|
2789
|
-
if (args.
|
|
2790
|
-
this.
|
|
3130
|
+
if (args.httpHeaders !== undefined && args.httpHeaders !== null) {
|
|
3131
|
+
this.httpHeaders = Thrift.copyMap(args.httpHeaders, [null]);
|
|
2791
3132
|
}
|
|
2792
3133
|
}
|
|
2793
3134
|
};
|
|
2794
|
-
|
|
2795
|
-
|
|
3135
|
+
TDBSqlCloudResultFile.prototype = {};
|
|
3136
|
+
TDBSqlCloudResultFile.prototype.read = function(input) {
|
|
2796
3137
|
input.readStructBegin();
|
|
2797
3138
|
while (true) {
|
|
2798
3139
|
var ret = input.readFieldBegin();
|
|
@@ -2803,54 +3144,235 @@ TRowSet.prototype.read = function(input) {
|
|
|
2803
3144
|
}
|
|
2804
3145
|
switch (fid) {
|
|
2805
3146
|
case 1:
|
|
2806
|
-
if (ftype == Thrift.Type.
|
|
2807
|
-
this.
|
|
3147
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3148
|
+
this.filePath = input.readString();
|
|
2808
3149
|
} else {
|
|
2809
3150
|
input.skip(ftype);
|
|
2810
3151
|
}
|
|
2811
3152
|
break;
|
|
2812
3153
|
case 2:
|
|
2813
|
-
if (ftype == Thrift.Type.
|
|
2814
|
-
this.
|
|
2815
|
-
var _rtmp377 = input.readListBegin();
|
|
2816
|
-
var _size76 = _rtmp377.size || 0;
|
|
2817
|
-
for (var _i78 = 0; _i78 < _size76; ++_i78) {
|
|
2818
|
-
var elem79 = null;
|
|
2819
|
-
elem79 = new ttypes.TRow();
|
|
2820
|
-
elem79.read(input);
|
|
2821
|
-
this.rows.push(elem79);
|
|
2822
|
-
}
|
|
2823
|
-
input.readListEnd();
|
|
3154
|
+
if (ftype == Thrift.Type.I64) {
|
|
3155
|
+
this.startRowOffset = input.readI64();
|
|
2824
3156
|
} else {
|
|
2825
3157
|
input.skip(ftype);
|
|
2826
3158
|
}
|
|
2827
3159
|
break;
|
|
2828
3160
|
case 3:
|
|
2829
|
-
if (ftype == Thrift.Type.
|
|
2830
|
-
this.
|
|
2831
|
-
var _rtmp381 = input.readListBegin();
|
|
2832
|
-
var _size80 = _rtmp381.size || 0;
|
|
2833
|
-
for (var _i82 = 0; _i82 < _size80; ++_i82) {
|
|
2834
|
-
var elem83 = null;
|
|
2835
|
-
elem83 = new ttypes.TColumn();
|
|
2836
|
-
elem83.read(input);
|
|
2837
|
-
this.columns.push(elem83);
|
|
2838
|
-
}
|
|
2839
|
-
input.readListEnd();
|
|
3161
|
+
if (ftype == Thrift.Type.I64) {
|
|
3162
|
+
this.rowCount = input.readI64();
|
|
2840
3163
|
} else {
|
|
2841
3164
|
input.skip(ftype);
|
|
2842
3165
|
}
|
|
2843
3166
|
break;
|
|
2844
3167
|
case 4:
|
|
2845
|
-
if (ftype == Thrift.Type.
|
|
2846
|
-
this.
|
|
3168
|
+
if (ftype == Thrift.Type.I64) {
|
|
3169
|
+
this.uncompressedBytes = input.readI64();
|
|
2847
3170
|
} else {
|
|
2848
3171
|
input.skip(ftype);
|
|
2849
3172
|
}
|
|
2850
3173
|
break;
|
|
2851
3174
|
case 5:
|
|
2852
|
-
if (ftype == Thrift.Type.
|
|
2853
|
-
this.
|
|
3175
|
+
if (ftype == Thrift.Type.I64) {
|
|
3176
|
+
this.compressedBytes = input.readI64();
|
|
3177
|
+
} else {
|
|
3178
|
+
input.skip(ftype);
|
|
3179
|
+
}
|
|
3180
|
+
break;
|
|
3181
|
+
case 6:
|
|
3182
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3183
|
+
this.fileLink = input.readString();
|
|
3184
|
+
} else {
|
|
3185
|
+
input.skip(ftype);
|
|
3186
|
+
}
|
|
3187
|
+
break;
|
|
3188
|
+
case 7:
|
|
3189
|
+
if (ftype == Thrift.Type.I64) {
|
|
3190
|
+
this.linkExpiryTime = input.readI64();
|
|
3191
|
+
} else {
|
|
3192
|
+
input.skip(ftype);
|
|
3193
|
+
}
|
|
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;
|
|
3212
|
+
default:
|
|
3213
|
+
input.skip(ftype);
|
|
3214
|
+
}
|
|
3215
|
+
input.readFieldEnd();
|
|
3216
|
+
}
|
|
3217
|
+
input.readStructEnd();
|
|
3218
|
+
return;
|
|
3219
|
+
};
|
|
3220
|
+
|
|
3221
|
+
TDBSqlCloudResultFile.prototype.write = function(output) {
|
|
3222
|
+
output.writeStructBegin('TDBSqlCloudResultFile');
|
|
3223
|
+
if (this.filePath !== null && this.filePath !== undefined) {
|
|
3224
|
+
output.writeFieldBegin('filePath', Thrift.Type.STRING, 1);
|
|
3225
|
+
output.writeString(this.filePath);
|
|
3226
|
+
output.writeFieldEnd();
|
|
3227
|
+
}
|
|
3228
|
+
if (this.startRowOffset !== null && this.startRowOffset !== undefined) {
|
|
3229
|
+
output.writeFieldBegin('startRowOffset', Thrift.Type.I64, 2);
|
|
3230
|
+
output.writeI64(this.startRowOffset);
|
|
3231
|
+
output.writeFieldEnd();
|
|
3232
|
+
}
|
|
3233
|
+
if (this.rowCount !== null && this.rowCount !== undefined) {
|
|
3234
|
+
output.writeFieldBegin('rowCount', Thrift.Type.I64, 3);
|
|
3235
|
+
output.writeI64(this.rowCount);
|
|
3236
|
+
output.writeFieldEnd();
|
|
3237
|
+
}
|
|
3238
|
+
if (this.uncompressedBytes !== null && this.uncompressedBytes !== undefined) {
|
|
3239
|
+
output.writeFieldBegin('uncompressedBytes', Thrift.Type.I64, 4);
|
|
3240
|
+
output.writeI64(this.uncompressedBytes);
|
|
3241
|
+
output.writeFieldEnd();
|
|
3242
|
+
}
|
|
3243
|
+
if (this.compressedBytes !== null && this.compressedBytes !== undefined) {
|
|
3244
|
+
output.writeFieldBegin('compressedBytes', Thrift.Type.I64, 5);
|
|
3245
|
+
output.writeI64(this.compressedBytes);
|
|
3246
|
+
output.writeFieldEnd();
|
|
3247
|
+
}
|
|
3248
|
+
if (this.fileLink !== null && this.fileLink !== undefined) {
|
|
3249
|
+
output.writeFieldBegin('fileLink', Thrift.Type.STRING, 6);
|
|
3250
|
+
output.writeString(this.fileLink);
|
|
3251
|
+
output.writeFieldEnd();
|
|
3252
|
+
}
|
|
3253
|
+
if (this.linkExpiryTime !== null && this.linkExpiryTime !== undefined) {
|
|
3254
|
+
output.writeFieldBegin('linkExpiryTime', Thrift.Type.I64, 7);
|
|
3255
|
+
output.writeI64(this.linkExpiryTime);
|
|
3256
|
+
output.writeFieldEnd();
|
|
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
|
+
}
|
|
3271
|
+
output.writeFieldStop();
|
|
3272
|
+
output.writeStructEnd();
|
|
3273
|
+
return;
|
|
3274
|
+
};
|
|
3275
|
+
|
|
3276
|
+
var TRowSet = module.exports.TRowSet = function(args) {
|
|
3277
|
+
this.startRowOffset = null;
|
|
3278
|
+
this.rows = null;
|
|
3279
|
+
this.columns = null;
|
|
3280
|
+
this.binaryColumns = null;
|
|
3281
|
+
this.columnCount = null;
|
|
3282
|
+
this.arrowBatches = null;
|
|
3283
|
+
this.resultLinks = null;
|
|
3284
|
+
this.cloudFetchResults = null;
|
|
3285
|
+
if (args) {
|
|
3286
|
+
if (args.startRowOffset !== undefined && args.startRowOffset !== null) {
|
|
3287
|
+
this.startRowOffset = args.startRowOffset;
|
|
3288
|
+
} else {
|
|
3289
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field startRowOffset is unset!');
|
|
3290
|
+
}
|
|
3291
|
+
if (args.rows !== undefined && args.rows !== null) {
|
|
3292
|
+
this.rows = Thrift.copyList(args.rows, [ttypes.TRow]);
|
|
3293
|
+
} else {
|
|
3294
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field rows is unset!');
|
|
3295
|
+
}
|
|
3296
|
+
if (args.columns !== undefined && args.columns !== null) {
|
|
3297
|
+
this.columns = Thrift.copyList(args.columns, [ttypes.TColumn]);
|
|
3298
|
+
}
|
|
3299
|
+
if (args.binaryColumns !== undefined && args.binaryColumns !== null) {
|
|
3300
|
+
this.binaryColumns = args.binaryColumns;
|
|
3301
|
+
}
|
|
3302
|
+
if (args.columnCount !== undefined && args.columnCount !== null) {
|
|
3303
|
+
this.columnCount = args.columnCount;
|
|
3304
|
+
}
|
|
3305
|
+
if (args.arrowBatches !== undefined && args.arrowBatches !== null) {
|
|
3306
|
+
this.arrowBatches = Thrift.copyList(args.arrowBatches, [ttypes.TSparkArrowBatch]);
|
|
3307
|
+
}
|
|
3308
|
+
if (args.resultLinks !== undefined && args.resultLinks !== null) {
|
|
3309
|
+
this.resultLinks = Thrift.copyList(args.resultLinks, [ttypes.TSparkArrowResultLink]);
|
|
3310
|
+
}
|
|
3311
|
+
if (args.cloudFetchResults !== undefined && args.cloudFetchResults !== null) {
|
|
3312
|
+
this.cloudFetchResults = Thrift.copyList(args.cloudFetchResults, [ttypes.TDBSqlCloudResultFile]);
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
};
|
|
3316
|
+
TRowSet.prototype = {};
|
|
3317
|
+
TRowSet.prototype.read = function(input) {
|
|
3318
|
+
input.readStructBegin();
|
|
3319
|
+
while (true) {
|
|
3320
|
+
var ret = input.readFieldBegin();
|
|
3321
|
+
var ftype = ret.ftype;
|
|
3322
|
+
var fid = ret.fid;
|
|
3323
|
+
if (ftype == Thrift.Type.STOP) {
|
|
3324
|
+
break;
|
|
3325
|
+
}
|
|
3326
|
+
switch (fid) {
|
|
3327
|
+
case 1:
|
|
3328
|
+
if (ftype == Thrift.Type.I64) {
|
|
3329
|
+
this.startRowOffset = input.readI64();
|
|
3330
|
+
} else {
|
|
3331
|
+
input.skip(ftype);
|
|
3332
|
+
}
|
|
3333
|
+
break;
|
|
3334
|
+
case 2:
|
|
3335
|
+
if (ftype == Thrift.Type.LIST) {
|
|
3336
|
+
this.rows = [];
|
|
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);
|
|
3344
|
+
}
|
|
3345
|
+
input.readListEnd();
|
|
3346
|
+
} else {
|
|
3347
|
+
input.skip(ftype);
|
|
3348
|
+
}
|
|
3349
|
+
break;
|
|
3350
|
+
case 3:
|
|
3351
|
+
if (ftype == Thrift.Type.LIST) {
|
|
3352
|
+
this.columns = [];
|
|
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);
|
|
3360
|
+
}
|
|
3361
|
+
input.readListEnd();
|
|
3362
|
+
} else {
|
|
3363
|
+
input.skip(ftype);
|
|
3364
|
+
}
|
|
3365
|
+
break;
|
|
3366
|
+
case 4:
|
|
3367
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3368
|
+
this.binaryColumns = input.readBinary();
|
|
3369
|
+
} else {
|
|
3370
|
+
input.skip(ftype);
|
|
3371
|
+
}
|
|
3372
|
+
break;
|
|
3373
|
+
case 5:
|
|
3374
|
+
if (ftype == Thrift.Type.I32) {
|
|
3375
|
+
this.columnCount = input.readI32();
|
|
2854
3376
|
} else {
|
|
2855
3377
|
input.skip(ftype);
|
|
2856
3378
|
}
|
|
@@ -2858,13 +3380,13 @@ TRowSet.prototype.read = function(input) {
|
|
|
2858
3380
|
case 1281:
|
|
2859
3381
|
if (ftype == Thrift.Type.LIST) {
|
|
2860
3382
|
this.arrowBatches = [];
|
|
2861
|
-
var
|
|
2862
|
-
var
|
|
2863
|
-
for (var
|
|
2864
|
-
var
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
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);
|
|
2868
3390
|
}
|
|
2869
3391
|
input.readListEnd();
|
|
2870
3392
|
} else {
|
|
@@ -2874,13 +3396,29 @@ TRowSet.prototype.read = function(input) {
|
|
|
2874
3396
|
case 1282:
|
|
2875
3397
|
if (ftype == Thrift.Type.LIST) {
|
|
2876
3398
|
this.resultLinks = [];
|
|
2877
|
-
var
|
|
2878
|
-
var
|
|
2879
|
-
for (var
|
|
2880
|
-
var
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
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);
|
|
3406
|
+
}
|
|
3407
|
+
input.readListEnd();
|
|
3408
|
+
} else {
|
|
3409
|
+
input.skip(ftype);
|
|
3410
|
+
}
|
|
3411
|
+
break;
|
|
3412
|
+
case 3329:
|
|
3413
|
+
if (ftype == Thrift.Type.LIST) {
|
|
3414
|
+
this.cloudFetchResults = [];
|
|
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);
|
|
2884
3422
|
}
|
|
2885
3423
|
input.readListEnd();
|
|
2886
3424
|
} else {
|
|
@@ -2906,10 +3444,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
2906
3444
|
if (this.rows !== null && this.rows !== undefined) {
|
|
2907
3445
|
output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
|
|
2908
3446
|
output.writeListBegin(Thrift.Type.STRUCT, this.rows.length);
|
|
2909
|
-
for (var
|
|
2910
|
-
if (this.rows.hasOwnProperty(
|
|
2911
|
-
|
|
2912
|
-
|
|
3447
|
+
for (var iter110 in this.rows) {
|
|
3448
|
+
if (this.rows.hasOwnProperty(iter110)) {
|
|
3449
|
+
iter110 = this.rows[iter110];
|
|
3450
|
+
iter110.write(output);
|
|
2913
3451
|
}
|
|
2914
3452
|
}
|
|
2915
3453
|
output.writeListEnd();
|
|
@@ -2918,10 +3456,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
2918
3456
|
if (this.columns !== null && this.columns !== undefined) {
|
|
2919
3457
|
output.writeFieldBegin('columns', Thrift.Type.LIST, 3);
|
|
2920
3458
|
output.writeListBegin(Thrift.Type.STRUCT, this.columns.length);
|
|
2921
|
-
for (var
|
|
2922
|
-
if (this.columns.hasOwnProperty(
|
|
2923
|
-
|
|
2924
|
-
|
|
3459
|
+
for (var iter111 in this.columns) {
|
|
3460
|
+
if (this.columns.hasOwnProperty(iter111)) {
|
|
3461
|
+
iter111 = this.columns[iter111];
|
|
3462
|
+
iter111.write(output);
|
|
2925
3463
|
}
|
|
2926
3464
|
}
|
|
2927
3465
|
output.writeListEnd();
|
|
@@ -2940,10 +3478,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
2940
3478
|
if (this.arrowBatches !== null && this.arrowBatches !== undefined) {
|
|
2941
3479
|
output.writeFieldBegin('arrowBatches', Thrift.Type.LIST, 1281);
|
|
2942
3480
|
output.writeListBegin(Thrift.Type.STRUCT, this.arrowBatches.length);
|
|
2943
|
-
for (var
|
|
2944
|
-
if (this.arrowBatches.hasOwnProperty(
|
|
2945
|
-
|
|
2946
|
-
|
|
3481
|
+
for (var iter112 in this.arrowBatches) {
|
|
3482
|
+
if (this.arrowBatches.hasOwnProperty(iter112)) {
|
|
3483
|
+
iter112 = this.arrowBatches[iter112];
|
|
3484
|
+
iter112.write(output);
|
|
2947
3485
|
}
|
|
2948
3486
|
}
|
|
2949
3487
|
output.writeListEnd();
|
|
@@ -2952,10 +3490,22 @@ TRowSet.prototype.write = function(output) {
|
|
|
2952
3490
|
if (this.resultLinks !== null && this.resultLinks !== undefined) {
|
|
2953
3491
|
output.writeFieldBegin('resultLinks', Thrift.Type.LIST, 1282);
|
|
2954
3492
|
output.writeListBegin(Thrift.Type.STRUCT, this.resultLinks.length);
|
|
2955
|
-
for (var
|
|
2956
|
-
if (this.resultLinks.hasOwnProperty(
|
|
2957
|
-
|
|
2958
|
-
|
|
3493
|
+
for (var iter113 in this.resultLinks) {
|
|
3494
|
+
if (this.resultLinks.hasOwnProperty(iter113)) {
|
|
3495
|
+
iter113 = this.resultLinks[iter113];
|
|
3496
|
+
iter113.write(output);
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
output.writeListEnd();
|
|
3500
|
+
output.writeFieldEnd();
|
|
3501
|
+
}
|
|
3502
|
+
if (this.cloudFetchResults !== null && this.cloudFetchResults !== undefined) {
|
|
3503
|
+
output.writeFieldBegin('cloudFetchResults', Thrift.Type.LIST, 3329);
|
|
3504
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.cloudFetchResults.length);
|
|
3505
|
+
for (var iter114 in this.cloudFetchResults) {
|
|
3506
|
+
if (this.cloudFetchResults.hasOwnProperty(iter114)) {
|
|
3507
|
+
iter114 = this.cloudFetchResults[iter114];
|
|
3508
|
+
iter114.write(output);
|
|
2959
3509
|
}
|
|
2960
3510
|
}
|
|
2961
3511
|
output.writeListEnd();
|
|
@@ -3014,14 +3564,14 @@ TDBSqlTempView.prototype.read = function(input) {
|
|
|
3014
3564
|
case 3:
|
|
3015
3565
|
if (ftype == Thrift.Type.MAP) {
|
|
3016
3566
|
this.properties = {};
|
|
3017
|
-
var
|
|
3018
|
-
var
|
|
3019
|
-
for (var
|
|
3020
|
-
var
|
|
3021
|
-
var
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
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;
|
|
3025
3575
|
}
|
|
3026
3576
|
input.readMapEnd();
|
|
3027
3577
|
} else {
|
|
@@ -3059,11 +3609,11 @@ TDBSqlTempView.prototype.write = function(output) {
|
|
|
3059
3609
|
if (this.properties !== null && this.properties !== undefined) {
|
|
3060
3610
|
output.writeFieldBegin('properties', Thrift.Type.MAP, 3);
|
|
3061
3611
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.properties));
|
|
3062
|
-
for (var
|
|
3063
|
-
if (this.properties.hasOwnProperty(
|
|
3064
|
-
var
|
|
3065
|
-
output.writeString(
|
|
3066
|
-
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);
|
|
3067
3617
|
}
|
|
3068
3618
|
}
|
|
3069
3619
|
output.writeMapEnd();
|
|
@@ -3129,32 +3679,60 @@ TDBSqlSessionCapabilities.prototype.write = function(output) {
|
|
|
3129
3679
|
return;
|
|
3130
3680
|
};
|
|
3131
3681
|
|
|
3132
|
-
var
|
|
3133
|
-
this.
|
|
3134
|
-
this.
|
|
3135
|
-
this.
|
|
3136
|
-
this.
|
|
3137
|
-
this.
|
|
3682
|
+
var TExpressionInfo = module.exports.TExpressionInfo = function(args) {
|
|
3683
|
+
this.className = null;
|
|
3684
|
+
this.usage = null;
|
|
3685
|
+
this.name = null;
|
|
3686
|
+
this.extended = null;
|
|
3687
|
+
this.db = null;
|
|
3688
|
+
this.arguments = null;
|
|
3689
|
+
this.examples = null;
|
|
3690
|
+
this.note = null;
|
|
3691
|
+
this.group = null;
|
|
3692
|
+
this.since = null;
|
|
3693
|
+
this.deprecated = null;
|
|
3694
|
+
this.source = null;
|
|
3138
3695
|
if (args) {
|
|
3139
|
-
if (args.
|
|
3140
|
-
this.
|
|
3696
|
+
if (args.className !== undefined && args.className !== null) {
|
|
3697
|
+
this.className = args.className;
|
|
3141
3698
|
}
|
|
3142
|
-
if (args.
|
|
3143
|
-
this.
|
|
3699
|
+
if (args.usage !== undefined && args.usage !== null) {
|
|
3700
|
+
this.usage = args.usage;
|
|
3144
3701
|
}
|
|
3145
|
-
if (args.
|
|
3146
|
-
this.
|
|
3702
|
+
if (args.name !== undefined && args.name !== null) {
|
|
3703
|
+
this.name = args.name;
|
|
3147
3704
|
}
|
|
3148
|
-
if (args.
|
|
3149
|
-
this.
|
|
3705
|
+
if (args.extended !== undefined && args.extended !== null) {
|
|
3706
|
+
this.extended = args.extended;
|
|
3150
3707
|
}
|
|
3151
|
-
if (args.
|
|
3152
|
-
this.
|
|
3708
|
+
if (args.db !== undefined && args.db !== null) {
|
|
3709
|
+
this.db = args.db;
|
|
3710
|
+
}
|
|
3711
|
+
if (args.arguments !== undefined && args.arguments !== null) {
|
|
3712
|
+
this.arguments = args.arguments;
|
|
3713
|
+
}
|
|
3714
|
+
if (args.examples !== undefined && args.examples !== null) {
|
|
3715
|
+
this.examples = args.examples;
|
|
3716
|
+
}
|
|
3717
|
+
if (args.note !== undefined && args.note !== null) {
|
|
3718
|
+
this.note = args.note;
|
|
3719
|
+
}
|
|
3720
|
+
if (args.group !== undefined && args.group !== null) {
|
|
3721
|
+
this.group = args.group;
|
|
3722
|
+
}
|
|
3723
|
+
if (args.since !== undefined && args.since !== null) {
|
|
3724
|
+
this.since = args.since;
|
|
3725
|
+
}
|
|
3726
|
+
if (args.deprecated !== undefined && args.deprecated !== null) {
|
|
3727
|
+
this.deprecated = args.deprecated;
|
|
3728
|
+
}
|
|
3729
|
+
if (args.source !== undefined && args.source !== null) {
|
|
3730
|
+
this.source = args.source;
|
|
3153
3731
|
}
|
|
3154
3732
|
}
|
|
3155
3733
|
};
|
|
3156
|
-
|
|
3157
|
-
|
|
3734
|
+
TExpressionInfo.prototype = {};
|
|
3735
|
+
TExpressionInfo.prototype.read = function(input) {
|
|
3158
3736
|
input.readStructBegin();
|
|
3159
3737
|
while (true) {
|
|
3160
3738
|
var ret = input.readFieldBegin();
|
|
@@ -3165,56 +3743,85 @@ TDBSqlSessionConf.prototype.read = function(input) {
|
|
|
3165
3743
|
}
|
|
3166
3744
|
switch (fid) {
|
|
3167
3745
|
case 1:
|
|
3168
|
-
if (ftype == Thrift.Type.
|
|
3169
|
-
this.
|
|
3170
|
-
var _rtmp3104 = input.readMapBegin();
|
|
3171
|
-
var _size103 = _rtmp3104.size || 0;
|
|
3172
|
-
for (var _i105 = 0; _i105 < _size103; ++_i105) {
|
|
3173
|
-
var key106 = null;
|
|
3174
|
-
var val107 = null;
|
|
3175
|
-
key106 = input.readString();
|
|
3176
|
-
val107 = input.readString();
|
|
3177
|
-
this.confs[key106] = val107;
|
|
3178
|
-
}
|
|
3179
|
-
input.readMapEnd();
|
|
3746
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3747
|
+
this.className = input.readString();
|
|
3180
3748
|
} else {
|
|
3181
3749
|
input.skip(ftype);
|
|
3182
3750
|
}
|
|
3183
3751
|
break;
|
|
3184
3752
|
case 2:
|
|
3185
|
-
if (ftype == Thrift.Type.
|
|
3186
|
-
this.
|
|
3187
|
-
var _rtmp3109 = input.readListBegin();
|
|
3188
|
-
var _size108 = _rtmp3109.size || 0;
|
|
3189
|
-
for (var _i110 = 0; _i110 < _size108; ++_i110) {
|
|
3190
|
-
var elem111 = null;
|
|
3191
|
-
elem111 = new ttypes.TDBSqlTempView();
|
|
3192
|
-
elem111.read(input);
|
|
3193
|
-
this.tempViews.push(elem111);
|
|
3194
|
-
}
|
|
3195
|
-
input.readListEnd();
|
|
3753
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3754
|
+
this.usage = input.readString();
|
|
3196
3755
|
} else {
|
|
3197
3756
|
input.skip(ftype);
|
|
3198
3757
|
}
|
|
3199
3758
|
break;
|
|
3200
3759
|
case 3:
|
|
3201
3760
|
if (ftype == Thrift.Type.STRING) {
|
|
3202
|
-
this.
|
|
3761
|
+
this.name = input.readString();
|
|
3203
3762
|
} else {
|
|
3204
3763
|
input.skip(ftype);
|
|
3205
3764
|
}
|
|
3206
3765
|
break;
|
|
3207
3766
|
case 4:
|
|
3208
3767
|
if (ftype == Thrift.Type.STRING) {
|
|
3209
|
-
this.
|
|
3768
|
+
this.extended = input.readString();
|
|
3210
3769
|
} else {
|
|
3211
3770
|
input.skip(ftype);
|
|
3212
3771
|
}
|
|
3213
3772
|
break;
|
|
3214
3773
|
case 5:
|
|
3215
|
-
if (ftype == Thrift.Type.
|
|
3216
|
-
this.
|
|
3217
|
-
|
|
3774
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3775
|
+
this.db = input.readString();
|
|
3776
|
+
} else {
|
|
3777
|
+
input.skip(ftype);
|
|
3778
|
+
}
|
|
3779
|
+
break;
|
|
3780
|
+
case 6:
|
|
3781
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3782
|
+
this.arguments = input.readString();
|
|
3783
|
+
} else {
|
|
3784
|
+
input.skip(ftype);
|
|
3785
|
+
}
|
|
3786
|
+
break;
|
|
3787
|
+
case 7:
|
|
3788
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3789
|
+
this.examples = input.readString();
|
|
3790
|
+
} else {
|
|
3791
|
+
input.skip(ftype);
|
|
3792
|
+
}
|
|
3793
|
+
break;
|
|
3794
|
+
case 8:
|
|
3795
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3796
|
+
this.note = input.readString();
|
|
3797
|
+
} else {
|
|
3798
|
+
input.skip(ftype);
|
|
3799
|
+
}
|
|
3800
|
+
break;
|
|
3801
|
+
case 9:
|
|
3802
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3803
|
+
this.group = input.readString();
|
|
3804
|
+
} else {
|
|
3805
|
+
input.skip(ftype);
|
|
3806
|
+
}
|
|
3807
|
+
break;
|
|
3808
|
+
case 10:
|
|
3809
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3810
|
+
this.since = input.readString();
|
|
3811
|
+
} else {
|
|
3812
|
+
input.skip(ftype);
|
|
3813
|
+
}
|
|
3814
|
+
break;
|
|
3815
|
+
case 11:
|
|
3816
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3817
|
+
this.deprecated = input.readString();
|
|
3818
|
+
} else {
|
|
3819
|
+
input.skip(ftype);
|
|
3820
|
+
}
|
|
3821
|
+
break;
|
|
3822
|
+
case 12:
|
|
3823
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3824
|
+
this.source = input.readString();
|
|
3218
3825
|
} else {
|
|
3219
3826
|
input.skip(ftype);
|
|
3220
3827
|
}
|
|
@@ -3228,16 +3835,274 @@ TDBSqlSessionConf.prototype.read = function(input) {
|
|
|
3228
3835
|
return;
|
|
3229
3836
|
};
|
|
3230
3837
|
|
|
3231
|
-
|
|
3838
|
+
TExpressionInfo.prototype.write = function(output) {
|
|
3839
|
+
output.writeStructBegin('TExpressionInfo');
|
|
3840
|
+
if (this.className !== null && this.className !== undefined) {
|
|
3841
|
+
output.writeFieldBegin('className', Thrift.Type.STRING, 1);
|
|
3842
|
+
output.writeString(this.className);
|
|
3843
|
+
output.writeFieldEnd();
|
|
3844
|
+
}
|
|
3845
|
+
if (this.usage !== null && this.usage !== undefined) {
|
|
3846
|
+
output.writeFieldBegin('usage', Thrift.Type.STRING, 2);
|
|
3847
|
+
output.writeString(this.usage);
|
|
3848
|
+
output.writeFieldEnd();
|
|
3849
|
+
}
|
|
3850
|
+
if (this.name !== null && this.name !== undefined) {
|
|
3851
|
+
output.writeFieldBegin('name', Thrift.Type.STRING, 3);
|
|
3852
|
+
output.writeString(this.name);
|
|
3853
|
+
output.writeFieldEnd();
|
|
3854
|
+
}
|
|
3855
|
+
if (this.extended !== null && this.extended !== undefined) {
|
|
3856
|
+
output.writeFieldBegin('extended', Thrift.Type.STRING, 4);
|
|
3857
|
+
output.writeString(this.extended);
|
|
3858
|
+
output.writeFieldEnd();
|
|
3859
|
+
}
|
|
3860
|
+
if (this.db !== null && this.db !== undefined) {
|
|
3861
|
+
output.writeFieldBegin('db', Thrift.Type.STRING, 5);
|
|
3862
|
+
output.writeString(this.db);
|
|
3863
|
+
output.writeFieldEnd();
|
|
3864
|
+
}
|
|
3865
|
+
if (this.arguments !== null && this.arguments !== undefined) {
|
|
3866
|
+
output.writeFieldBegin('arguments', Thrift.Type.STRING, 6);
|
|
3867
|
+
output.writeString(this.arguments);
|
|
3868
|
+
output.writeFieldEnd();
|
|
3869
|
+
}
|
|
3870
|
+
if (this.examples !== null && this.examples !== undefined) {
|
|
3871
|
+
output.writeFieldBegin('examples', Thrift.Type.STRING, 7);
|
|
3872
|
+
output.writeString(this.examples);
|
|
3873
|
+
output.writeFieldEnd();
|
|
3874
|
+
}
|
|
3875
|
+
if (this.note !== null && this.note !== undefined) {
|
|
3876
|
+
output.writeFieldBegin('note', Thrift.Type.STRING, 8);
|
|
3877
|
+
output.writeString(this.note);
|
|
3878
|
+
output.writeFieldEnd();
|
|
3879
|
+
}
|
|
3880
|
+
if (this.group !== null && this.group !== undefined) {
|
|
3881
|
+
output.writeFieldBegin('group', Thrift.Type.STRING, 9);
|
|
3882
|
+
output.writeString(this.group);
|
|
3883
|
+
output.writeFieldEnd();
|
|
3884
|
+
}
|
|
3885
|
+
if (this.since !== null && this.since !== undefined) {
|
|
3886
|
+
output.writeFieldBegin('since', Thrift.Type.STRING, 10);
|
|
3887
|
+
output.writeString(this.since);
|
|
3888
|
+
output.writeFieldEnd();
|
|
3889
|
+
}
|
|
3890
|
+
if (this.deprecated !== null && this.deprecated !== undefined) {
|
|
3891
|
+
output.writeFieldBegin('deprecated', Thrift.Type.STRING, 11);
|
|
3892
|
+
output.writeString(this.deprecated);
|
|
3893
|
+
output.writeFieldEnd();
|
|
3894
|
+
}
|
|
3895
|
+
if (this.source !== null && this.source !== undefined) {
|
|
3896
|
+
output.writeFieldBegin('source', Thrift.Type.STRING, 12);
|
|
3897
|
+
output.writeString(this.source);
|
|
3898
|
+
output.writeFieldEnd();
|
|
3899
|
+
}
|
|
3900
|
+
output.writeFieldStop();
|
|
3901
|
+
output.writeStructEnd();
|
|
3902
|
+
return;
|
|
3903
|
+
};
|
|
3904
|
+
|
|
3905
|
+
var TDBSqlConfValue = module.exports.TDBSqlConfValue = function(args) {
|
|
3906
|
+
this.value = null;
|
|
3907
|
+
if (args) {
|
|
3908
|
+
if (args.value !== undefined && args.value !== null) {
|
|
3909
|
+
this.value = args.value;
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
};
|
|
3913
|
+
TDBSqlConfValue.prototype = {};
|
|
3914
|
+
TDBSqlConfValue.prototype.read = function(input) {
|
|
3915
|
+
input.readStructBegin();
|
|
3916
|
+
while (true) {
|
|
3917
|
+
var ret = input.readFieldBegin();
|
|
3918
|
+
var ftype = ret.ftype;
|
|
3919
|
+
var fid = ret.fid;
|
|
3920
|
+
if (ftype == Thrift.Type.STOP) {
|
|
3921
|
+
break;
|
|
3922
|
+
}
|
|
3923
|
+
switch (fid) {
|
|
3924
|
+
case 1:
|
|
3925
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3926
|
+
this.value = input.readString();
|
|
3927
|
+
} else {
|
|
3928
|
+
input.skip(ftype);
|
|
3929
|
+
}
|
|
3930
|
+
break;
|
|
3931
|
+
case 0:
|
|
3932
|
+
input.skip(ftype);
|
|
3933
|
+
break;
|
|
3934
|
+
default:
|
|
3935
|
+
input.skip(ftype);
|
|
3936
|
+
}
|
|
3937
|
+
input.readFieldEnd();
|
|
3938
|
+
}
|
|
3939
|
+
input.readStructEnd();
|
|
3940
|
+
return;
|
|
3941
|
+
};
|
|
3942
|
+
|
|
3943
|
+
TDBSqlConfValue.prototype.write = function(output) {
|
|
3944
|
+
output.writeStructBegin('TDBSqlConfValue');
|
|
3945
|
+
if (this.value !== null && this.value !== undefined) {
|
|
3946
|
+
output.writeFieldBegin('value', Thrift.Type.STRING, 1);
|
|
3947
|
+
output.writeString(this.value);
|
|
3948
|
+
output.writeFieldEnd();
|
|
3949
|
+
}
|
|
3950
|
+
output.writeFieldStop();
|
|
3951
|
+
output.writeStructEnd();
|
|
3952
|
+
return;
|
|
3953
|
+
};
|
|
3954
|
+
|
|
3955
|
+
var TDBSqlSessionConf = module.exports.TDBSqlSessionConf = function(args) {
|
|
3956
|
+
this.confs = null;
|
|
3957
|
+
this.tempViews = null;
|
|
3958
|
+
this.currentDatabase = null;
|
|
3959
|
+
this.currentCatalog = null;
|
|
3960
|
+
this.sessionCapabilities = null;
|
|
3961
|
+
this.expressionsInfos = null;
|
|
3962
|
+
this.internalConfs = null;
|
|
3963
|
+
if (args) {
|
|
3964
|
+
if (args.confs !== undefined && args.confs !== null) {
|
|
3965
|
+
this.confs = Thrift.copyMap(args.confs, [null]);
|
|
3966
|
+
}
|
|
3967
|
+
if (args.tempViews !== undefined && args.tempViews !== null) {
|
|
3968
|
+
this.tempViews = Thrift.copyList(args.tempViews, [ttypes.TDBSqlTempView]);
|
|
3969
|
+
}
|
|
3970
|
+
if (args.currentDatabase !== undefined && args.currentDatabase !== null) {
|
|
3971
|
+
this.currentDatabase = args.currentDatabase;
|
|
3972
|
+
}
|
|
3973
|
+
if (args.currentCatalog !== undefined && args.currentCatalog !== null) {
|
|
3974
|
+
this.currentCatalog = args.currentCatalog;
|
|
3975
|
+
}
|
|
3976
|
+
if (args.sessionCapabilities !== undefined && args.sessionCapabilities !== null) {
|
|
3977
|
+
this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities(args.sessionCapabilities);
|
|
3978
|
+
}
|
|
3979
|
+
if (args.expressionsInfos !== undefined && args.expressionsInfos !== null) {
|
|
3980
|
+
this.expressionsInfos = Thrift.copyList(args.expressionsInfos, [ttypes.TExpressionInfo]);
|
|
3981
|
+
}
|
|
3982
|
+
if (args.internalConfs !== undefined && args.internalConfs !== null) {
|
|
3983
|
+
this.internalConfs = Thrift.copyMap(args.internalConfs, [ttypes.TDBSqlConfValue]);
|
|
3984
|
+
}
|
|
3985
|
+
}
|
|
3986
|
+
};
|
|
3987
|
+
TDBSqlSessionConf.prototype = {};
|
|
3988
|
+
TDBSqlSessionConf.prototype.read = function(input) {
|
|
3989
|
+
input.readStructBegin();
|
|
3990
|
+
while (true) {
|
|
3991
|
+
var ret = input.readFieldBegin();
|
|
3992
|
+
var ftype = ret.ftype;
|
|
3993
|
+
var fid = ret.fid;
|
|
3994
|
+
if (ftype == Thrift.Type.STOP) {
|
|
3995
|
+
break;
|
|
3996
|
+
}
|
|
3997
|
+
switch (fid) {
|
|
3998
|
+
case 1:
|
|
3999
|
+
if (ftype == Thrift.Type.MAP) {
|
|
4000
|
+
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;
|
|
4009
|
+
}
|
|
4010
|
+
input.readMapEnd();
|
|
4011
|
+
} else {
|
|
4012
|
+
input.skip(ftype);
|
|
4013
|
+
}
|
|
4014
|
+
break;
|
|
4015
|
+
case 2:
|
|
4016
|
+
if (ftype == Thrift.Type.LIST) {
|
|
4017
|
+
this.tempViews = [];
|
|
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);
|
|
4025
|
+
}
|
|
4026
|
+
input.readListEnd();
|
|
4027
|
+
} else {
|
|
4028
|
+
input.skip(ftype);
|
|
4029
|
+
}
|
|
4030
|
+
break;
|
|
4031
|
+
case 3:
|
|
4032
|
+
if (ftype == Thrift.Type.STRING) {
|
|
4033
|
+
this.currentDatabase = input.readString();
|
|
4034
|
+
} else {
|
|
4035
|
+
input.skip(ftype);
|
|
4036
|
+
}
|
|
4037
|
+
break;
|
|
4038
|
+
case 4:
|
|
4039
|
+
if (ftype == Thrift.Type.STRING) {
|
|
4040
|
+
this.currentCatalog = input.readString();
|
|
4041
|
+
} else {
|
|
4042
|
+
input.skip(ftype);
|
|
4043
|
+
}
|
|
4044
|
+
break;
|
|
4045
|
+
case 5:
|
|
4046
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4047
|
+
this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities();
|
|
4048
|
+
this.sessionCapabilities.read(input);
|
|
4049
|
+
} else {
|
|
4050
|
+
input.skip(ftype);
|
|
4051
|
+
}
|
|
4052
|
+
break;
|
|
4053
|
+
case 6:
|
|
4054
|
+
if (ftype == Thrift.Type.LIST) {
|
|
4055
|
+
this.expressionsInfos = [];
|
|
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);
|
|
4063
|
+
}
|
|
4064
|
+
input.readListEnd();
|
|
4065
|
+
} else {
|
|
4066
|
+
input.skip(ftype);
|
|
4067
|
+
}
|
|
4068
|
+
break;
|
|
4069
|
+
case 7:
|
|
4070
|
+
if (ftype == Thrift.Type.MAP) {
|
|
4071
|
+
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;
|
|
4081
|
+
}
|
|
4082
|
+
input.readMapEnd();
|
|
4083
|
+
} else {
|
|
4084
|
+
input.skip(ftype);
|
|
4085
|
+
}
|
|
4086
|
+
break;
|
|
4087
|
+
default:
|
|
4088
|
+
input.skip(ftype);
|
|
4089
|
+
}
|
|
4090
|
+
input.readFieldEnd();
|
|
4091
|
+
}
|
|
4092
|
+
input.readStructEnd();
|
|
4093
|
+
return;
|
|
4094
|
+
};
|
|
4095
|
+
|
|
4096
|
+
TDBSqlSessionConf.prototype.write = function(output) {
|
|
3232
4097
|
output.writeStructBegin('TDBSqlSessionConf');
|
|
3233
4098
|
if (this.confs !== null && this.confs !== undefined) {
|
|
3234
4099
|
output.writeFieldBegin('confs', Thrift.Type.MAP, 1);
|
|
3235
4100
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confs));
|
|
3236
|
-
for (var
|
|
3237
|
-
if (this.confs.hasOwnProperty(
|
|
3238
|
-
var
|
|
3239
|
-
output.writeString(
|
|
3240
|
-
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);
|
|
3241
4106
|
}
|
|
3242
4107
|
}
|
|
3243
4108
|
output.writeMapEnd();
|
|
@@ -3246,10 +4111,10 @@ TDBSqlSessionConf.prototype.write = function(output) {
|
|
|
3246
4111
|
if (this.tempViews !== null && this.tempViews !== undefined) {
|
|
3247
4112
|
output.writeFieldBegin('tempViews', Thrift.Type.LIST, 2);
|
|
3248
4113
|
output.writeListBegin(Thrift.Type.STRUCT, this.tempViews.length);
|
|
3249
|
-
for (var
|
|
3250
|
-
if (this.tempViews.hasOwnProperty(
|
|
3251
|
-
|
|
3252
|
-
|
|
4114
|
+
for (var iter142 in this.tempViews) {
|
|
4115
|
+
if (this.tempViews.hasOwnProperty(iter142)) {
|
|
4116
|
+
iter142 = this.tempViews[iter142];
|
|
4117
|
+
iter142.write(output);
|
|
3253
4118
|
}
|
|
3254
4119
|
}
|
|
3255
4120
|
output.writeListEnd();
|
|
@@ -3270,6 +4135,31 @@ TDBSqlSessionConf.prototype.write = function(output) {
|
|
|
3270
4135
|
this.sessionCapabilities.write(output);
|
|
3271
4136
|
output.writeFieldEnd();
|
|
3272
4137
|
}
|
|
4138
|
+
if (this.expressionsInfos !== null && this.expressionsInfos !== undefined) {
|
|
4139
|
+
output.writeFieldBegin('expressionsInfos', Thrift.Type.LIST, 6);
|
|
4140
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.expressionsInfos.length);
|
|
4141
|
+
for (var iter143 in this.expressionsInfos) {
|
|
4142
|
+
if (this.expressionsInfos.hasOwnProperty(iter143)) {
|
|
4143
|
+
iter143 = this.expressionsInfos[iter143];
|
|
4144
|
+
iter143.write(output);
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
4147
|
+
output.writeListEnd();
|
|
4148
|
+
output.writeFieldEnd();
|
|
4149
|
+
}
|
|
4150
|
+
if (this.internalConfs !== null && this.internalConfs !== undefined) {
|
|
4151
|
+
output.writeFieldBegin('internalConfs', Thrift.Type.MAP, 7);
|
|
4152
|
+
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.internalConfs));
|
|
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);
|
|
4158
|
+
}
|
|
4159
|
+
}
|
|
4160
|
+
output.writeMapEnd();
|
|
4161
|
+
output.writeFieldEnd();
|
|
4162
|
+
}
|
|
3273
4163
|
output.writeFieldStop();
|
|
3274
4164
|
output.writeStructEnd();
|
|
3275
4165
|
return;
|
|
@@ -3281,6 +4171,9 @@ var TStatus = module.exports.TStatus = function(args) {
|
|
|
3281
4171
|
this.sqlState = null;
|
|
3282
4172
|
this.errorCode = null;
|
|
3283
4173
|
this.errorMessage = null;
|
|
4174
|
+
this.displayMessage = null;
|
|
4175
|
+
this.errorDetailsJson = null;
|
|
4176
|
+
this.responseValidation = null;
|
|
3284
4177
|
if (args) {
|
|
3285
4178
|
if (args.statusCode !== undefined && args.statusCode !== null) {
|
|
3286
4179
|
this.statusCode = args.statusCode;
|
|
@@ -3299,6 +4192,15 @@ var TStatus = module.exports.TStatus = function(args) {
|
|
|
3299
4192
|
if (args.errorMessage !== undefined && args.errorMessage !== null) {
|
|
3300
4193
|
this.errorMessage = args.errorMessage;
|
|
3301
4194
|
}
|
|
4195
|
+
if (args.displayMessage !== undefined && args.displayMessage !== null) {
|
|
4196
|
+
this.displayMessage = args.displayMessage;
|
|
4197
|
+
}
|
|
4198
|
+
if (args.errorDetailsJson !== undefined && args.errorDetailsJson !== null) {
|
|
4199
|
+
this.errorDetailsJson = args.errorDetailsJson;
|
|
4200
|
+
}
|
|
4201
|
+
if (args.responseValidation !== undefined && args.responseValidation !== null) {
|
|
4202
|
+
this.responseValidation = args.responseValidation;
|
|
4203
|
+
}
|
|
3302
4204
|
}
|
|
3303
4205
|
};
|
|
3304
4206
|
TStatus.prototype = {};
|
|
@@ -3322,12 +4224,12 @@ TStatus.prototype.read = function(input) {
|
|
|
3322
4224
|
case 2:
|
|
3323
4225
|
if (ftype == Thrift.Type.LIST) {
|
|
3324
4226
|
this.infoMessages = [];
|
|
3325
|
-
var
|
|
3326
|
-
var
|
|
3327
|
-
for (var
|
|
3328
|
-
var
|
|
3329
|
-
|
|
3330
|
-
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);
|
|
3331
4233
|
}
|
|
3332
4234
|
input.readListEnd();
|
|
3333
4235
|
} else {
|
|
@@ -3355,6 +4257,27 @@ TStatus.prototype.read = function(input) {
|
|
|
3355
4257
|
input.skip(ftype);
|
|
3356
4258
|
}
|
|
3357
4259
|
break;
|
|
4260
|
+
case 6:
|
|
4261
|
+
if (ftype == Thrift.Type.STRING) {
|
|
4262
|
+
this.displayMessage = input.readString();
|
|
4263
|
+
} else {
|
|
4264
|
+
input.skip(ftype);
|
|
4265
|
+
}
|
|
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;
|
|
4274
|
+
case 3329:
|
|
4275
|
+
if (ftype == Thrift.Type.STRING) {
|
|
4276
|
+
this.responseValidation = input.readBinary();
|
|
4277
|
+
} else {
|
|
4278
|
+
input.skip(ftype);
|
|
4279
|
+
}
|
|
4280
|
+
break;
|
|
3358
4281
|
default:
|
|
3359
4282
|
input.skip(ftype);
|
|
3360
4283
|
}
|
|
@@ -3374,10 +4297,10 @@ TStatus.prototype.write = function(output) {
|
|
|
3374
4297
|
if (this.infoMessages !== null && this.infoMessages !== undefined) {
|
|
3375
4298
|
output.writeFieldBegin('infoMessages', Thrift.Type.LIST, 2);
|
|
3376
4299
|
output.writeListBegin(Thrift.Type.STRING, this.infoMessages.length);
|
|
3377
|
-
for (var
|
|
3378
|
-
if (this.infoMessages.hasOwnProperty(
|
|
3379
|
-
|
|
3380
|
-
output.writeString(
|
|
4300
|
+
for (var iter150 in this.infoMessages) {
|
|
4301
|
+
if (this.infoMessages.hasOwnProperty(iter150)) {
|
|
4302
|
+
iter150 = this.infoMessages[iter150];
|
|
4303
|
+
output.writeString(iter150);
|
|
3381
4304
|
}
|
|
3382
4305
|
}
|
|
3383
4306
|
output.writeListEnd();
|
|
@@ -3398,6 +4321,21 @@ TStatus.prototype.write = function(output) {
|
|
|
3398
4321
|
output.writeString(this.errorMessage);
|
|
3399
4322
|
output.writeFieldEnd();
|
|
3400
4323
|
}
|
|
4324
|
+
if (this.displayMessage !== null && this.displayMessage !== undefined) {
|
|
4325
|
+
output.writeFieldBegin('displayMessage', Thrift.Type.STRING, 6);
|
|
4326
|
+
output.writeString(this.displayMessage);
|
|
4327
|
+
output.writeFieldEnd();
|
|
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
|
+
}
|
|
4334
|
+
if (this.responseValidation !== null && this.responseValidation !== undefined) {
|
|
4335
|
+
output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
|
|
4336
|
+
output.writeBinary(this.responseValidation);
|
|
4337
|
+
output.writeFieldEnd();
|
|
4338
|
+
}
|
|
3401
4339
|
output.writeFieldStop();
|
|
3402
4340
|
output.writeStructEnd();
|
|
3403
4341
|
return;
|
|
@@ -3469,6 +4407,7 @@ TNamespace.prototype.write = function(output) {
|
|
|
3469
4407
|
var THandleIdentifier = module.exports.THandleIdentifier = function(args) {
|
|
3470
4408
|
this.guid = null;
|
|
3471
4409
|
this.secret = null;
|
|
4410
|
+
this.executionVersion = null;
|
|
3472
4411
|
if (args) {
|
|
3473
4412
|
if (args.guid !== undefined && args.guid !== null) {
|
|
3474
4413
|
this.guid = args.guid;
|
|
@@ -3480,6 +4419,9 @@ var THandleIdentifier = module.exports.THandleIdentifier = function(args) {
|
|
|
3480
4419
|
} else {
|
|
3481
4420
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field secret is unset!');
|
|
3482
4421
|
}
|
|
4422
|
+
if (args.executionVersion !== undefined && args.executionVersion !== null) {
|
|
4423
|
+
this.executionVersion = args.executionVersion;
|
|
4424
|
+
}
|
|
3483
4425
|
}
|
|
3484
4426
|
};
|
|
3485
4427
|
THandleIdentifier.prototype = {};
|
|
@@ -3507,6 +4449,13 @@ THandleIdentifier.prototype.read = function(input) {
|
|
|
3507
4449
|
input.skip(ftype);
|
|
3508
4450
|
}
|
|
3509
4451
|
break;
|
|
4452
|
+
case 3329:
|
|
4453
|
+
if (ftype == Thrift.Type.I16) {
|
|
4454
|
+
this.executionVersion = input.readI16();
|
|
4455
|
+
} else {
|
|
4456
|
+
input.skip(ftype);
|
|
4457
|
+
}
|
|
4458
|
+
break;
|
|
3510
4459
|
default:
|
|
3511
4460
|
input.skip(ftype);
|
|
3512
4461
|
}
|
|
@@ -3528,6 +4477,11 @@ THandleIdentifier.prototype.write = function(output) {
|
|
|
3528
4477
|
output.writeBinary(this.secret);
|
|
3529
4478
|
output.writeFieldEnd();
|
|
3530
4479
|
}
|
|
4480
|
+
if (this.executionVersion !== null && this.executionVersion !== undefined) {
|
|
4481
|
+
output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3329);
|
|
4482
|
+
output.writeI16(this.executionVersion);
|
|
4483
|
+
output.writeFieldEnd();
|
|
4484
|
+
}
|
|
3531
4485
|
output.writeFieldStop();
|
|
3532
4486
|
output.writeStructEnd();
|
|
3533
4487
|
return;
|
|
@@ -3780,14 +4734,14 @@ TOpenSessionReq.prototype.read = function(input) {
|
|
|
3780
4734
|
case 4:
|
|
3781
4735
|
if (ftype == Thrift.Type.MAP) {
|
|
3782
4736
|
this.configuration = {};
|
|
3783
|
-
var
|
|
3784
|
-
var
|
|
3785
|
-
for (var
|
|
3786
|
-
var
|
|
3787
|
-
var
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
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;
|
|
3791
4745
|
}
|
|
3792
4746
|
input.readMapEnd();
|
|
3793
4747
|
} else {
|
|
@@ -3797,12 +4751,12 @@ TOpenSessionReq.prototype.read = function(input) {
|
|
|
3797
4751
|
case 1281:
|
|
3798
4752
|
if (ftype == Thrift.Type.LIST) {
|
|
3799
4753
|
this.getInfos = [];
|
|
3800
|
-
var
|
|
3801
|
-
var
|
|
3802
|
-
for (var
|
|
3803
|
-
var
|
|
3804
|
-
|
|
3805
|
-
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);
|
|
3806
4760
|
}
|
|
3807
4761
|
input.readListEnd();
|
|
3808
4762
|
} else {
|
|
@@ -3819,14 +4773,14 @@ TOpenSessionReq.prototype.read = function(input) {
|
|
|
3819
4773
|
case 1283:
|
|
3820
4774
|
if (ftype == Thrift.Type.MAP) {
|
|
3821
4775
|
this.connectionProperties = {};
|
|
3822
|
-
var
|
|
3823
|
-
var
|
|
3824
|
-
for (var
|
|
3825
|
-
var
|
|
3826
|
-
var
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
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;
|
|
3830
4784
|
}
|
|
3831
4785
|
input.readMapEnd();
|
|
3832
4786
|
} else {
|
|
@@ -3885,11 +4839,11 @@ TOpenSessionReq.prototype.write = function(output) {
|
|
|
3885
4839
|
if (this.configuration !== null && this.configuration !== undefined) {
|
|
3886
4840
|
output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
|
|
3887
4841
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
|
|
3888
|
-
for (var
|
|
3889
|
-
if (this.configuration.hasOwnProperty(
|
|
3890
|
-
var
|
|
3891
|
-
output.writeString(
|
|
3892
|
-
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);
|
|
3893
4847
|
}
|
|
3894
4848
|
}
|
|
3895
4849
|
output.writeMapEnd();
|
|
@@ -3898,10 +4852,10 @@ TOpenSessionReq.prototype.write = function(output) {
|
|
|
3898
4852
|
if (this.getInfos !== null && this.getInfos !== undefined) {
|
|
3899
4853
|
output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
|
|
3900
4854
|
output.writeListBegin(Thrift.Type.I32, this.getInfos.length);
|
|
3901
|
-
for (var
|
|
3902
|
-
if (this.getInfos.hasOwnProperty(
|
|
3903
|
-
|
|
3904
|
-
output.writeI32(
|
|
4855
|
+
for (var iter167 in this.getInfos) {
|
|
4856
|
+
if (this.getInfos.hasOwnProperty(iter167)) {
|
|
4857
|
+
iter167 = this.getInfos[iter167];
|
|
4858
|
+
output.writeI32(iter167);
|
|
3905
4859
|
}
|
|
3906
4860
|
}
|
|
3907
4861
|
output.writeListEnd();
|
|
@@ -3915,11 +4869,11 @@ TOpenSessionReq.prototype.write = function(output) {
|
|
|
3915
4869
|
if (this.connectionProperties !== null && this.connectionProperties !== undefined) {
|
|
3916
4870
|
output.writeFieldBegin('connectionProperties', Thrift.Type.MAP, 1283);
|
|
3917
4871
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.connectionProperties));
|
|
3918
|
-
for (var
|
|
3919
|
-
if (this.connectionProperties.hasOwnProperty(
|
|
3920
|
-
var
|
|
3921
|
-
output.writeString(
|
|
3922
|
-
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);
|
|
3923
4877
|
}
|
|
3924
4878
|
}
|
|
3925
4879
|
output.writeMapEnd();
|
|
@@ -4018,14 +4972,14 @@ TOpenSessionResp.prototype.read = function(input) {
|
|
|
4018
4972
|
case 4:
|
|
4019
4973
|
if (ftype == Thrift.Type.MAP) {
|
|
4020
4974
|
this.configuration = {};
|
|
4021
|
-
var
|
|
4022
|
-
var
|
|
4023
|
-
for (var
|
|
4024
|
-
var
|
|
4025
|
-
var
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
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;
|
|
4029
4983
|
}
|
|
4030
4984
|
input.readMapEnd();
|
|
4031
4985
|
} else {
|
|
@@ -4050,13 +5004,13 @@ TOpenSessionResp.prototype.read = function(input) {
|
|
|
4050
5004
|
case 1281:
|
|
4051
5005
|
if (ftype == Thrift.Type.LIST) {
|
|
4052
5006
|
this.getInfos = [];
|
|
4053
|
-
var
|
|
4054
|
-
var
|
|
4055
|
-
for (var
|
|
4056
|
-
var
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
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);
|
|
4060
5014
|
}
|
|
4061
5015
|
input.readListEnd();
|
|
4062
5016
|
} else {
|
|
@@ -4092,11 +5046,11 @@ TOpenSessionResp.prototype.write = function(output) {
|
|
|
4092
5046
|
if (this.configuration !== null && this.configuration !== undefined) {
|
|
4093
5047
|
output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
|
|
4094
5048
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
|
|
4095
|
-
for (var
|
|
4096
|
-
if (this.configuration.hasOwnProperty(
|
|
4097
|
-
var
|
|
4098
|
-
output.writeString(
|
|
4099
|
-
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);
|
|
4100
5054
|
}
|
|
4101
5055
|
}
|
|
4102
5056
|
output.writeMapEnd();
|
|
@@ -4115,10 +5069,10 @@ TOpenSessionResp.prototype.write = function(output) {
|
|
|
4115
5069
|
if (this.getInfos !== null && this.getInfos !== undefined) {
|
|
4116
5070
|
output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
|
|
4117
5071
|
output.writeListBegin(Thrift.Type.STRUCT, this.getInfos.length);
|
|
4118
|
-
for (var
|
|
4119
|
-
if (this.getInfos.hasOwnProperty(
|
|
4120
|
-
|
|
4121
|
-
|
|
5072
|
+
for (var iter181 in this.getInfos) {
|
|
5073
|
+
if (this.getInfos.hasOwnProperty(iter181)) {
|
|
5074
|
+
iter181 = this.getInfos[iter181];
|
|
5075
|
+
iter181.write(output);
|
|
4122
5076
|
}
|
|
4123
5077
|
}
|
|
4124
5078
|
output.writeListEnd();
|
|
@@ -4685,6 +5639,7 @@ var TSparkArrowTypes = module.exports.TSparkArrowTypes = function(args) {
|
|
|
4685
5639
|
this.decimalAsArrow = null;
|
|
4686
5640
|
this.complexTypesAsArrow = null;
|
|
4687
5641
|
this.intervalTypesAsArrow = null;
|
|
5642
|
+
this.nullTypeAsArrow = null;
|
|
4688
5643
|
if (args) {
|
|
4689
5644
|
if (args.timestampAsArrow !== undefined && args.timestampAsArrow !== null) {
|
|
4690
5645
|
this.timestampAsArrow = args.timestampAsArrow;
|
|
@@ -4698,6 +5653,9 @@ var TSparkArrowTypes = module.exports.TSparkArrowTypes = function(args) {
|
|
|
4698
5653
|
if (args.intervalTypesAsArrow !== undefined && args.intervalTypesAsArrow !== null) {
|
|
4699
5654
|
this.intervalTypesAsArrow = args.intervalTypesAsArrow;
|
|
4700
5655
|
}
|
|
5656
|
+
if (args.nullTypeAsArrow !== undefined && args.nullTypeAsArrow !== null) {
|
|
5657
|
+
this.nullTypeAsArrow = args.nullTypeAsArrow;
|
|
5658
|
+
}
|
|
4701
5659
|
}
|
|
4702
5660
|
};
|
|
4703
5661
|
TSparkArrowTypes.prototype = {};
|
|
@@ -4739,6 +5697,13 @@ TSparkArrowTypes.prototype.read = function(input) {
|
|
|
4739
5697
|
input.skip(ftype);
|
|
4740
5698
|
}
|
|
4741
5699
|
break;
|
|
5700
|
+
case 5:
|
|
5701
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
5702
|
+
this.nullTypeAsArrow = input.readBool();
|
|
5703
|
+
} else {
|
|
5704
|
+
input.skip(ftype);
|
|
5705
|
+
}
|
|
5706
|
+
break;
|
|
4742
5707
|
default:
|
|
4743
5708
|
input.skip(ftype);
|
|
4744
5709
|
}
|
|
@@ -4770,7 +5735,12 @@ TSparkArrowTypes.prototype.write = function(output) {
|
|
|
4770
5735
|
output.writeBool(this.intervalTypesAsArrow);
|
|
4771
5736
|
output.writeFieldEnd();
|
|
4772
5737
|
}
|
|
4773
|
-
|
|
5738
|
+
if (this.nullTypeAsArrow !== null && this.nullTypeAsArrow !== undefined) {
|
|
5739
|
+
output.writeFieldBegin('nullTypeAsArrow', Thrift.Type.BOOL, 5);
|
|
5740
|
+
output.writeBool(this.nullTypeAsArrow);
|
|
5741
|
+
output.writeFieldEnd();
|
|
5742
|
+
}
|
|
5743
|
+
output.writeFieldStop();
|
|
4774
5744
|
output.writeStructEnd();
|
|
4775
5745
|
return;
|
|
4776
5746
|
};
|
|
@@ -4787,11 +5757,30 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
|
|
|
4787
5757
|
this.canDecompressLZ4Result = null;
|
|
4788
5758
|
this.maxBytesPerFile = null;
|
|
4789
5759
|
this.useArrowNativeTypes = null;
|
|
5760
|
+
this.resultRowLimit = null;
|
|
5761
|
+
this.parameters = null;
|
|
5762
|
+
this.maxBytesPerBatch = null;
|
|
5763
|
+
this.statementConf = null;
|
|
4790
5764
|
this.operationId = null;
|
|
4791
5765
|
this.sessionConf = null;
|
|
4792
5766
|
this.rejectHighCostQueries = null;
|
|
4793
5767
|
this.estimatedCost = null;
|
|
4794
5768
|
this.executionVersion = null;
|
|
5769
|
+
this.requestValidation = null;
|
|
5770
|
+
this.resultPersistenceMode = null;
|
|
5771
|
+
this.trimArrowBatchesToLimit = null;
|
|
5772
|
+
this.fetchDisposition = null;
|
|
5773
|
+
this.enforceResultPersistenceMode = null;
|
|
5774
|
+
this.statementList = null;
|
|
5775
|
+
this.persistResultManifest = null;
|
|
5776
|
+
this.resultRetentionSeconds = null;
|
|
5777
|
+
this.resultByteLimit = null;
|
|
5778
|
+
this.resultDataFormat = null;
|
|
5779
|
+
this.originatingClientIdentity = null;
|
|
5780
|
+
this.preferSingleFileResult = null;
|
|
5781
|
+
this.preferDriverOnlyUpload = null;
|
|
5782
|
+
this.enforceEmbeddedSchemaCorrectness = false;
|
|
5783
|
+
this.idempotencyToken = null;
|
|
4795
5784
|
if (args) {
|
|
4796
5785
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
4797
5786
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -4830,6 +5819,18 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
|
|
|
4830
5819
|
if (args.useArrowNativeTypes !== undefined && args.useArrowNativeTypes !== null) {
|
|
4831
5820
|
this.useArrowNativeTypes = new ttypes.TSparkArrowTypes(args.useArrowNativeTypes);
|
|
4832
5821
|
}
|
|
5822
|
+
if (args.resultRowLimit !== undefined && args.resultRowLimit !== null) {
|
|
5823
|
+
this.resultRowLimit = args.resultRowLimit;
|
|
5824
|
+
}
|
|
5825
|
+
if (args.parameters !== undefined && args.parameters !== null) {
|
|
5826
|
+
this.parameters = Thrift.copyList(args.parameters, [ttypes.TSparkParameter]);
|
|
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
|
+
}
|
|
4833
5834
|
if (args.operationId !== undefined && args.operationId !== null) {
|
|
4834
5835
|
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
4835
5836
|
}
|
|
@@ -4845,6 +5846,51 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
|
|
|
4845
5846
|
if (args.executionVersion !== undefined && args.executionVersion !== null) {
|
|
4846
5847
|
this.executionVersion = args.executionVersion;
|
|
4847
5848
|
}
|
|
5849
|
+
if (args.requestValidation !== undefined && args.requestValidation !== null) {
|
|
5850
|
+
this.requestValidation = args.requestValidation;
|
|
5851
|
+
}
|
|
5852
|
+
if (args.resultPersistenceMode !== undefined && args.resultPersistenceMode !== null) {
|
|
5853
|
+
this.resultPersistenceMode = args.resultPersistenceMode;
|
|
5854
|
+
}
|
|
5855
|
+
if (args.trimArrowBatchesToLimit !== undefined && args.trimArrowBatchesToLimit !== null) {
|
|
5856
|
+
this.trimArrowBatchesToLimit = args.trimArrowBatchesToLimit;
|
|
5857
|
+
}
|
|
5858
|
+
if (args.fetchDisposition !== undefined && args.fetchDisposition !== null) {
|
|
5859
|
+
this.fetchDisposition = args.fetchDisposition;
|
|
5860
|
+
}
|
|
5861
|
+
if (args.enforceResultPersistenceMode !== undefined && args.enforceResultPersistenceMode !== null) {
|
|
5862
|
+
this.enforceResultPersistenceMode = args.enforceResultPersistenceMode;
|
|
5863
|
+
}
|
|
5864
|
+
if (args.statementList !== undefined && args.statementList !== null) {
|
|
5865
|
+
this.statementList = Thrift.copyList(args.statementList, [null]);
|
|
5866
|
+
}
|
|
5867
|
+
if (args.persistResultManifest !== undefined && args.persistResultManifest !== null) {
|
|
5868
|
+
this.persistResultManifest = args.persistResultManifest;
|
|
5869
|
+
}
|
|
5870
|
+
if (args.resultRetentionSeconds !== undefined && args.resultRetentionSeconds !== null) {
|
|
5871
|
+
this.resultRetentionSeconds = args.resultRetentionSeconds;
|
|
5872
|
+
}
|
|
5873
|
+
if (args.resultByteLimit !== undefined && args.resultByteLimit !== null) {
|
|
5874
|
+
this.resultByteLimit = args.resultByteLimit;
|
|
5875
|
+
}
|
|
5876
|
+
if (args.resultDataFormat !== undefined && args.resultDataFormat !== null) {
|
|
5877
|
+
this.resultDataFormat = new ttypes.TDBSqlResultFormat(args.resultDataFormat);
|
|
5878
|
+
}
|
|
5879
|
+
if (args.originatingClientIdentity !== undefined && args.originatingClientIdentity !== null) {
|
|
5880
|
+
this.originatingClientIdentity = args.originatingClientIdentity;
|
|
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
|
+
}
|
|
4848
5894
|
}
|
|
4849
5895
|
};
|
|
4850
5896
|
TExecuteStatementReq.prototype = {};
|
|
@@ -4876,14 +5922,14 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
4876
5922
|
case 3:
|
|
4877
5923
|
if (ftype == Thrift.Type.MAP) {
|
|
4878
5924
|
this.confOverlay = {};
|
|
4879
|
-
var
|
|
4880
|
-
var
|
|
4881
|
-
for (var
|
|
4882
|
-
var
|
|
4883
|
-
var
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
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;
|
|
4887
5933
|
}
|
|
4888
5934
|
input.readMapEnd();
|
|
4889
5935
|
} else {
|
|
@@ -4948,6 +5994,44 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
4948
5994
|
input.skip(ftype);
|
|
4949
5995
|
}
|
|
4950
5996
|
break;
|
|
5997
|
+
case 1287:
|
|
5998
|
+
if (ftype == Thrift.Type.I64) {
|
|
5999
|
+
this.resultRowLimit = input.readI64();
|
|
6000
|
+
} else {
|
|
6001
|
+
input.skip(ftype);
|
|
6002
|
+
}
|
|
6003
|
+
break;
|
|
6004
|
+
case 1288:
|
|
6005
|
+
if (ftype == Thrift.Type.LIST) {
|
|
6006
|
+
this.parameters = [];
|
|
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);
|
|
6014
|
+
}
|
|
6015
|
+
input.readListEnd();
|
|
6016
|
+
} else {
|
|
6017
|
+
input.skip(ftype);
|
|
6018
|
+
}
|
|
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;
|
|
4951
6035
|
case 3329:
|
|
4952
6036
|
if (ftype == Thrift.Type.STRUCT) {
|
|
4953
6037
|
this.operationId = new ttypes.THandleIdentifier();
|
|
@@ -4985,6 +6069,121 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
4985
6069
|
input.skip(ftype);
|
|
4986
6070
|
}
|
|
4987
6071
|
break;
|
|
6072
|
+
case 3334:
|
|
6073
|
+
if (ftype == Thrift.Type.STRING) {
|
|
6074
|
+
this.requestValidation = input.readBinary();
|
|
6075
|
+
} else {
|
|
6076
|
+
input.skip(ftype);
|
|
6077
|
+
}
|
|
6078
|
+
break;
|
|
6079
|
+
case 3335:
|
|
6080
|
+
if (ftype == Thrift.Type.I32) {
|
|
6081
|
+
this.resultPersistenceMode = input.readI32();
|
|
6082
|
+
} else {
|
|
6083
|
+
input.skip(ftype);
|
|
6084
|
+
}
|
|
6085
|
+
break;
|
|
6086
|
+
case 3336:
|
|
6087
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6088
|
+
this.trimArrowBatchesToLimit = input.readBool();
|
|
6089
|
+
} else {
|
|
6090
|
+
input.skip(ftype);
|
|
6091
|
+
}
|
|
6092
|
+
break;
|
|
6093
|
+
case 3337:
|
|
6094
|
+
if (ftype == Thrift.Type.I32) {
|
|
6095
|
+
this.fetchDisposition = input.readI32();
|
|
6096
|
+
} else {
|
|
6097
|
+
input.skip(ftype);
|
|
6098
|
+
}
|
|
6099
|
+
break;
|
|
6100
|
+
case 3344:
|
|
6101
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6102
|
+
this.enforceResultPersistenceMode = input.readBool();
|
|
6103
|
+
} else {
|
|
6104
|
+
input.skip(ftype);
|
|
6105
|
+
}
|
|
6106
|
+
break;
|
|
6107
|
+
case 3345:
|
|
6108
|
+
if (ftype == Thrift.Type.LIST) {
|
|
6109
|
+
this.statementList = [];
|
|
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);
|
|
6117
|
+
}
|
|
6118
|
+
input.readListEnd();
|
|
6119
|
+
} else {
|
|
6120
|
+
input.skip(ftype);
|
|
6121
|
+
}
|
|
6122
|
+
break;
|
|
6123
|
+
case 3346:
|
|
6124
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6125
|
+
this.persistResultManifest = input.readBool();
|
|
6126
|
+
} else {
|
|
6127
|
+
input.skip(ftype);
|
|
6128
|
+
}
|
|
6129
|
+
break;
|
|
6130
|
+
case 3347:
|
|
6131
|
+
if (ftype == Thrift.Type.I64) {
|
|
6132
|
+
this.resultRetentionSeconds = input.readI64();
|
|
6133
|
+
} else {
|
|
6134
|
+
input.skip(ftype);
|
|
6135
|
+
}
|
|
6136
|
+
break;
|
|
6137
|
+
case 3348:
|
|
6138
|
+
if (ftype == Thrift.Type.I64) {
|
|
6139
|
+
this.resultByteLimit = input.readI64();
|
|
6140
|
+
} else {
|
|
6141
|
+
input.skip(ftype);
|
|
6142
|
+
}
|
|
6143
|
+
break;
|
|
6144
|
+
case 3349:
|
|
6145
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6146
|
+
this.resultDataFormat = new ttypes.TDBSqlResultFormat();
|
|
6147
|
+
this.resultDataFormat.read(input);
|
|
6148
|
+
} else {
|
|
6149
|
+
input.skip(ftype);
|
|
6150
|
+
}
|
|
6151
|
+
break;
|
|
6152
|
+
case 3350:
|
|
6153
|
+
if (ftype == Thrift.Type.STRING) {
|
|
6154
|
+
this.originatingClientIdentity = input.readString();
|
|
6155
|
+
} else {
|
|
6156
|
+
input.skip(ftype);
|
|
6157
|
+
}
|
|
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;
|
|
4988
6187
|
default:
|
|
4989
6188
|
input.skip(ftype);
|
|
4990
6189
|
}
|
|
@@ -5009,11 +6208,11 @@ TExecuteStatementReq.prototype.write = function(output) {
|
|
|
5009
6208
|
if (this.confOverlay !== null && this.confOverlay !== undefined) {
|
|
5010
6209
|
output.writeFieldBegin('confOverlay', Thrift.Type.MAP, 3);
|
|
5011
6210
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confOverlay));
|
|
5012
|
-
for (var
|
|
5013
|
-
if (this.confOverlay.hasOwnProperty(
|
|
5014
|
-
var
|
|
5015
|
-
output.writeString(
|
|
5016
|
-
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);
|
|
5017
6216
|
}
|
|
5018
6217
|
}
|
|
5019
6218
|
output.writeMapEnd();
|
|
@@ -5059,29 +6258,459 @@ TExecuteStatementReq.prototype.write = function(output) {
|
|
|
5059
6258
|
this.useArrowNativeTypes.write(output);
|
|
5060
6259
|
output.writeFieldEnd();
|
|
5061
6260
|
}
|
|
6261
|
+
if (this.resultRowLimit !== null && this.resultRowLimit !== undefined) {
|
|
6262
|
+
output.writeFieldBegin('resultRowLimit', Thrift.Type.I64, 1287);
|
|
6263
|
+
output.writeI64(this.resultRowLimit);
|
|
6264
|
+
output.writeFieldEnd();
|
|
6265
|
+
}
|
|
6266
|
+
if (this.parameters !== null && this.parameters !== undefined) {
|
|
6267
|
+
output.writeFieldBegin('parameters', Thrift.Type.LIST, 1288);
|
|
6268
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.parameters.length);
|
|
6269
|
+
for (var iter197 in this.parameters) {
|
|
6270
|
+
if (this.parameters.hasOwnProperty(iter197)) {
|
|
6271
|
+
iter197 = this.parameters[iter197];
|
|
6272
|
+
iter197.write(output);
|
|
6273
|
+
}
|
|
6274
|
+
}
|
|
6275
|
+
output.writeListEnd();
|
|
6276
|
+
output.writeFieldEnd();
|
|
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
|
+
}
|
|
5062
6288
|
if (this.operationId !== null && this.operationId !== undefined) {
|
|
5063
6289
|
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
5064
6290
|
this.operationId.write(output);
|
|
5065
6291
|
output.writeFieldEnd();
|
|
5066
6292
|
}
|
|
5067
|
-
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
5068
|
-
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
5069
|
-
this.sessionConf.write(output);
|
|
6293
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
6294
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
6295
|
+
this.sessionConf.write(output);
|
|
6296
|
+
output.writeFieldEnd();
|
|
6297
|
+
}
|
|
6298
|
+
if (this.rejectHighCostQueries !== null && this.rejectHighCostQueries !== undefined) {
|
|
6299
|
+
output.writeFieldBegin('rejectHighCostQueries', Thrift.Type.BOOL, 3331);
|
|
6300
|
+
output.writeBool(this.rejectHighCostQueries);
|
|
6301
|
+
output.writeFieldEnd();
|
|
6302
|
+
}
|
|
6303
|
+
if (this.estimatedCost !== null && this.estimatedCost !== undefined) {
|
|
6304
|
+
output.writeFieldBegin('estimatedCost', Thrift.Type.DOUBLE, 3332);
|
|
6305
|
+
output.writeDouble(this.estimatedCost);
|
|
6306
|
+
output.writeFieldEnd();
|
|
6307
|
+
}
|
|
6308
|
+
if (this.executionVersion !== null && this.executionVersion !== undefined) {
|
|
6309
|
+
output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3333);
|
|
6310
|
+
output.writeI16(this.executionVersion);
|
|
6311
|
+
output.writeFieldEnd();
|
|
6312
|
+
}
|
|
6313
|
+
if (this.requestValidation !== null && this.requestValidation !== undefined) {
|
|
6314
|
+
output.writeFieldBegin('requestValidation', Thrift.Type.STRING, 3334);
|
|
6315
|
+
output.writeBinary(this.requestValidation);
|
|
6316
|
+
output.writeFieldEnd();
|
|
6317
|
+
}
|
|
6318
|
+
if (this.resultPersistenceMode !== null && this.resultPersistenceMode !== undefined) {
|
|
6319
|
+
output.writeFieldBegin('resultPersistenceMode', Thrift.Type.I32, 3335);
|
|
6320
|
+
output.writeI32(this.resultPersistenceMode);
|
|
6321
|
+
output.writeFieldEnd();
|
|
6322
|
+
}
|
|
6323
|
+
if (this.trimArrowBatchesToLimit !== null && this.trimArrowBatchesToLimit !== undefined) {
|
|
6324
|
+
output.writeFieldBegin('trimArrowBatchesToLimit', Thrift.Type.BOOL, 3336);
|
|
6325
|
+
output.writeBool(this.trimArrowBatchesToLimit);
|
|
6326
|
+
output.writeFieldEnd();
|
|
6327
|
+
}
|
|
6328
|
+
if (this.fetchDisposition !== null && this.fetchDisposition !== undefined) {
|
|
6329
|
+
output.writeFieldBegin('fetchDisposition', Thrift.Type.I32, 3337);
|
|
6330
|
+
output.writeI32(this.fetchDisposition);
|
|
6331
|
+
output.writeFieldEnd();
|
|
6332
|
+
}
|
|
6333
|
+
if (this.enforceResultPersistenceMode !== null && this.enforceResultPersistenceMode !== undefined) {
|
|
6334
|
+
output.writeFieldBegin('enforceResultPersistenceMode', Thrift.Type.BOOL, 3344);
|
|
6335
|
+
output.writeBool(this.enforceResultPersistenceMode);
|
|
6336
|
+
output.writeFieldEnd();
|
|
6337
|
+
}
|
|
6338
|
+
if (this.statementList !== null && this.statementList !== undefined) {
|
|
6339
|
+
output.writeFieldBegin('statementList', Thrift.Type.LIST, 3345);
|
|
6340
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.statementList.length);
|
|
6341
|
+
for (var iter198 in this.statementList) {
|
|
6342
|
+
if (this.statementList.hasOwnProperty(iter198)) {
|
|
6343
|
+
iter198 = this.statementList[iter198];
|
|
6344
|
+
iter198.write(output);
|
|
6345
|
+
}
|
|
6346
|
+
}
|
|
6347
|
+
output.writeListEnd();
|
|
6348
|
+
output.writeFieldEnd();
|
|
6349
|
+
}
|
|
6350
|
+
if (this.persistResultManifest !== null && this.persistResultManifest !== undefined) {
|
|
6351
|
+
output.writeFieldBegin('persistResultManifest', Thrift.Type.BOOL, 3346);
|
|
6352
|
+
output.writeBool(this.persistResultManifest);
|
|
6353
|
+
output.writeFieldEnd();
|
|
6354
|
+
}
|
|
6355
|
+
if (this.resultRetentionSeconds !== null && this.resultRetentionSeconds !== undefined) {
|
|
6356
|
+
output.writeFieldBegin('resultRetentionSeconds', Thrift.Type.I64, 3347);
|
|
6357
|
+
output.writeI64(this.resultRetentionSeconds);
|
|
6358
|
+
output.writeFieldEnd();
|
|
6359
|
+
}
|
|
6360
|
+
if (this.resultByteLimit !== null && this.resultByteLimit !== undefined) {
|
|
6361
|
+
output.writeFieldBegin('resultByteLimit', Thrift.Type.I64, 3348);
|
|
6362
|
+
output.writeI64(this.resultByteLimit);
|
|
6363
|
+
output.writeFieldEnd();
|
|
6364
|
+
}
|
|
6365
|
+
if (this.resultDataFormat !== null && this.resultDataFormat !== undefined) {
|
|
6366
|
+
output.writeFieldBegin('resultDataFormat', Thrift.Type.STRUCT, 3349);
|
|
6367
|
+
this.resultDataFormat.write(output);
|
|
6368
|
+
output.writeFieldEnd();
|
|
6369
|
+
}
|
|
6370
|
+
if (this.originatingClientIdentity !== null && this.originatingClientIdentity !== undefined) {
|
|
6371
|
+
output.writeFieldBegin('originatingClientIdentity', Thrift.Type.STRING, 3350);
|
|
6372
|
+
output.writeString(this.originatingClientIdentity);
|
|
6373
|
+
output.writeFieldEnd();
|
|
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
|
+
}
|
|
6395
|
+
output.writeFieldStop();
|
|
6396
|
+
output.writeStructEnd();
|
|
6397
|
+
return;
|
|
6398
|
+
};
|
|
6399
|
+
|
|
6400
|
+
var TDBSqlStatement = module.exports.TDBSqlStatement = function(args) {
|
|
6401
|
+
this.statement = null;
|
|
6402
|
+
if (args) {
|
|
6403
|
+
if (args.statement !== undefined && args.statement !== null) {
|
|
6404
|
+
this.statement = args.statement;
|
|
6405
|
+
}
|
|
6406
|
+
}
|
|
6407
|
+
};
|
|
6408
|
+
TDBSqlStatement.prototype = {};
|
|
6409
|
+
TDBSqlStatement.prototype.read = function(input) {
|
|
6410
|
+
input.readStructBegin();
|
|
6411
|
+
while (true) {
|
|
6412
|
+
var ret = input.readFieldBegin();
|
|
6413
|
+
var ftype = ret.ftype;
|
|
6414
|
+
var fid = ret.fid;
|
|
6415
|
+
if (ftype == Thrift.Type.STOP) {
|
|
6416
|
+
break;
|
|
6417
|
+
}
|
|
6418
|
+
switch (fid) {
|
|
6419
|
+
case 1:
|
|
6420
|
+
if (ftype == Thrift.Type.STRING) {
|
|
6421
|
+
this.statement = input.readString();
|
|
6422
|
+
} else {
|
|
6423
|
+
input.skip(ftype);
|
|
6424
|
+
}
|
|
6425
|
+
break;
|
|
6426
|
+
case 0:
|
|
6427
|
+
input.skip(ftype);
|
|
6428
|
+
break;
|
|
6429
|
+
default:
|
|
6430
|
+
input.skip(ftype);
|
|
6431
|
+
}
|
|
6432
|
+
input.readFieldEnd();
|
|
6433
|
+
}
|
|
6434
|
+
input.readStructEnd();
|
|
6435
|
+
return;
|
|
6436
|
+
};
|
|
6437
|
+
|
|
6438
|
+
TDBSqlStatement.prototype.write = function(output) {
|
|
6439
|
+
output.writeStructBegin('TDBSqlStatement');
|
|
6440
|
+
if (this.statement !== null && this.statement !== undefined) {
|
|
6441
|
+
output.writeFieldBegin('statement', Thrift.Type.STRING, 1);
|
|
6442
|
+
output.writeString(this.statement);
|
|
6443
|
+
output.writeFieldEnd();
|
|
6444
|
+
}
|
|
6445
|
+
output.writeFieldStop();
|
|
6446
|
+
output.writeStructEnd();
|
|
6447
|
+
return;
|
|
6448
|
+
};
|
|
6449
|
+
|
|
6450
|
+
var TSparkParameterValue = module.exports.TSparkParameterValue = function(args) {
|
|
6451
|
+
this.stringValue = null;
|
|
6452
|
+
this.doubleValue = null;
|
|
6453
|
+
this.booleanValue = null;
|
|
6454
|
+
if (args) {
|
|
6455
|
+
if (args.stringValue !== undefined && args.stringValue !== null) {
|
|
6456
|
+
this.stringValue = args.stringValue;
|
|
6457
|
+
}
|
|
6458
|
+
if (args.doubleValue !== undefined && args.doubleValue !== null) {
|
|
6459
|
+
this.doubleValue = args.doubleValue;
|
|
6460
|
+
}
|
|
6461
|
+
if (args.booleanValue !== undefined && args.booleanValue !== null) {
|
|
6462
|
+
this.booleanValue = args.booleanValue;
|
|
6463
|
+
}
|
|
6464
|
+
}
|
|
6465
|
+
};
|
|
6466
|
+
TSparkParameterValue.prototype = {};
|
|
6467
|
+
TSparkParameterValue.prototype.read = function(input) {
|
|
6468
|
+
input.readStructBegin();
|
|
6469
|
+
while (true) {
|
|
6470
|
+
var ret = input.readFieldBegin();
|
|
6471
|
+
var ftype = ret.ftype;
|
|
6472
|
+
var fid = ret.fid;
|
|
6473
|
+
if (ftype == Thrift.Type.STOP) {
|
|
6474
|
+
break;
|
|
6475
|
+
}
|
|
6476
|
+
switch (fid) {
|
|
6477
|
+
case 1:
|
|
6478
|
+
if (ftype == Thrift.Type.STRING) {
|
|
6479
|
+
this.stringValue = input.readString();
|
|
6480
|
+
} else {
|
|
6481
|
+
input.skip(ftype);
|
|
6482
|
+
}
|
|
6483
|
+
break;
|
|
6484
|
+
case 2:
|
|
6485
|
+
if (ftype == Thrift.Type.DOUBLE) {
|
|
6486
|
+
this.doubleValue = input.readDouble();
|
|
6487
|
+
} else {
|
|
6488
|
+
input.skip(ftype);
|
|
6489
|
+
}
|
|
6490
|
+
break;
|
|
6491
|
+
case 3:
|
|
6492
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6493
|
+
this.booleanValue = input.readBool();
|
|
6494
|
+
} else {
|
|
6495
|
+
input.skip(ftype);
|
|
6496
|
+
}
|
|
6497
|
+
break;
|
|
6498
|
+
default:
|
|
6499
|
+
input.skip(ftype);
|
|
6500
|
+
}
|
|
6501
|
+
input.readFieldEnd();
|
|
6502
|
+
}
|
|
6503
|
+
input.readStructEnd();
|
|
6504
|
+
return;
|
|
6505
|
+
};
|
|
6506
|
+
|
|
6507
|
+
TSparkParameterValue.prototype.write = function(output) {
|
|
6508
|
+
output.writeStructBegin('TSparkParameterValue');
|
|
6509
|
+
if (this.stringValue !== null && this.stringValue !== undefined) {
|
|
6510
|
+
output.writeFieldBegin('stringValue', Thrift.Type.STRING, 1);
|
|
6511
|
+
output.writeString(this.stringValue);
|
|
6512
|
+
output.writeFieldEnd();
|
|
6513
|
+
}
|
|
6514
|
+
if (this.doubleValue !== null && this.doubleValue !== undefined) {
|
|
6515
|
+
output.writeFieldBegin('doubleValue', Thrift.Type.DOUBLE, 2);
|
|
6516
|
+
output.writeDouble(this.doubleValue);
|
|
6517
|
+
output.writeFieldEnd();
|
|
6518
|
+
}
|
|
6519
|
+
if (this.booleanValue !== null && this.booleanValue !== undefined) {
|
|
6520
|
+
output.writeFieldBegin('booleanValue', Thrift.Type.BOOL, 3);
|
|
6521
|
+
output.writeBool(this.booleanValue);
|
|
6522
|
+
output.writeFieldEnd();
|
|
6523
|
+
}
|
|
6524
|
+
output.writeFieldStop();
|
|
6525
|
+
output.writeStructEnd();
|
|
6526
|
+
return;
|
|
6527
|
+
};
|
|
6528
|
+
|
|
6529
|
+
var TSparkParameter = module.exports.TSparkParameter = function(args) {
|
|
6530
|
+
this.ordinal = null;
|
|
6531
|
+
this.name = null;
|
|
6532
|
+
this.type = null;
|
|
6533
|
+
this.value = null;
|
|
6534
|
+
if (args) {
|
|
6535
|
+
if (args.ordinal !== undefined && args.ordinal !== null) {
|
|
6536
|
+
this.ordinal = args.ordinal;
|
|
6537
|
+
}
|
|
6538
|
+
if (args.name !== undefined && args.name !== null) {
|
|
6539
|
+
this.name = args.name;
|
|
6540
|
+
}
|
|
6541
|
+
if (args.type !== undefined && args.type !== null) {
|
|
6542
|
+
this.type = args.type;
|
|
6543
|
+
}
|
|
6544
|
+
if (args.value !== undefined && args.value !== null) {
|
|
6545
|
+
this.value = new ttypes.TSparkParameterValue(args.value);
|
|
6546
|
+
}
|
|
6547
|
+
}
|
|
6548
|
+
};
|
|
6549
|
+
TSparkParameter.prototype = {};
|
|
6550
|
+
TSparkParameter.prototype.read = function(input) {
|
|
6551
|
+
input.readStructBegin();
|
|
6552
|
+
while (true) {
|
|
6553
|
+
var ret = input.readFieldBegin();
|
|
6554
|
+
var ftype = ret.ftype;
|
|
6555
|
+
var fid = ret.fid;
|
|
6556
|
+
if (ftype == Thrift.Type.STOP) {
|
|
6557
|
+
break;
|
|
6558
|
+
}
|
|
6559
|
+
switch (fid) {
|
|
6560
|
+
case 1:
|
|
6561
|
+
if (ftype == Thrift.Type.I32) {
|
|
6562
|
+
this.ordinal = input.readI32();
|
|
6563
|
+
} else {
|
|
6564
|
+
input.skip(ftype);
|
|
6565
|
+
}
|
|
6566
|
+
break;
|
|
6567
|
+
case 2:
|
|
6568
|
+
if (ftype == Thrift.Type.STRING) {
|
|
6569
|
+
this.name = input.readString();
|
|
6570
|
+
} else {
|
|
6571
|
+
input.skip(ftype);
|
|
6572
|
+
}
|
|
6573
|
+
break;
|
|
6574
|
+
case 3:
|
|
6575
|
+
if (ftype == Thrift.Type.STRING) {
|
|
6576
|
+
this.type = input.readString();
|
|
6577
|
+
} else {
|
|
6578
|
+
input.skip(ftype);
|
|
6579
|
+
}
|
|
6580
|
+
break;
|
|
6581
|
+
case 4:
|
|
6582
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6583
|
+
this.value = new ttypes.TSparkParameterValue();
|
|
6584
|
+
this.value.read(input);
|
|
6585
|
+
} else {
|
|
6586
|
+
input.skip(ftype);
|
|
6587
|
+
}
|
|
6588
|
+
break;
|
|
6589
|
+
default:
|
|
6590
|
+
input.skip(ftype);
|
|
6591
|
+
}
|
|
6592
|
+
input.readFieldEnd();
|
|
6593
|
+
}
|
|
6594
|
+
input.readStructEnd();
|
|
6595
|
+
return;
|
|
6596
|
+
};
|
|
6597
|
+
|
|
6598
|
+
TSparkParameter.prototype.write = function(output) {
|
|
6599
|
+
output.writeStructBegin('TSparkParameter');
|
|
6600
|
+
if (this.ordinal !== null && this.ordinal !== undefined) {
|
|
6601
|
+
output.writeFieldBegin('ordinal', Thrift.Type.I32, 1);
|
|
6602
|
+
output.writeI32(this.ordinal);
|
|
6603
|
+
output.writeFieldEnd();
|
|
6604
|
+
}
|
|
6605
|
+
if (this.name !== null && this.name !== undefined) {
|
|
6606
|
+
output.writeFieldBegin('name', Thrift.Type.STRING, 2);
|
|
6607
|
+
output.writeString(this.name);
|
|
6608
|
+
output.writeFieldEnd();
|
|
6609
|
+
}
|
|
6610
|
+
if (this.type !== null && this.type !== undefined) {
|
|
6611
|
+
output.writeFieldBegin('type', Thrift.Type.STRING, 3);
|
|
6612
|
+
output.writeString(this.type);
|
|
6613
|
+
output.writeFieldEnd();
|
|
6614
|
+
}
|
|
6615
|
+
if (this.value !== null && this.value !== undefined) {
|
|
6616
|
+
output.writeFieldBegin('value', Thrift.Type.STRUCT, 4);
|
|
6617
|
+
this.value.write(output);
|
|
6618
|
+
output.writeFieldEnd();
|
|
6619
|
+
}
|
|
6620
|
+
output.writeFieldStop();
|
|
6621
|
+
output.writeStructEnd();
|
|
6622
|
+
return;
|
|
6623
|
+
};
|
|
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);
|
|
5070
6699
|
output.writeFieldEnd();
|
|
5071
6700
|
}
|
|
5072
|
-
if (this.
|
|
5073
|
-
output.writeFieldBegin('
|
|
5074
|
-
|
|
6701
|
+
if (this.initialNamespace !== null && this.initialNamespace !== undefined) {
|
|
6702
|
+
output.writeFieldBegin('initialNamespace', Thrift.Type.STRUCT, 2);
|
|
6703
|
+
this.initialNamespace.write(output);
|
|
5075
6704
|
output.writeFieldEnd();
|
|
5076
6705
|
}
|
|
5077
|
-
if (this.
|
|
5078
|
-
output.writeFieldBegin('
|
|
5079
|
-
output.
|
|
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);
|
|
5080
6709
|
output.writeFieldEnd();
|
|
5081
6710
|
}
|
|
5082
|
-
if (this.
|
|
5083
|
-
output.writeFieldBegin('
|
|
5084
|
-
output.
|
|
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);
|
|
5085
6714
|
output.writeFieldEnd();
|
|
5086
6715
|
}
|
|
5087
6716
|
output.writeFieldStop();
|
|
@@ -5099,6 +6728,9 @@ var TExecuteStatementResp = module.exports.TExecuteStatementResp = function(args
|
|
|
5099
6728
|
this.sessionConf = null;
|
|
5100
6729
|
this.currentClusterLoad = null;
|
|
5101
6730
|
this.idempotencyType = null;
|
|
6731
|
+
this.remoteResultCacheEnabled = null;
|
|
6732
|
+
this.isServerless = null;
|
|
6733
|
+
this.operationHandles = null;
|
|
5102
6734
|
if (args) {
|
|
5103
6735
|
if (args.status !== undefined && args.status !== null) {
|
|
5104
6736
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -5129,6 +6761,15 @@ var TExecuteStatementResp = module.exports.TExecuteStatementResp = function(args
|
|
|
5129
6761
|
if (args.idempotencyType !== undefined && args.idempotencyType !== null) {
|
|
5130
6762
|
this.idempotencyType = args.idempotencyType;
|
|
5131
6763
|
}
|
|
6764
|
+
if (args.remoteResultCacheEnabled !== undefined && args.remoteResultCacheEnabled !== null) {
|
|
6765
|
+
this.remoteResultCacheEnabled = args.remoteResultCacheEnabled;
|
|
6766
|
+
}
|
|
6767
|
+
if (args.isServerless !== undefined && args.isServerless !== null) {
|
|
6768
|
+
this.isServerless = args.isServerless;
|
|
6769
|
+
}
|
|
6770
|
+
if (args.operationHandles !== undefined && args.operationHandles !== null) {
|
|
6771
|
+
this.operationHandles = Thrift.copyList(args.operationHandles, [ttypes.TOperationHandle]);
|
|
6772
|
+
}
|
|
5132
6773
|
}
|
|
5133
6774
|
};
|
|
5134
6775
|
TExecuteStatementResp.prototype = {};
|
|
@@ -5209,6 +6850,36 @@ TExecuteStatementResp.prototype.read = function(input) {
|
|
|
5209
6850
|
input.skip(ftype);
|
|
5210
6851
|
}
|
|
5211
6852
|
break;
|
|
6853
|
+
case 3335:
|
|
6854
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6855
|
+
this.remoteResultCacheEnabled = input.readBool();
|
|
6856
|
+
} else {
|
|
6857
|
+
input.skip(ftype);
|
|
6858
|
+
}
|
|
6859
|
+
break;
|
|
6860
|
+
case 3336:
|
|
6861
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6862
|
+
this.isServerless = input.readBool();
|
|
6863
|
+
} else {
|
|
6864
|
+
input.skip(ftype);
|
|
6865
|
+
}
|
|
6866
|
+
break;
|
|
6867
|
+
case 3337:
|
|
6868
|
+
if (ftype == Thrift.Type.LIST) {
|
|
6869
|
+
this.operationHandles = [];
|
|
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);
|
|
6877
|
+
}
|
|
6878
|
+
input.readListEnd();
|
|
6879
|
+
} else {
|
|
6880
|
+
input.skip(ftype);
|
|
6881
|
+
}
|
|
6882
|
+
break;
|
|
5212
6883
|
default:
|
|
5213
6884
|
input.skip(ftype);
|
|
5214
6885
|
}
|
|
@@ -5265,6 +6936,28 @@ TExecuteStatementResp.prototype.write = function(output) {
|
|
|
5265
6936
|
output.writeI32(this.idempotencyType);
|
|
5266
6937
|
output.writeFieldEnd();
|
|
5267
6938
|
}
|
|
6939
|
+
if (this.remoteResultCacheEnabled !== null && this.remoteResultCacheEnabled !== undefined) {
|
|
6940
|
+
output.writeFieldBegin('remoteResultCacheEnabled', Thrift.Type.BOOL, 3335);
|
|
6941
|
+
output.writeBool(this.remoteResultCacheEnabled);
|
|
6942
|
+
output.writeFieldEnd();
|
|
6943
|
+
}
|
|
6944
|
+
if (this.isServerless !== null && this.isServerless !== undefined) {
|
|
6945
|
+
output.writeFieldBegin('isServerless', Thrift.Type.BOOL, 3336);
|
|
6946
|
+
output.writeBool(this.isServerless);
|
|
6947
|
+
output.writeFieldEnd();
|
|
6948
|
+
}
|
|
6949
|
+
if (this.operationHandles !== null && this.operationHandles !== undefined) {
|
|
6950
|
+
output.writeFieldBegin('operationHandles', Thrift.Type.LIST, 3337);
|
|
6951
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.operationHandles.length);
|
|
6952
|
+
for (var iter203 in this.operationHandles) {
|
|
6953
|
+
if (this.operationHandles.hasOwnProperty(iter203)) {
|
|
6954
|
+
iter203 = this.operationHandles[iter203];
|
|
6955
|
+
iter203.write(output);
|
|
6956
|
+
}
|
|
6957
|
+
}
|
|
6958
|
+
output.writeListEnd();
|
|
6959
|
+
output.writeFieldEnd();
|
|
6960
|
+
}
|
|
5268
6961
|
output.writeFieldStop();
|
|
5269
6962
|
output.writeStructEnd();
|
|
5270
6963
|
return;
|
|
@@ -5990,12 +7683,12 @@ TGetTablesReq.prototype.read = function(input) {
|
|
|
5990
7683
|
case 5:
|
|
5991
7684
|
if (ftype == Thrift.Type.LIST) {
|
|
5992
7685
|
this.tableTypes = [];
|
|
5993
|
-
var
|
|
5994
|
-
var
|
|
5995
|
-
for (var
|
|
5996
|
-
var
|
|
5997
|
-
|
|
5998
|
-
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);
|
|
5999
7692
|
}
|
|
6000
7693
|
input.readListEnd();
|
|
6001
7694
|
} else {
|
|
@@ -6067,10 +7760,10 @@ TGetTablesReq.prototype.write = function(output) {
|
|
|
6067
7760
|
if (this.tableTypes !== null && this.tableTypes !== undefined) {
|
|
6068
7761
|
output.writeFieldBegin('tableTypes', Thrift.Type.LIST, 5);
|
|
6069
7762
|
output.writeListBegin(Thrift.Type.STRING, this.tableTypes.length);
|
|
6070
|
-
for (var
|
|
6071
|
-
if (this.tableTypes.hasOwnProperty(
|
|
6072
|
-
|
|
6073
|
-
output.writeString(
|
|
7763
|
+
for (var iter208 in this.tableTypes) {
|
|
7764
|
+
if (this.tableTypes.hasOwnProperty(iter208)) {
|
|
7765
|
+
iter208 = this.tableTypes[iter208];
|
|
7766
|
+
output.writeString(iter208);
|
|
6074
7767
|
}
|
|
6075
7768
|
}
|
|
6076
7769
|
output.writeListEnd();
|
|
@@ -7528,6 +9221,11 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
|
|
|
7528
9221
|
this.numModifiedRows = null;
|
|
7529
9222
|
this.displayMessage = null;
|
|
7530
9223
|
this.diagnosticInfo = null;
|
|
9224
|
+
this.errorDetailsJson = null;
|
|
9225
|
+
this.responseValidation = null;
|
|
9226
|
+
this.idempotencyType = null;
|
|
9227
|
+
this.statementTimeout = null;
|
|
9228
|
+
this.statementTimeoutLevel = null;
|
|
7531
9229
|
if (args) {
|
|
7532
9230
|
if (args.status !== undefined && args.status !== null) {
|
|
7533
9231
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -7570,6 +9268,21 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
|
|
|
7570
9268
|
if (args.diagnosticInfo !== undefined && args.diagnosticInfo !== null) {
|
|
7571
9269
|
this.diagnosticInfo = args.diagnosticInfo;
|
|
7572
9270
|
}
|
|
9271
|
+
if (args.errorDetailsJson !== undefined && args.errorDetailsJson !== null) {
|
|
9272
|
+
this.errorDetailsJson = args.errorDetailsJson;
|
|
9273
|
+
}
|
|
9274
|
+
if (args.responseValidation !== undefined && args.responseValidation !== null) {
|
|
9275
|
+
this.responseValidation = args.responseValidation;
|
|
9276
|
+
}
|
|
9277
|
+
if (args.idempotencyType !== undefined && args.idempotencyType !== null) {
|
|
9278
|
+
this.idempotencyType = args.idempotencyType;
|
|
9279
|
+
}
|
|
9280
|
+
if (args.statementTimeout !== undefined && args.statementTimeout !== null) {
|
|
9281
|
+
this.statementTimeout = args.statementTimeout;
|
|
9282
|
+
}
|
|
9283
|
+
if (args.statementTimeoutLevel !== undefined && args.statementTimeoutLevel !== null) {
|
|
9284
|
+
this.statementTimeoutLevel = args.statementTimeoutLevel;
|
|
9285
|
+
}
|
|
7573
9286
|
}
|
|
7574
9287
|
};
|
|
7575
9288
|
TGetOperationStatusResp.prototype = {};
|
|
@@ -7676,6 +9389,41 @@ TGetOperationStatusResp.prototype.read = function(input) {
|
|
|
7676
9389
|
input.skip(ftype);
|
|
7677
9390
|
}
|
|
7678
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;
|
|
9399
|
+
case 3329:
|
|
9400
|
+
if (ftype == Thrift.Type.STRING) {
|
|
9401
|
+
this.responseValidation = input.readBinary();
|
|
9402
|
+
} else {
|
|
9403
|
+
input.skip(ftype);
|
|
9404
|
+
}
|
|
9405
|
+
break;
|
|
9406
|
+
case 3330:
|
|
9407
|
+
if (ftype == Thrift.Type.I32) {
|
|
9408
|
+
this.idempotencyType = input.readI32();
|
|
9409
|
+
} else {
|
|
9410
|
+
input.skip(ftype);
|
|
9411
|
+
}
|
|
9412
|
+
break;
|
|
9413
|
+
case 3331:
|
|
9414
|
+
if (ftype == Thrift.Type.I64) {
|
|
9415
|
+
this.statementTimeout = input.readI64();
|
|
9416
|
+
} else {
|
|
9417
|
+
input.skip(ftype);
|
|
9418
|
+
}
|
|
9419
|
+
break;
|
|
9420
|
+
case 3332:
|
|
9421
|
+
if (ftype == Thrift.Type.I32) {
|
|
9422
|
+
this.statementTimeoutLevel = input.readI32();
|
|
9423
|
+
} else {
|
|
9424
|
+
input.skip(ftype);
|
|
9425
|
+
}
|
|
9426
|
+
break;
|
|
7679
9427
|
default:
|
|
7680
9428
|
input.skip(ftype);
|
|
7681
9429
|
}
|
|
@@ -7752,6 +9500,31 @@ TGetOperationStatusResp.prototype.write = function(output) {
|
|
|
7752
9500
|
output.writeString(this.diagnosticInfo);
|
|
7753
9501
|
output.writeFieldEnd();
|
|
7754
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
|
+
}
|
|
9508
|
+
if (this.responseValidation !== null && this.responseValidation !== undefined) {
|
|
9509
|
+
output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
|
|
9510
|
+
output.writeBinary(this.responseValidation);
|
|
9511
|
+
output.writeFieldEnd();
|
|
9512
|
+
}
|
|
9513
|
+
if (this.idempotencyType !== null && this.idempotencyType !== undefined) {
|
|
9514
|
+
output.writeFieldBegin('idempotencyType', Thrift.Type.I32, 3330);
|
|
9515
|
+
output.writeI32(this.idempotencyType);
|
|
9516
|
+
output.writeFieldEnd();
|
|
9517
|
+
}
|
|
9518
|
+
if (this.statementTimeout !== null && this.statementTimeout !== undefined) {
|
|
9519
|
+
output.writeFieldBegin('statementTimeout', Thrift.Type.I64, 3331);
|
|
9520
|
+
output.writeI64(this.statementTimeout);
|
|
9521
|
+
output.writeFieldEnd();
|
|
9522
|
+
}
|
|
9523
|
+
if (this.statementTimeoutLevel !== null && this.statementTimeoutLevel !== undefined) {
|
|
9524
|
+
output.writeFieldBegin('statementTimeoutLevel', Thrift.Type.I32, 3332);
|
|
9525
|
+
output.writeI32(this.statementTimeoutLevel);
|
|
9526
|
+
output.writeFieldEnd();
|
|
9527
|
+
}
|
|
7755
9528
|
output.writeFieldStop();
|
|
7756
9529
|
output.writeStructEnd();
|
|
7757
9530
|
return;
|
|
@@ -7760,6 +9533,7 @@ TGetOperationStatusResp.prototype.write = function(output) {
|
|
|
7760
9533
|
var TCancelOperationReq = module.exports.TCancelOperationReq = function(args) {
|
|
7761
9534
|
this.operationHandle = null;
|
|
7762
9535
|
this.executionVersion = null;
|
|
9536
|
+
this.replacedByNextAttempt = null;
|
|
7763
9537
|
if (args) {
|
|
7764
9538
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
7765
9539
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
@@ -7769,6 +9543,9 @@ var TCancelOperationReq = module.exports.TCancelOperationReq = function(args) {
|
|
|
7769
9543
|
if (args.executionVersion !== undefined && args.executionVersion !== null) {
|
|
7770
9544
|
this.executionVersion = args.executionVersion;
|
|
7771
9545
|
}
|
|
9546
|
+
if (args.replacedByNextAttempt !== undefined && args.replacedByNextAttempt !== null) {
|
|
9547
|
+
this.replacedByNextAttempt = args.replacedByNextAttempt;
|
|
9548
|
+
}
|
|
7772
9549
|
}
|
|
7773
9550
|
};
|
|
7774
9551
|
TCancelOperationReq.prototype = {};
|
|
@@ -7797,6 +9574,13 @@ TCancelOperationReq.prototype.read = function(input) {
|
|
|
7797
9574
|
input.skip(ftype);
|
|
7798
9575
|
}
|
|
7799
9576
|
break;
|
|
9577
|
+
case 3330:
|
|
9578
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
9579
|
+
this.replacedByNextAttempt = input.readBool();
|
|
9580
|
+
} else {
|
|
9581
|
+
input.skip(ftype);
|
|
9582
|
+
}
|
|
9583
|
+
break;
|
|
7800
9584
|
default:
|
|
7801
9585
|
input.skip(ftype);
|
|
7802
9586
|
}
|
|
@@ -7818,6 +9602,11 @@ TCancelOperationReq.prototype.write = function(output) {
|
|
|
7818
9602
|
output.writeI16(this.executionVersion);
|
|
7819
9603
|
output.writeFieldEnd();
|
|
7820
9604
|
}
|
|
9605
|
+
if (this.replacedByNextAttempt !== null && this.replacedByNextAttempt !== undefined) {
|
|
9606
|
+
output.writeFieldBegin('replacedByNextAttempt', Thrift.Type.BOOL, 3330);
|
|
9607
|
+
output.writeBool(this.replacedByNextAttempt);
|
|
9608
|
+
output.writeFieldEnd();
|
|
9609
|
+
}
|
|
7821
9610
|
output.writeFieldStop();
|
|
7822
9611
|
output.writeStructEnd();
|
|
7823
9612
|
return;
|
|
@@ -7984,12 +9773,16 @@ TCloseOperationResp.prototype.write = function(output) {
|
|
|
7984
9773
|
|
|
7985
9774
|
var TGetResultSetMetadataReq = module.exports.TGetResultSetMetadataReq = function(args) {
|
|
7986
9775
|
this.operationHandle = null;
|
|
9776
|
+
this.includeCloudResultFiles = null;
|
|
7987
9777
|
if (args) {
|
|
7988
9778
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
7989
9779
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
7990
9780
|
} else {
|
|
7991
9781
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field operationHandle is unset!');
|
|
7992
9782
|
}
|
|
9783
|
+
if (args.includeCloudResultFiles !== undefined && args.includeCloudResultFiles !== null) {
|
|
9784
|
+
this.includeCloudResultFiles = args.includeCloudResultFiles;
|
|
9785
|
+
}
|
|
7993
9786
|
}
|
|
7994
9787
|
};
|
|
7995
9788
|
TGetResultSetMetadataReq.prototype = {};
|
|
@@ -8011,9 +9804,13 @@ TGetResultSetMetadataReq.prototype.read = function(input) {
|
|
|
8011
9804
|
input.skip(ftype);
|
|
8012
9805
|
}
|
|
8013
9806
|
break;
|
|
8014
|
-
case
|
|
9807
|
+
case 3329:
|
|
9808
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
9809
|
+
this.includeCloudResultFiles = input.readBool();
|
|
9810
|
+
} else {
|
|
8015
9811
|
input.skip(ftype);
|
|
8016
|
-
|
|
9812
|
+
}
|
|
9813
|
+
break;
|
|
8017
9814
|
default:
|
|
8018
9815
|
input.skip(ftype);
|
|
8019
9816
|
}
|
|
@@ -8030,6 +9827,11 @@ TGetResultSetMetadataReq.prototype.write = function(output) {
|
|
|
8030
9827
|
this.operationHandle.write(output);
|
|
8031
9828
|
output.writeFieldEnd();
|
|
8032
9829
|
}
|
|
9830
|
+
if (this.includeCloudResultFiles !== null && this.includeCloudResultFiles !== undefined) {
|
|
9831
|
+
output.writeFieldBegin('includeCloudResultFiles', Thrift.Type.BOOL, 3329);
|
|
9832
|
+
output.writeBool(this.includeCloudResultFiles);
|
|
9833
|
+
output.writeFieldEnd();
|
|
9834
|
+
}
|
|
8033
9835
|
output.writeFieldStop();
|
|
8034
9836
|
output.writeStructEnd();
|
|
8035
9837
|
return;
|
|
@@ -8044,6 +9846,19 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
|
|
|
8044
9846
|
this.cacheLookupResult = null;
|
|
8045
9847
|
this.uncompressedBytes = null;
|
|
8046
9848
|
this.compressedBytes = null;
|
|
9849
|
+
this.isStagingOperation = null;
|
|
9850
|
+
this.reasonForNoCloudFetch = null;
|
|
9851
|
+
this.resultFiles = null;
|
|
9852
|
+
this.manifestFile = null;
|
|
9853
|
+
this.manifestFileFormat = null;
|
|
9854
|
+
this.cacheLookupLatency = null;
|
|
9855
|
+
this.remoteCacheMissReason = null;
|
|
9856
|
+
this.fetchDisposition = null;
|
|
9857
|
+
this.remoteResultCacheEnabled = null;
|
|
9858
|
+
this.isServerless = null;
|
|
9859
|
+
this.resultDataFormat = null;
|
|
9860
|
+
this.truncatedByThriftLimit = null;
|
|
9861
|
+
this.resultByteLimit = null;
|
|
8047
9862
|
if (args) {
|
|
8048
9863
|
if (args.status !== undefined && args.status !== null) {
|
|
8049
9864
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -8071,6 +9886,45 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
|
|
|
8071
9886
|
if (args.compressedBytes !== undefined && args.compressedBytes !== null) {
|
|
8072
9887
|
this.compressedBytes = args.compressedBytes;
|
|
8073
9888
|
}
|
|
9889
|
+
if (args.isStagingOperation !== undefined && args.isStagingOperation !== null) {
|
|
9890
|
+
this.isStagingOperation = args.isStagingOperation;
|
|
9891
|
+
}
|
|
9892
|
+
if (args.reasonForNoCloudFetch !== undefined && args.reasonForNoCloudFetch !== null) {
|
|
9893
|
+
this.reasonForNoCloudFetch = args.reasonForNoCloudFetch;
|
|
9894
|
+
}
|
|
9895
|
+
if (args.resultFiles !== undefined && args.resultFiles !== null) {
|
|
9896
|
+
this.resultFiles = Thrift.copyList(args.resultFiles, [ttypes.TDBSqlCloudResultFile]);
|
|
9897
|
+
}
|
|
9898
|
+
if (args.manifestFile !== undefined && args.manifestFile !== null) {
|
|
9899
|
+
this.manifestFile = args.manifestFile;
|
|
9900
|
+
}
|
|
9901
|
+
if (args.manifestFileFormat !== undefined && args.manifestFileFormat !== null) {
|
|
9902
|
+
this.manifestFileFormat = args.manifestFileFormat;
|
|
9903
|
+
}
|
|
9904
|
+
if (args.cacheLookupLatency !== undefined && args.cacheLookupLatency !== null) {
|
|
9905
|
+
this.cacheLookupLatency = args.cacheLookupLatency;
|
|
9906
|
+
}
|
|
9907
|
+
if (args.remoteCacheMissReason !== undefined && args.remoteCacheMissReason !== null) {
|
|
9908
|
+
this.remoteCacheMissReason = args.remoteCacheMissReason;
|
|
9909
|
+
}
|
|
9910
|
+
if (args.fetchDisposition !== undefined && args.fetchDisposition !== null) {
|
|
9911
|
+
this.fetchDisposition = args.fetchDisposition;
|
|
9912
|
+
}
|
|
9913
|
+
if (args.remoteResultCacheEnabled !== undefined && args.remoteResultCacheEnabled !== null) {
|
|
9914
|
+
this.remoteResultCacheEnabled = args.remoteResultCacheEnabled;
|
|
9915
|
+
}
|
|
9916
|
+
if (args.isServerless !== undefined && args.isServerless !== null) {
|
|
9917
|
+
this.isServerless = args.isServerless;
|
|
9918
|
+
}
|
|
9919
|
+
if (args.resultDataFormat !== undefined && args.resultDataFormat !== null) {
|
|
9920
|
+
this.resultDataFormat = new ttypes.TDBSqlResultFormat(args.resultDataFormat);
|
|
9921
|
+
}
|
|
9922
|
+
if (args.truncatedByThriftLimit !== undefined && args.truncatedByThriftLimit !== null) {
|
|
9923
|
+
this.truncatedByThriftLimit = args.truncatedByThriftLimit;
|
|
9924
|
+
}
|
|
9925
|
+
if (args.resultByteLimit !== undefined && args.resultByteLimit !== null) {
|
|
9926
|
+
this.resultByteLimit = args.resultByteLimit;
|
|
9927
|
+
}
|
|
8074
9928
|
}
|
|
8075
9929
|
};
|
|
8076
9930
|
TGetResultSetMetadataResp.prototype = {};
|
|
@@ -8142,6 +9996,107 @@ TGetResultSetMetadataResp.prototype.read = function(input) {
|
|
|
8142
9996
|
input.skip(ftype);
|
|
8143
9997
|
}
|
|
8144
9998
|
break;
|
|
9999
|
+
case 1287:
|
|
10000
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
10001
|
+
this.isStagingOperation = input.readBool();
|
|
10002
|
+
} else {
|
|
10003
|
+
input.skip(ftype);
|
|
10004
|
+
}
|
|
10005
|
+
break;
|
|
10006
|
+
case 3329:
|
|
10007
|
+
if (ftype == Thrift.Type.I32) {
|
|
10008
|
+
this.reasonForNoCloudFetch = input.readI32();
|
|
10009
|
+
} else {
|
|
10010
|
+
input.skip(ftype);
|
|
10011
|
+
}
|
|
10012
|
+
break;
|
|
10013
|
+
case 3330:
|
|
10014
|
+
if (ftype == Thrift.Type.LIST) {
|
|
10015
|
+
this.resultFiles = [];
|
|
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);
|
|
10023
|
+
}
|
|
10024
|
+
input.readListEnd();
|
|
10025
|
+
} else {
|
|
10026
|
+
input.skip(ftype);
|
|
10027
|
+
}
|
|
10028
|
+
break;
|
|
10029
|
+
case 3331:
|
|
10030
|
+
if (ftype == Thrift.Type.STRING) {
|
|
10031
|
+
this.manifestFile = input.readString();
|
|
10032
|
+
} else {
|
|
10033
|
+
input.skip(ftype);
|
|
10034
|
+
}
|
|
10035
|
+
break;
|
|
10036
|
+
case 3332:
|
|
10037
|
+
if (ftype == Thrift.Type.I32) {
|
|
10038
|
+
this.manifestFileFormat = input.readI32();
|
|
10039
|
+
} else {
|
|
10040
|
+
input.skip(ftype);
|
|
10041
|
+
}
|
|
10042
|
+
break;
|
|
10043
|
+
case 3333:
|
|
10044
|
+
if (ftype == Thrift.Type.I64) {
|
|
10045
|
+
this.cacheLookupLatency = input.readI64();
|
|
10046
|
+
} else {
|
|
10047
|
+
input.skip(ftype);
|
|
10048
|
+
}
|
|
10049
|
+
break;
|
|
10050
|
+
case 3334:
|
|
10051
|
+
if (ftype == Thrift.Type.STRING) {
|
|
10052
|
+
this.remoteCacheMissReason = input.readString();
|
|
10053
|
+
} else {
|
|
10054
|
+
input.skip(ftype);
|
|
10055
|
+
}
|
|
10056
|
+
break;
|
|
10057
|
+
case 3335:
|
|
10058
|
+
if (ftype == Thrift.Type.I32) {
|
|
10059
|
+
this.fetchDisposition = input.readI32();
|
|
10060
|
+
} else {
|
|
10061
|
+
input.skip(ftype);
|
|
10062
|
+
}
|
|
10063
|
+
break;
|
|
10064
|
+
case 3336:
|
|
10065
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
10066
|
+
this.remoteResultCacheEnabled = input.readBool();
|
|
10067
|
+
} else {
|
|
10068
|
+
input.skip(ftype);
|
|
10069
|
+
}
|
|
10070
|
+
break;
|
|
10071
|
+
case 3337:
|
|
10072
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
10073
|
+
this.isServerless = input.readBool();
|
|
10074
|
+
} else {
|
|
10075
|
+
input.skip(ftype);
|
|
10076
|
+
}
|
|
10077
|
+
break;
|
|
10078
|
+
case 3344:
|
|
10079
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
10080
|
+
this.resultDataFormat = new ttypes.TDBSqlResultFormat();
|
|
10081
|
+
this.resultDataFormat.read(input);
|
|
10082
|
+
} else {
|
|
10083
|
+
input.skip(ftype);
|
|
10084
|
+
}
|
|
10085
|
+
break;
|
|
10086
|
+
case 3345:
|
|
10087
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
10088
|
+
this.truncatedByThriftLimit = input.readBool();
|
|
10089
|
+
} else {
|
|
10090
|
+
input.skip(ftype);
|
|
10091
|
+
}
|
|
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;
|
|
8145
10100
|
default:
|
|
8146
10101
|
input.skip(ftype);
|
|
8147
10102
|
}
|
|
@@ -8193,6 +10148,78 @@ TGetResultSetMetadataResp.prototype.write = function(output) {
|
|
|
8193
10148
|
output.writeI64(this.compressedBytes);
|
|
8194
10149
|
output.writeFieldEnd();
|
|
8195
10150
|
}
|
|
10151
|
+
if (this.isStagingOperation !== null && this.isStagingOperation !== undefined) {
|
|
10152
|
+
output.writeFieldBegin('isStagingOperation', Thrift.Type.BOOL, 1287);
|
|
10153
|
+
output.writeBool(this.isStagingOperation);
|
|
10154
|
+
output.writeFieldEnd();
|
|
10155
|
+
}
|
|
10156
|
+
if (this.reasonForNoCloudFetch !== null && this.reasonForNoCloudFetch !== undefined) {
|
|
10157
|
+
output.writeFieldBegin('reasonForNoCloudFetch', Thrift.Type.I32, 3329);
|
|
10158
|
+
output.writeI32(this.reasonForNoCloudFetch);
|
|
10159
|
+
output.writeFieldEnd();
|
|
10160
|
+
}
|
|
10161
|
+
if (this.resultFiles !== null && this.resultFiles !== undefined) {
|
|
10162
|
+
output.writeFieldBegin('resultFiles', Thrift.Type.LIST, 3330);
|
|
10163
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.resultFiles.length);
|
|
10164
|
+
for (var iter213 in this.resultFiles) {
|
|
10165
|
+
if (this.resultFiles.hasOwnProperty(iter213)) {
|
|
10166
|
+
iter213 = this.resultFiles[iter213];
|
|
10167
|
+
iter213.write(output);
|
|
10168
|
+
}
|
|
10169
|
+
}
|
|
10170
|
+
output.writeListEnd();
|
|
10171
|
+
output.writeFieldEnd();
|
|
10172
|
+
}
|
|
10173
|
+
if (this.manifestFile !== null && this.manifestFile !== undefined) {
|
|
10174
|
+
output.writeFieldBegin('manifestFile', Thrift.Type.STRING, 3331);
|
|
10175
|
+
output.writeString(this.manifestFile);
|
|
10176
|
+
output.writeFieldEnd();
|
|
10177
|
+
}
|
|
10178
|
+
if (this.manifestFileFormat !== null && this.manifestFileFormat !== undefined) {
|
|
10179
|
+
output.writeFieldBegin('manifestFileFormat', Thrift.Type.I32, 3332);
|
|
10180
|
+
output.writeI32(this.manifestFileFormat);
|
|
10181
|
+
output.writeFieldEnd();
|
|
10182
|
+
}
|
|
10183
|
+
if (this.cacheLookupLatency !== null && this.cacheLookupLatency !== undefined) {
|
|
10184
|
+
output.writeFieldBegin('cacheLookupLatency', Thrift.Type.I64, 3333);
|
|
10185
|
+
output.writeI64(this.cacheLookupLatency);
|
|
10186
|
+
output.writeFieldEnd();
|
|
10187
|
+
}
|
|
10188
|
+
if (this.remoteCacheMissReason !== null && this.remoteCacheMissReason !== undefined) {
|
|
10189
|
+
output.writeFieldBegin('remoteCacheMissReason', Thrift.Type.STRING, 3334);
|
|
10190
|
+
output.writeString(this.remoteCacheMissReason);
|
|
10191
|
+
output.writeFieldEnd();
|
|
10192
|
+
}
|
|
10193
|
+
if (this.fetchDisposition !== null && this.fetchDisposition !== undefined) {
|
|
10194
|
+
output.writeFieldBegin('fetchDisposition', Thrift.Type.I32, 3335);
|
|
10195
|
+
output.writeI32(this.fetchDisposition);
|
|
10196
|
+
output.writeFieldEnd();
|
|
10197
|
+
}
|
|
10198
|
+
if (this.remoteResultCacheEnabled !== null && this.remoteResultCacheEnabled !== undefined) {
|
|
10199
|
+
output.writeFieldBegin('remoteResultCacheEnabled', Thrift.Type.BOOL, 3336);
|
|
10200
|
+
output.writeBool(this.remoteResultCacheEnabled);
|
|
10201
|
+
output.writeFieldEnd();
|
|
10202
|
+
}
|
|
10203
|
+
if (this.isServerless !== null && this.isServerless !== undefined) {
|
|
10204
|
+
output.writeFieldBegin('isServerless', Thrift.Type.BOOL, 3337);
|
|
10205
|
+
output.writeBool(this.isServerless);
|
|
10206
|
+
output.writeFieldEnd();
|
|
10207
|
+
}
|
|
10208
|
+
if (this.resultDataFormat !== null && this.resultDataFormat !== undefined) {
|
|
10209
|
+
output.writeFieldBegin('resultDataFormat', Thrift.Type.STRUCT, 3344);
|
|
10210
|
+
this.resultDataFormat.write(output);
|
|
10211
|
+
output.writeFieldEnd();
|
|
10212
|
+
}
|
|
10213
|
+
if (this.truncatedByThriftLimit !== null && this.truncatedByThriftLimit !== undefined) {
|
|
10214
|
+
output.writeFieldBegin('truncatedByThriftLimit', Thrift.Type.BOOL, 3345);
|
|
10215
|
+
output.writeBool(this.truncatedByThriftLimit);
|
|
10216
|
+
output.writeFieldEnd();
|
|
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
|
+
}
|
|
8196
10223
|
output.writeFieldStop();
|
|
8197
10224
|
output.writeStructEnd();
|
|
8198
10225
|
return;
|
|
@@ -8353,6 +10380,7 @@ var TFetchResultsResp = module.exports.TFetchResultsResp = function(args) {
|
|
|
8353
10380
|
this.hasMoreRows = null;
|
|
8354
10381
|
this.results = null;
|
|
8355
10382
|
this.resultSetMetadata = null;
|
|
10383
|
+
this.responseValidation = null;
|
|
8356
10384
|
if (args) {
|
|
8357
10385
|
if (args.status !== undefined && args.status !== null) {
|
|
8358
10386
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -8368,6 +10396,9 @@ var TFetchResultsResp = module.exports.TFetchResultsResp = function(args) {
|
|
|
8368
10396
|
if (args.resultSetMetadata !== undefined && args.resultSetMetadata !== null) {
|
|
8369
10397
|
this.resultSetMetadata = new ttypes.TGetResultSetMetadataResp(args.resultSetMetadata);
|
|
8370
10398
|
}
|
|
10399
|
+
if (args.responseValidation !== undefined && args.responseValidation !== null) {
|
|
10400
|
+
this.responseValidation = args.responseValidation;
|
|
10401
|
+
}
|
|
8371
10402
|
}
|
|
8372
10403
|
};
|
|
8373
10404
|
TFetchResultsResp.prototype = {};
|
|
@@ -8412,6 +10443,13 @@ TFetchResultsResp.prototype.read = function(input) {
|
|
|
8412
10443
|
input.skip(ftype);
|
|
8413
10444
|
}
|
|
8414
10445
|
break;
|
|
10446
|
+
case 3329:
|
|
10447
|
+
if (ftype == Thrift.Type.STRING) {
|
|
10448
|
+
this.responseValidation = input.readBinary();
|
|
10449
|
+
} else {
|
|
10450
|
+
input.skip(ftype);
|
|
10451
|
+
}
|
|
10452
|
+
break;
|
|
8415
10453
|
default:
|
|
8416
10454
|
input.skip(ftype);
|
|
8417
10455
|
}
|
|
@@ -8443,6 +10481,11 @@ TFetchResultsResp.prototype.write = function(output) {
|
|
|
8443
10481
|
this.resultSetMetadata.write(output);
|
|
8444
10482
|
output.writeFieldEnd();
|
|
8445
10483
|
}
|
|
10484
|
+
if (this.responseValidation !== null && this.responseValidation !== undefined) {
|
|
10485
|
+
output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
|
|
10486
|
+
output.writeBinary(this.responseValidation);
|
|
10487
|
+
output.writeFieldEnd();
|
|
10488
|
+
}
|
|
8446
10489
|
output.writeFieldStop();
|
|
8447
10490
|
output.writeStructEnd();
|
|
8448
10491
|
return;
|
|
@@ -8947,12 +10990,12 @@ TProgressUpdateResp.prototype.read = function(input) {
|
|
|
8947
10990
|
case 1:
|
|
8948
10991
|
if (ftype == Thrift.Type.LIST) {
|
|
8949
10992
|
this.headerNames = [];
|
|
8950
|
-
var
|
|
8951
|
-
var
|
|
8952
|
-
for (var
|
|
8953
|
-
var
|
|
8954
|
-
|
|
8955
|
-
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);
|
|
8956
10999
|
}
|
|
8957
11000
|
input.readListEnd();
|
|
8958
11001
|
} else {
|
|
@@ -8962,20 +11005,20 @@ TProgressUpdateResp.prototype.read = function(input) {
|
|
|
8962
11005
|
case 2:
|
|
8963
11006
|
if (ftype == Thrift.Type.LIST) {
|
|
8964
11007
|
this.rows = [];
|
|
8965
|
-
var
|
|
8966
|
-
var
|
|
8967
|
-
for (var
|
|
8968
|
-
var
|
|
8969
|
-
|
|
8970
|
-
var
|
|
8971
|
-
var
|
|
8972
|
-
for (var
|
|
8973
|
-
var
|
|
8974
|
-
|
|
8975
|
-
|
|
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);
|
|
8976
11019
|
}
|
|
8977
11020
|
input.readListEnd();
|
|
8978
|
-
this.rows.push(
|
|
11021
|
+
this.rows.push(elem221);
|
|
8979
11022
|
}
|
|
8980
11023
|
input.readListEnd();
|
|
8981
11024
|
} else {
|
|
@@ -9024,10 +11067,10 @@ TProgressUpdateResp.prototype.write = function(output) {
|
|
|
9024
11067
|
if (this.headerNames !== null && this.headerNames !== undefined) {
|
|
9025
11068
|
output.writeFieldBegin('headerNames', Thrift.Type.LIST, 1);
|
|
9026
11069
|
output.writeListBegin(Thrift.Type.STRING, this.headerNames.length);
|
|
9027
|
-
for (var
|
|
9028
|
-
if (this.headerNames.hasOwnProperty(
|
|
9029
|
-
|
|
9030
|
-
output.writeString(
|
|
11070
|
+
for (var iter226 in this.headerNames) {
|
|
11071
|
+
if (this.headerNames.hasOwnProperty(iter226)) {
|
|
11072
|
+
iter226 = this.headerNames[iter226];
|
|
11073
|
+
output.writeString(iter226);
|
|
9031
11074
|
}
|
|
9032
11075
|
}
|
|
9033
11076
|
output.writeListEnd();
|
|
@@ -9036,14 +11079,14 @@ TProgressUpdateResp.prototype.write = function(output) {
|
|
|
9036
11079
|
if (this.rows !== null && this.rows !== undefined) {
|
|
9037
11080
|
output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
|
|
9038
11081
|
output.writeListBegin(Thrift.Type.LIST, this.rows.length);
|
|
9039
|
-
for (var
|
|
9040
|
-
if (this.rows.hasOwnProperty(
|
|
9041
|
-
|
|
9042
|
-
output.writeListBegin(Thrift.Type.STRING,
|
|
9043
|
-
for (var
|
|
9044
|
-
if (
|
|
9045
|
-
|
|
9046
|
-
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);
|
|
9047
11090
|
}
|
|
9048
11091
|
}
|
|
9049
11092
|
output.writeListEnd();
|