@databricks/sql 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/DBSQLClient.d.ts +7 -6
  2. package/dist/DBSQLClient.js +91 -59
  3. package/dist/DBSQLClient.js.map +1 -1
  4. package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.d.ts +24 -0
  5. package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.js +165 -0
  6. package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.js.map +1 -0
  7. package/dist/connection/auth/DatabricksOAuth/OAuthManager.d.ts +47 -0
  8. package/dist/connection/auth/DatabricksOAuth/OAuthManager.js +169 -0
  9. package/dist/connection/auth/DatabricksOAuth/OAuthManager.js.map +1 -0
  10. package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.d.ts +10 -0
  11. package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.js +29 -0
  12. package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.js.map +1 -0
  13. package/dist/connection/auth/DatabricksOAuth/OAuthScope.d.ts +7 -0
  14. package/dist/connection/auth/DatabricksOAuth/OAuthScope.js +11 -0
  15. package/dist/connection/auth/DatabricksOAuth/OAuthScope.js.map +1 -0
  16. package/dist/connection/auth/DatabricksOAuth/OAuthToken.d.ts +10 -0
  17. package/dist/connection/auth/DatabricksOAuth/OAuthToken.js +32 -0
  18. package/dist/connection/auth/DatabricksOAuth/OAuthToken.js.map +1 -0
  19. package/dist/connection/auth/DatabricksOAuth/index.d.ts +21 -0
  20. package/dist/connection/auth/DatabricksOAuth/index.js +41 -0
  21. package/dist/connection/auth/DatabricksOAuth/index.js.map +1 -0
  22. package/dist/connection/auth/PlainHttpAuthentication.d.ts +11 -11
  23. package/dist/connection/auth/PlainHttpAuthentication.js +15 -7
  24. package/dist/connection/auth/PlainHttpAuthentication.js.map +1 -1
  25. package/dist/connection/connections/HttpConnection.d.ts +1 -2
  26. package/dist/connection/connections/HttpConnection.js +24 -14
  27. package/dist/connection/connections/HttpConnection.js.map +1 -1
  28. package/dist/connection/contracts/IAuthentication.d.ts +2 -2
  29. package/dist/connection/contracts/IConnectionOptions.d.ts +3 -1
  30. package/dist/connection/contracts/IConnectionProvider.d.ts +1 -2
  31. package/dist/contracts/IDBSQLClient.d.ts +17 -3
  32. package/dist/globalConfig.d.ts +5 -0
  33. package/dist/globalConfig.js +5 -0
  34. package/dist/globalConfig.js.map +1 -1
  35. package/dist/hive/Commands/BaseCommand.d.ts +3 -1
  36. package/dist/hive/Commands/BaseCommand.js +66 -4
  37. package/dist/hive/Commands/BaseCommand.js.map +1 -1
  38. package/dist/hive/HiveDriver.d.ts +3 -2
  39. package/dist/hive/HiveDriver.js +116 -44
  40. package/dist/hive/HiveDriver.js.map +1 -1
  41. package/dist/index.d.ts +0 -2
  42. package/dist/index.js +0 -2
  43. package/dist/index.js.map +1 -1
  44. package/dist/node_modules/thrift/lib/nodejs/lib/thrift/http_connection.js +8 -0
  45. package/dist/result/ArrowResult.js +3 -0
  46. package/dist/result/ArrowResult.js.map +1 -1
  47. package/dist/utils/areHeadersEqual.d.ts +2 -0
  48. package/dist/utils/areHeadersEqual.js +49 -0
  49. package/dist/utils/areHeadersEqual.js.map +1 -0
  50. package/dist/utils/index.d.ts +2 -1
  51. package/dist/utils/index.js +3 -1
  52. package/dist/utils/index.js.map +1 -1
  53. package/dist/version.d.ts +1 -1
  54. package/dist/version.js +1 -1
  55. package/package.json +4 -2
  56. package/thrift/TCLIService.d.ts +17 -0
  57. package/thrift/TCLIService_types.d.ts +185 -13
  58. package/thrift/TCLIService_types.js +2013 -279
  59. package/dist/connection/auth/NoSaslAuthentication.d.ts +0 -5
  60. package/dist/connection/auth/NoSaslAuthentication.js +0 -14
  61. package/dist/connection/auth/NoSaslAuthentication.js.map +0 -1
  62. package/dist/connection/auth/helpers/SaslPackageFactory.d.ts +0 -11
  63. package/dist/connection/auth/helpers/SaslPackageFactory.js +0 -20
  64. package/dist/connection/auth/helpers/SaslPackageFactory.js.map +0 -1
  65. package/dist/connection/contracts/ITransport.d.ts +0 -6
  66. package/dist/connection/contracts/ITransport.js +0 -3
  67. package/dist/connection/contracts/ITransport.js.map +0 -1
  68. package/dist/connection/transports/HttpTransport.d.ts +0 -8
  69. package/dist/connection/transports/HttpTransport.js +0 -18
  70. package/dist/connection/transports/HttpTransport.js.map +0 -1
  71. package/dist/connection/types/AuthOptions.d.ts +0 -4
  72. package/dist/connection/types/AuthOptions.js +0 -3
  73. 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;
@@ -2755,44 +3062,40 @@ TSparkArrowResultLink.prototype.write = function(output) {
2755
3062
  return;
2756
3063
  };
2757
3064
 
2758
- var TRowSet = module.exports.TRowSet = function(args) {
3065
+ var TDBSqlCloudResultFile = module.exports.TDBSqlCloudResultFile = function(args) {
3066
+ this.filePath = null;
2759
3067
  this.startRowOffset = null;
2760
- this.rows = null;
2761
- this.columns = null;
2762
- this.binaryColumns = null;
2763
- this.columnCount = null;
2764
- this.arrowBatches = null;
2765
- this.resultLinks = null;
3068
+ this.rowCount = null;
3069
+ this.uncompressedBytes = null;
3070
+ this.compressedBytes = null;
3071
+ this.fileLink = null;
3072
+ this.linkExpiryTime = null;
2766
3073
  if (args) {
3074
+ if (args.filePath !== undefined && args.filePath !== null) {
3075
+ this.filePath = args.filePath;
3076
+ }
2767
3077
  if (args.startRowOffset !== undefined && args.startRowOffset !== null) {
2768
3078
  this.startRowOffset = args.startRowOffset;
2769
- } else {
2770
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field startRowOffset is unset!');
2771
- }
2772
- if (args.rows !== undefined && args.rows !== null) {
2773
- this.rows = Thrift.copyList(args.rows, [ttypes.TRow]);
2774
- } else {
2775
- throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field rows is unset!');
2776
3079
  }
2777
- if (args.columns !== undefined && args.columns !== null) {
2778
- this.columns = Thrift.copyList(args.columns, [ttypes.TColumn]);
3080
+ if (args.rowCount !== undefined && args.rowCount !== null) {
3081
+ this.rowCount = args.rowCount;
2779
3082
  }
2780
- if (args.binaryColumns !== undefined && args.binaryColumns !== null) {
2781
- this.binaryColumns = args.binaryColumns;
3083
+ if (args.uncompressedBytes !== undefined && args.uncompressedBytes !== null) {
3084
+ this.uncompressedBytes = args.uncompressedBytes;
2782
3085
  }
2783
- if (args.columnCount !== undefined && args.columnCount !== null) {
2784
- this.columnCount = args.columnCount;
3086
+ if (args.compressedBytes !== undefined && args.compressedBytes !== null) {
3087
+ this.compressedBytes = args.compressedBytes;
2785
3088
  }
2786
- if (args.arrowBatches !== undefined && args.arrowBatches !== null) {
2787
- this.arrowBatches = Thrift.copyList(args.arrowBatches, [ttypes.TSparkArrowBatch]);
3089
+ if (args.fileLink !== undefined && args.fileLink !== null) {
3090
+ this.fileLink = args.fileLink;
2788
3091
  }
2789
- if (args.resultLinks !== undefined && args.resultLinks !== null) {
2790
- this.resultLinks = Thrift.copyList(args.resultLinks, [ttypes.TSparkArrowResultLink]);
3092
+ if (args.linkExpiryTime !== undefined && args.linkExpiryTime !== null) {
3093
+ this.linkExpiryTime = args.linkExpiryTime;
2791
3094
  }
2792
3095
  }
2793
3096
  };
2794
- TRowSet.prototype = {};
2795
- TRowSet.prototype.read = function(input) {
3097
+ TDBSqlCloudResultFile.prototype = {};
3098
+ TDBSqlCloudResultFile.prototype.read = function(input) {
2796
3099
  input.readStructBegin();
2797
3100
  while (true) {
2798
3101
  var ret = input.readFieldBegin();
@@ -2803,59 +3106,210 @@ TRowSet.prototype.read = function(input) {
2803
3106
  }
2804
3107
  switch (fid) {
2805
3108
  case 1:
2806
- if (ftype == Thrift.Type.I64) {
2807
- this.startRowOffset = input.readI64();
3109
+ if (ftype == Thrift.Type.STRING) {
3110
+ this.filePath = input.readString();
2808
3111
  } else {
2809
3112
  input.skip(ftype);
2810
3113
  }
2811
3114
  break;
2812
3115
  case 2:
2813
- if (ftype == Thrift.Type.LIST) {
2814
- this.rows = [];
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();
3116
+ if (ftype == Thrift.Type.I64) {
3117
+ this.startRowOffset = input.readI64();
2824
3118
  } else {
2825
3119
  input.skip(ftype);
2826
3120
  }
2827
3121
  break;
2828
3122
  case 3:
2829
- if (ftype == Thrift.Type.LIST) {
2830
- this.columns = [];
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();
3123
+ if (ftype == Thrift.Type.I64) {
3124
+ this.rowCount = input.readI64();
2840
3125
  } else {
2841
3126
  input.skip(ftype);
2842
3127
  }
2843
3128
  break;
2844
3129
  case 4:
2845
- if (ftype == Thrift.Type.STRING) {
2846
- this.binaryColumns = input.readBinary();
3130
+ if (ftype == Thrift.Type.I64) {
3131
+ this.uncompressedBytes = input.readI64();
2847
3132
  } else {
2848
3133
  input.skip(ftype);
2849
3134
  }
2850
3135
  break;
2851
3136
  case 5:
2852
- if (ftype == Thrift.Type.I32) {
2853
- this.columnCount = input.readI32();
3137
+ if (ftype == Thrift.Type.I64) {
3138
+ this.compressedBytes = input.readI64();
2854
3139
  } else {
2855
3140
  input.skip(ftype);
2856
3141
  }
2857
3142
  break;
2858
- case 1281:
3143
+ case 6:
3144
+ if (ftype == Thrift.Type.STRING) {
3145
+ this.fileLink = input.readString();
3146
+ } else {
3147
+ input.skip(ftype);
3148
+ }
3149
+ break;
3150
+ case 7:
3151
+ if (ftype == Thrift.Type.I64) {
3152
+ this.linkExpiryTime = input.readI64();
3153
+ } else {
3154
+ input.skip(ftype);
3155
+ }
3156
+ break;
3157
+ default:
3158
+ input.skip(ftype);
3159
+ }
3160
+ input.readFieldEnd();
3161
+ }
3162
+ input.readStructEnd();
3163
+ return;
3164
+ };
3165
+
3166
+ TDBSqlCloudResultFile.prototype.write = function(output) {
3167
+ output.writeStructBegin('TDBSqlCloudResultFile');
3168
+ if (this.filePath !== null && this.filePath !== undefined) {
3169
+ output.writeFieldBegin('filePath', Thrift.Type.STRING, 1);
3170
+ output.writeString(this.filePath);
3171
+ output.writeFieldEnd();
3172
+ }
3173
+ if (this.startRowOffset !== null && this.startRowOffset !== undefined) {
3174
+ output.writeFieldBegin('startRowOffset', Thrift.Type.I64, 2);
3175
+ output.writeI64(this.startRowOffset);
3176
+ output.writeFieldEnd();
3177
+ }
3178
+ if (this.rowCount !== null && this.rowCount !== undefined) {
3179
+ output.writeFieldBegin('rowCount', Thrift.Type.I64, 3);
3180
+ output.writeI64(this.rowCount);
3181
+ output.writeFieldEnd();
3182
+ }
3183
+ if (this.uncompressedBytes !== null && this.uncompressedBytes !== undefined) {
3184
+ output.writeFieldBegin('uncompressedBytes', Thrift.Type.I64, 4);
3185
+ output.writeI64(this.uncompressedBytes);
3186
+ output.writeFieldEnd();
3187
+ }
3188
+ if (this.compressedBytes !== null && this.compressedBytes !== undefined) {
3189
+ output.writeFieldBegin('compressedBytes', Thrift.Type.I64, 5);
3190
+ output.writeI64(this.compressedBytes);
3191
+ output.writeFieldEnd();
3192
+ }
3193
+ if (this.fileLink !== null && this.fileLink !== undefined) {
3194
+ output.writeFieldBegin('fileLink', Thrift.Type.STRING, 6);
3195
+ output.writeString(this.fileLink);
3196
+ output.writeFieldEnd();
3197
+ }
3198
+ if (this.linkExpiryTime !== null && this.linkExpiryTime !== undefined) {
3199
+ output.writeFieldBegin('linkExpiryTime', Thrift.Type.I64, 7);
3200
+ output.writeI64(this.linkExpiryTime);
3201
+ output.writeFieldEnd();
3202
+ }
3203
+ output.writeFieldStop();
3204
+ output.writeStructEnd();
3205
+ return;
3206
+ };
3207
+
3208
+ var TRowSet = module.exports.TRowSet = function(args) {
3209
+ this.startRowOffset = null;
3210
+ this.rows = null;
3211
+ this.columns = null;
3212
+ this.binaryColumns = null;
3213
+ this.columnCount = null;
3214
+ this.arrowBatches = null;
3215
+ this.resultLinks = null;
3216
+ this.cloudFetchResults = null;
3217
+ if (args) {
3218
+ if (args.startRowOffset !== undefined && args.startRowOffset !== null) {
3219
+ this.startRowOffset = args.startRowOffset;
3220
+ } else {
3221
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field startRowOffset is unset!');
3222
+ }
3223
+ if (args.rows !== undefined && args.rows !== null) {
3224
+ this.rows = Thrift.copyList(args.rows, [ttypes.TRow]);
3225
+ } else {
3226
+ throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field rows is unset!');
3227
+ }
3228
+ if (args.columns !== undefined && args.columns !== null) {
3229
+ this.columns = Thrift.copyList(args.columns, [ttypes.TColumn]);
3230
+ }
3231
+ if (args.binaryColumns !== undefined && args.binaryColumns !== null) {
3232
+ this.binaryColumns = args.binaryColumns;
3233
+ }
3234
+ if (args.columnCount !== undefined && args.columnCount !== null) {
3235
+ this.columnCount = args.columnCount;
3236
+ }
3237
+ if (args.arrowBatches !== undefined && args.arrowBatches !== null) {
3238
+ this.arrowBatches = Thrift.copyList(args.arrowBatches, [ttypes.TSparkArrowBatch]);
3239
+ }
3240
+ if (args.resultLinks !== undefined && args.resultLinks !== null) {
3241
+ this.resultLinks = Thrift.copyList(args.resultLinks, [ttypes.TSparkArrowResultLink]);
3242
+ }
3243
+ if (args.cloudFetchResults !== undefined && args.cloudFetchResults !== null) {
3244
+ this.cloudFetchResults = Thrift.copyList(args.cloudFetchResults, [ttypes.TDBSqlCloudResultFile]);
3245
+ }
3246
+ }
3247
+ };
3248
+ TRowSet.prototype = {};
3249
+ TRowSet.prototype.read = function(input) {
3250
+ input.readStructBegin();
3251
+ while (true) {
3252
+ var ret = input.readFieldBegin();
3253
+ var ftype = ret.ftype;
3254
+ var fid = ret.fid;
3255
+ if (ftype == Thrift.Type.STOP) {
3256
+ break;
3257
+ }
3258
+ switch (fid) {
3259
+ case 1:
3260
+ if (ftype == Thrift.Type.I64) {
3261
+ this.startRowOffset = input.readI64();
3262
+ } else {
3263
+ input.skip(ftype);
3264
+ }
3265
+ break;
3266
+ case 2:
3267
+ if (ftype == Thrift.Type.LIST) {
3268
+ this.rows = [];
3269
+ var _rtmp377 = input.readListBegin();
3270
+ var _size76 = _rtmp377.size || 0;
3271
+ for (var _i78 = 0; _i78 < _size76; ++_i78) {
3272
+ var elem79 = null;
3273
+ elem79 = new ttypes.TRow();
3274
+ elem79.read(input);
3275
+ this.rows.push(elem79);
3276
+ }
3277
+ input.readListEnd();
3278
+ } else {
3279
+ input.skip(ftype);
3280
+ }
3281
+ break;
3282
+ case 3:
3283
+ if (ftype == Thrift.Type.LIST) {
3284
+ this.columns = [];
3285
+ var _rtmp381 = input.readListBegin();
3286
+ var _size80 = _rtmp381.size || 0;
3287
+ for (var _i82 = 0; _i82 < _size80; ++_i82) {
3288
+ var elem83 = null;
3289
+ elem83 = new ttypes.TColumn();
3290
+ elem83.read(input);
3291
+ this.columns.push(elem83);
3292
+ }
3293
+ input.readListEnd();
3294
+ } else {
3295
+ input.skip(ftype);
3296
+ }
3297
+ break;
3298
+ case 4:
3299
+ if (ftype == Thrift.Type.STRING) {
3300
+ this.binaryColumns = input.readBinary();
3301
+ } else {
3302
+ input.skip(ftype);
3303
+ }
3304
+ break;
3305
+ case 5:
3306
+ if (ftype == Thrift.Type.I32) {
3307
+ this.columnCount = input.readI32();
3308
+ } else {
3309
+ input.skip(ftype);
3310
+ }
3311
+ break;
3312
+ case 1281:
2859
3313
  if (ftype == Thrift.Type.LIST) {
2860
3314
  this.arrowBatches = [];
2861
3315
  var _rtmp385 = input.readListBegin();
@@ -2887,6 +3341,22 @@ TRowSet.prototype.read = function(input) {
2887
3341
  input.skip(ftype);
2888
3342
  }
2889
3343
  break;
3344
+ case 3329:
3345
+ if (ftype == Thrift.Type.LIST) {
3346
+ this.cloudFetchResults = [];
3347
+ var _rtmp393 = input.readListBegin();
3348
+ var _size92 = _rtmp393.size || 0;
3349
+ for (var _i94 = 0; _i94 < _size92; ++_i94) {
3350
+ var elem95 = null;
3351
+ elem95 = new ttypes.TDBSqlCloudResultFile();
3352
+ elem95.read(input);
3353
+ this.cloudFetchResults.push(elem95);
3354
+ }
3355
+ input.readListEnd();
3356
+ } else {
3357
+ input.skip(ftype);
3358
+ }
3359
+ break;
2890
3360
  default:
2891
3361
  input.skip(ftype);
2892
3362
  }
@@ -2906,10 +3376,10 @@ TRowSet.prototype.write = function(output) {
2906
3376
  if (this.rows !== null && this.rows !== undefined) {
2907
3377
  output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
2908
3378
  output.writeListBegin(Thrift.Type.STRUCT, this.rows.length);
2909
- for (var iter92 in this.rows) {
2910
- if (this.rows.hasOwnProperty(iter92)) {
2911
- iter92 = this.rows[iter92];
2912
- iter92.write(output);
3379
+ for (var iter96 in this.rows) {
3380
+ if (this.rows.hasOwnProperty(iter96)) {
3381
+ iter96 = this.rows[iter96];
3382
+ iter96.write(output);
2913
3383
  }
2914
3384
  }
2915
3385
  output.writeListEnd();
@@ -2918,10 +3388,10 @@ TRowSet.prototype.write = function(output) {
2918
3388
  if (this.columns !== null && this.columns !== undefined) {
2919
3389
  output.writeFieldBegin('columns', Thrift.Type.LIST, 3);
2920
3390
  output.writeListBegin(Thrift.Type.STRUCT, this.columns.length);
2921
- for (var iter93 in this.columns) {
2922
- if (this.columns.hasOwnProperty(iter93)) {
2923
- iter93 = this.columns[iter93];
2924
- iter93.write(output);
3391
+ for (var iter97 in this.columns) {
3392
+ if (this.columns.hasOwnProperty(iter97)) {
3393
+ iter97 = this.columns[iter97];
3394
+ iter97.write(output);
2925
3395
  }
2926
3396
  }
2927
3397
  output.writeListEnd();
@@ -2940,10 +3410,10 @@ TRowSet.prototype.write = function(output) {
2940
3410
  if (this.arrowBatches !== null && this.arrowBatches !== undefined) {
2941
3411
  output.writeFieldBegin('arrowBatches', Thrift.Type.LIST, 1281);
2942
3412
  output.writeListBegin(Thrift.Type.STRUCT, this.arrowBatches.length);
2943
- for (var iter94 in this.arrowBatches) {
2944
- if (this.arrowBatches.hasOwnProperty(iter94)) {
2945
- iter94 = this.arrowBatches[iter94];
2946
- iter94.write(output);
3413
+ for (var iter98 in this.arrowBatches) {
3414
+ if (this.arrowBatches.hasOwnProperty(iter98)) {
3415
+ iter98 = this.arrowBatches[iter98];
3416
+ iter98.write(output);
2947
3417
  }
2948
3418
  }
2949
3419
  output.writeListEnd();
@@ -2952,10 +3422,22 @@ TRowSet.prototype.write = function(output) {
2952
3422
  if (this.resultLinks !== null && this.resultLinks !== undefined) {
2953
3423
  output.writeFieldBegin('resultLinks', Thrift.Type.LIST, 1282);
2954
3424
  output.writeListBegin(Thrift.Type.STRUCT, this.resultLinks.length);
2955
- for (var iter95 in this.resultLinks) {
2956
- if (this.resultLinks.hasOwnProperty(iter95)) {
2957
- iter95 = this.resultLinks[iter95];
2958
- iter95.write(output);
3425
+ for (var iter99 in this.resultLinks) {
3426
+ if (this.resultLinks.hasOwnProperty(iter99)) {
3427
+ iter99 = this.resultLinks[iter99];
3428
+ iter99.write(output);
3429
+ }
3430
+ }
3431
+ output.writeListEnd();
3432
+ output.writeFieldEnd();
3433
+ }
3434
+ if (this.cloudFetchResults !== null && this.cloudFetchResults !== undefined) {
3435
+ output.writeFieldBegin('cloudFetchResults', Thrift.Type.LIST, 3329);
3436
+ output.writeListBegin(Thrift.Type.STRUCT, this.cloudFetchResults.length);
3437
+ for (var iter100 in this.cloudFetchResults) {
3438
+ if (this.cloudFetchResults.hasOwnProperty(iter100)) {
3439
+ iter100 = this.cloudFetchResults[iter100];
3440
+ iter100.write(output);
2959
3441
  }
2960
3442
  }
2961
3443
  output.writeListEnd();
@@ -3014,14 +3496,14 @@ TDBSqlTempView.prototype.read = function(input) {
3014
3496
  case 3:
3015
3497
  if (ftype == Thrift.Type.MAP) {
3016
3498
  this.properties = {};
3017
- var _rtmp397 = input.readMapBegin();
3018
- var _size96 = _rtmp397.size || 0;
3019
- for (var _i98 = 0; _i98 < _size96; ++_i98) {
3020
- var key99 = null;
3021
- var val100 = null;
3022
- key99 = input.readString();
3023
- val100 = input.readString();
3024
- this.properties[key99] = val100;
3499
+ var _rtmp3102 = input.readMapBegin();
3500
+ var _size101 = _rtmp3102.size || 0;
3501
+ for (var _i103 = 0; _i103 < _size101; ++_i103) {
3502
+ var key104 = null;
3503
+ var val105 = null;
3504
+ key104 = input.readString();
3505
+ val105 = input.readString();
3506
+ this.properties[key104] = val105;
3025
3507
  }
3026
3508
  input.readMapEnd();
3027
3509
  } else {
@@ -3059,11 +3541,11 @@ TDBSqlTempView.prototype.write = function(output) {
3059
3541
  if (this.properties !== null && this.properties !== undefined) {
3060
3542
  output.writeFieldBegin('properties', Thrift.Type.MAP, 3);
3061
3543
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.properties));
3062
- for (var kiter101 in this.properties) {
3063
- if (this.properties.hasOwnProperty(kiter101)) {
3064
- var viter102 = this.properties[kiter101];
3065
- output.writeString(kiter101);
3066
- output.writeString(viter102);
3544
+ for (var kiter106 in this.properties) {
3545
+ if (this.properties.hasOwnProperty(kiter106)) {
3546
+ var viter107 = this.properties[kiter106];
3547
+ output.writeString(kiter106);
3548
+ output.writeString(viter107);
3067
3549
  }
3068
3550
  }
3069
3551
  output.writeMapEnd();
@@ -3129,32 +3611,60 @@ TDBSqlSessionCapabilities.prototype.write = function(output) {
3129
3611
  return;
3130
3612
  };
3131
3613
 
3132
- var TDBSqlSessionConf = module.exports.TDBSqlSessionConf = function(args) {
3133
- this.confs = null;
3134
- this.tempViews = null;
3135
- this.currentDatabase = null;
3136
- this.currentCatalog = null;
3137
- this.sessionCapabilities = null;
3614
+ var TExpressionInfo = module.exports.TExpressionInfo = function(args) {
3615
+ this.className = null;
3616
+ this.usage = null;
3617
+ this.name = null;
3618
+ this.extended = null;
3619
+ this.db = null;
3620
+ this.arguments = null;
3621
+ this.examples = null;
3622
+ this.note = null;
3623
+ this.group = null;
3624
+ this.since = null;
3625
+ this.deprecated = null;
3626
+ this.source = null;
3138
3627
  if (args) {
3139
- if (args.confs !== undefined && args.confs !== null) {
3140
- this.confs = Thrift.copyMap(args.confs, [null]);
3628
+ if (args.className !== undefined && args.className !== null) {
3629
+ this.className = args.className;
3141
3630
  }
3142
- if (args.tempViews !== undefined && args.tempViews !== null) {
3143
- this.tempViews = Thrift.copyList(args.tempViews, [ttypes.TDBSqlTempView]);
3631
+ if (args.usage !== undefined && args.usage !== null) {
3632
+ this.usage = args.usage;
3144
3633
  }
3145
- if (args.currentDatabase !== undefined && args.currentDatabase !== null) {
3146
- this.currentDatabase = args.currentDatabase;
3634
+ if (args.name !== undefined && args.name !== null) {
3635
+ this.name = args.name;
3147
3636
  }
3148
- if (args.currentCatalog !== undefined && args.currentCatalog !== null) {
3149
- this.currentCatalog = args.currentCatalog;
3637
+ if (args.extended !== undefined && args.extended !== null) {
3638
+ this.extended = args.extended;
3150
3639
  }
3151
- if (args.sessionCapabilities !== undefined && args.sessionCapabilities !== null) {
3152
- this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities(args.sessionCapabilities);
3640
+ if (args.db !== undefined && args.db !== null) {
3641
+ this.db = args.db;
3642
+ }
3643
+ if (args.arguments !== undefined && args.arguments !== null) {
3644
+ this.arguments = args.arguments;
3645
+ }
3646
+ if (args.examples !== undefined && args.examples !== null) {
3647
+ this.examples = args.examples;
3648
+ }
3649
+ if (args.note !== undefined && args.note !== null) {
3650
+ this.note = args.note;
3651
+ }
3652
+ if (args.group !== undefined && args.group !== null) {
3653
+ this.group = args.group;
3654
+ }
3655
+ if (args.since !== undefined && args.since !== null) {
3656
+ this.since = args.since;
3657
+ }
3658
+ if (args.deprecated !== undefined && args.deprecated !== null) {
3659
+ this.deprecated = args.deprecated;
3660
+ }
3661
+ if (args.source !== undefined && args.source !== null) {
3662
+ this.source = args.source;
3153
3663
  }
3154
3664
  }
3155
3665
  };
3156
- TDBSqlSessionConf.prototype = {};
3157
- TDBSqlSessionConf.prototype.read = function(input) {
3666
+ TExpressionInfo.prototype = {};
3667
+ TExpressionInfo.prototype.read = function(input) {
3158
3668
  input.readStructBegin();
3159
3669
  while (true) {
3160
3670
  var ret = input.readFieldBegin();
@@ -3165,56 +3675,85 @@ TDBSqlSessionConf.prototype.read = function(input) {
3165
3675
  }
3166
3676
  switch (fid) {
3167
3677
  case 1:
3168
- if (ftype == Thrift.Type.MAP) {
3169
- this.confs = {};
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();
3678
+ if (ftype == Thrift.Type.STRING) {
3679
+ this.className = input.readString();
3180
3680
  } else {
3181
3681
  input.skip(ftype);
3182
3682
  }
3183
3683
  break;
3184
3684
  case 2:
3185
- if (ftype == Thrift.Type.LIST) {
3186
- this.tempViews = [];
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();
3685
+ if (ftype == Thrift.Type.STRING) {
3686
+ this.usage = input.readString();
3196
3687
  } else {
3197
3688
  input.skip(ftype);
3198
3689
  }
3199
3690
  break;
3200
3691
  case 3:
3201
3692
  if (ftype == Thrift.Type.STRING) {
3202
- this.currentDatabase = input.readString();
3693
+ this.name = input.readString();
3203
3694
  } else {
3204
3695
  input.skip(ftype);
3205
3696
  }
3206
3697
  break;
3207
3698
  case 4:
3208
3699
  if (ftype == Thrift.Type.STRING) {
3209
- this.currentCatalog = input.readString();
3700
+ this.extended = input.readString();
3210
3701
  } else {
3211
3702
  input.skip(ftype);
3212
3703
  }
3213
3704
  break;
3214
3705
  case 5:
3215
- if (ftype == Thrift.Type.STRUCT) {
3216
- this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities();
3217
- this.sessionCapabilities.read(input);
3706
+ if (ftype == Thrift.Type.STRING) {
3707
+ this.db = input.readString();
3708
+ } else {
3709
+ input.skip(ftype);
3710
+ }
3711
+ break;
3712
+ case 6:
3713
+ if (ftype == Thrift.Type.STRING) {
3714
+ this.arguments = input.readString();
3715
+ } else {
3716
+ input.skip(ftype);
3717
+ }
3718
+ break;
3719
+ case 7:
3720
+ if (ftype == Thrift.Type.STRING) {
3721
+ this.examples = input.readString();
3722
+ } else {
3723
+ input.skip(ftype);
3724
+ }
3725
+ break;
3726
+ case 8:
3727
+ if (ftype == Thrift.Type.STRING) {
3728
+ this.note = input.readString();
3729
+ } else {
3730
+ input.skip(ftype);
3731
+ }
3732
+ break;
3733
+ case 9:
3734
+ if (ftype == Thrift.Type.STRING) {
3735
+ this.group = input.readString();
3736
+ } else {
3737
+ input.skip(ftype);
3738
+ }
3739
+ break;
3740
+ case 10:
3741
+ if (ftype == Thrift.Type.STRING) {
3742
+ this.since = input.readString();
3743
+ } else {
3744
+ input.skip(ftype);
3745
+ }
3746
+ break;
3747
+ case 11:
3748
+ if (ftype == Thrift.Type.STRING) {
3749
+ this.deprecated = input.readString();
3750
+ } else {
3751
+ input.skip(ftype);
3752
+ }
3753
+ break;
3754
+ case 12:
3755
+ if (ftype == Thrift.Type.STRING) {
3756
+ this.source = input.readString();
3218
3757
  } else {
3219
3758
  input.skip(ftype);
3220
3759
  }
@@ -3228,16 +3767,274 @@ TDBSqlSessionConf.prototype.read = function(input) {
3228
3767
  return;
3229
3768
  };
3230
3769
 
3231
- TDBSqlSessionConf.prototype.write = function(output) {
3232
- output.writeStructBegin('TDBSqlSessionConf');
3770
+ TExpressionInfo.prototype.write = function(output) {
3771
+ output.writeStructBegin('TExpressionInfo');
3772
+ if (this.className !== null && this.className !== undefined) {
3773
+ output.writeFieldBegin('className', Thrift.Type.STRING, 1);
3774
+ output.writeString(this.className);
3775
+ output.writeFieldEnd();
3776
+ }
3777
+ if (this.usage !== null && this.usage !== undefined) {
3778
+ output.writeFieldBegin('usage', Thrift.Type.STRING, 2);
3779
+ output.writeString(this.usage);
3780
+ output.writeFieldEnd();
3781
+ }
3782
+ if (this.name !== null && this.name !== undefined) {
3783
+ output.writeFieldBegin('name', Thrift.Type.STRING, 3);
3784
+ output.writeString(this.name);
3785
+ output.writeFieldEnd();
3786
+ }
3787
+ if (this.extended !== null && this.extended !== undefined) {
3788
+ output.writeFieldBegin('extended', Thrift.Type.STRING, 4);
3789
+ output.writeString(this.extended);
3790
+ output.writeFieldEnd();
3791
+ }
3792
+ if (this.db !== null && this.db !== undefined) {
3793
+ output.writeFieldBegin('db', Thrift.Type.STRING, 5);
3794
+ output.writeString(this.db);
3795
+ output.writeFieldEnd();
3796
+ }
3797
+ if (this.arguments !== null && this.arguments !== undefined) {
3798
+ output.writeFieldBegin('arguments', Thrift.Type.STRING, 6);
3799
+ output.writeString(this.arguments);
3800
+ output.writeFieldEnd();
3801
+ }
3802
+ if (this.examples !== null && this.examples !== undefined) {
3803
+ output.writeFieldBegin('examples', Thrift.Type.STRING, 7);
3804
+ output.writeString(this.examples);
3805
+ output.writeFieldEnd();
3806
+ }
3807
+ if (this.note !== null && this.note !== undefined) {
3808
+ output.writeFieldBegin('note', Thrift.Type.STRING, 8);
3809
+ output.writeString(this.note);
3810
+ output.writeFieldEnd();
3811
+ }
3812
+ if (this.group !== null && this.group !== undefined) {
3813
+ output.writeFieldBegin('group', Thrift.Type.STRING, 9);
3814
+ output.writeString(this.group);
3815
+ output.writeFieldEnd();
3816
+ }
3817
+ if (this.since !== null && this.since !== undefined) {
3818
+ output.writeFieldBegin('since', Thrift.Type.STRING, 10);
3819
+ output.writeString(this.since);
3820
+ output.writeFieldEnd();
3821
+ }
3822
+ if (this.deprecated !== null && this.deprecated !== undefined) {
3823
+ output.writeFieldBegin('deprecated', Thrift.Type.STRING, 11);
3824
+ output.writeString(this.deprecated);
3825
+ output.writeFieldEnd();
3826
+ }
3827
+ if (this.source !== null && this.source !== undefined) {
3828
+ output.writeFieldBegin('source', Thrift.Type.STRING, 12);
3829
+ output.writeString(this.source);
3830
+ output.writeFieldEnd();
3831
+ }
3832
+ output.writeFieldStop();
3833
+ output.writeStructEnd();
3834
+ return;
3835
+ };
3836
+
3837
+ var TDBSqlConfValue = module.exports.TDBSqlConfValue = function(args) {
3838
+ this.value = null;
3839
+ if (args) {
3840
+ if (args.value !== undefined && args.value !== null) {
3841
+ this.value = args.value;
3842
+ }
3843
+ }
3844
+ };
3845
+ TDBSqlConfValue.prototype = {};
3846
+ TDBSqlConfValue.prototype.read = function(input) {
3847
+ input.readStructBegin();
3848
+ while (true) {
3849
+ var ret = input.readFieldBegin();
3850
+ var ftype = ret.ftype;
3851
+ var fid = ret.fid;
3852
+ if (ftype == Thrift.Type.STOP) {
3853
+ break;
3854
+ }
3855
+ switch (fid) {
3856
+ case 1:
3857
+ if (ftype == Thrift.Type.STRING) {
3858
+ this.value = input.readString();
3859
+ } else {
3860
+ input.skip(ftype);
3861
+ }
3862
+ break;
3863
+ case 0:
3864
+ input.skip(ftype);
3865
+ break;
3866
+ default:
3867
+ input.skip(ftype);
3868
+ }
3869
+ input.readFieldEnd();
3870
+ }
3871
+ input.readStructEnd();
3872
+ return;
3873
+ };
3874
+
3875
+ TDBSqlConfValue.prototype.write = function(output) {
3876
+ output.writeStructBegin('TDBSqlConfValue');
3877
+ if (this.value !== null && this.value !== undefined) {
3878
+ output.writeFieldBegin('value', Thrift.Type.STRING, 1);
3879
+ output.writeString(this.value);
3880
+ output.writeFieldEnd();
3881
+ }
3882
+ output.writeFieldStop();
3883
+ output.writeStructEnd();
3884
+ return;
3885
+ };
3886
+
3887
+ var TDBSqlSessionConf = module.exports.TDBSqlSessionConf = function(args) {
3888
+ this.confs = null;
3889
+ this.tempViews = null;
3890
+ this.currentDatabase = null;
3891
+ this.currentCatalog = null;
3892
+ this.sessionCapabilities = null;
3893
+ this.expressionsInfos = null;
3894
+ this.internalConfs = null;
3895
+ if (args) {
3896
+ if (args.confs !== undefined && args.confs !== null) {
3897
+ this.confs = Thrift.copyMap(args.confs, [null]);
3898
+ }
3899
+ if (args.tempViews !== undefined && args.tempViews !== null) {
3900
+ this.tempViews = Thrift.copyList(args.tempViews, [ttypes.TDBSqlTempView]);
3901
+ }
3902
+ if (args.currentDatabase !== undefined && args.currentDatabase !== null) {
3903
+ this.currentDatabase = args.currentDatabase;
3904
+ }
3905
+ if (args.currentCatalog !== undefined && args.currentCatalog !== null) {
3906
+ this.currentCatalog = args.currentCatalog;
3907
+ }
3908
+ if (args.sessionCapabilities !== undefined && args.sessionCapabilities !== null) {
3909
+ this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities(args.sessionCapabilities);
3910
+ }
3911
+ if (args.expressionsInfos !== undefined && args.expressionsInfos !== null) {
3912
+ this.expressionsInfos = Thrift.copyList(args.expressionsInfos, [ttypes.TExpressionInfo]);
3913
+ }
3914
+ if (args.internalConfs !== undefined && args.internalConfs !== null) {
3915
+ this.internalConfs = Thrift.copyMap(args.internalConfs, [ttypes.TDBSqlConfValue]);
3916
+ }
3917
+ }
3918
+ };
3919
+ TDBSqlSessionConf.prototype = {};
3920
+ TDBSqlSessionConf.prototype.read = function(input) {
3921
+ input.readStructBegin();
3922
+ while (true) {
3923
+ var ret = input.readFieldBegin();
3924
+ var ftype = ret.ftype;
3925
+ var fid = ret.fid;
3926
+ if (ftype == Thrift.Type.STOP) {
3927
+ break;
3928
+ }
3929
+ switch (fid) {
3930
+ case 1:
3931
+ if (ftype == Thrift.Type.MAP) {
3932
+ this.confs = {};
3933
+ var _rtmp3109 = input.readMapBegin();
3934
+ var _size108 = _rtmp3109.size || 0;
3935
+ for (var _i110 = 0; _i110 < _size108; ++_i110) {
3936
+ var key111 = null;
3937
+ var val112 = null;
3938
+ key111 = input.readString();
3939
+ val112 = input.readString();
3940
+ this.confs[key111] = val112;
3941
+ }
3942
+ input.readMapEnd();
3943
+ } else {
3944
+ input.skip(ftype);
3945
+ }
3946
+ break;
3947
+ case 2:
3948
+ if (ftype == Thrift.Type.LIST) {
3949
+ this.tempViews = [];
3950
+ var _rtmp3114 = input.readListBegin();
3951
+ var _size113 = _rtmp3114.size || 0;
3952
+ for (var _i115 = 0; _i115 < _size113; ++_i115) {
3953
+ var elem116 = null;
3954
+ elem116 = new ttypes.TDBSqlTempView();
3955
+ elem116.read(input);
3956
+ this.tempViews.push(elem116);
3957
+ }
3958
+ input.readListEnd();
3959
+ } else {
3960
+ input.skip(ftype);
3961
+ }
3962
+ break;
3963
+ case 3:
3964
+ if (ftype == Thrift.Type.STRING) {
3965
+ this.currentDatabase = input.readString();
3966
+ } else {
3967
+ input.skip(ftype);
3968
+ }
3969
+ break;
3970
+ case 4:
3971
+ if (ftype == Thrift.Type.STRING) {
3972
+ this.currentCatalog = input.readString();
3973
+ } else {
3974
+ input.skip(ftype);
3975
+ }
3976
+ break;
3977
+ case 5:
3978
+ if (ftype == Thrift.Type.STRUCT) {
3979
+ this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities();
3980
+ this.sessionCapabilities.read(input);
3981
+ } else {
3982
+ input.skip(ftype);
3983
+ }
3984
+ break;
3985
+ case 6:
3986
+ if (ftype == Thrift.Type.LIST) {
3987
+ this.expressionsInfos = [];
3988
+ var _rtmp3118 = input.readListBegin();
3989
+ var _size117 = _rtmp3118.size || 0;
3990
+ for (var _i119 = 0; _i119 < _size117; ++_i119) {
3991
+ var elem120 = null;
3992
+ elem120 = new ttypes.TExpressionInfo();
3993
+ elem120.read(input);
3994
+ this.expressionsInfos.push(elem120);
3995
+ }
3996
+ input.readListEnd();
3997
+ } else {
3998
+ input.skip(ftype);
3999
+ }
4000
+ break;
4001
+ case 7:
4002
+ if (ftype == Thrift.Type.MAP) {
4003
+ this.internalConfs = {};
4004
+ var _rtmp3122 = input.readMapBegin();
4005
+ var _size121 = _rtmp3122.size || 0;
4006
+ for (var _i123 = 0; _i123 < _size121; ++_i123) {
4007
+ var key124 = null;
4008
+ var val125 = null;
4009
+ key124 = input.readString();
4010
+ val125 = new ttypes.TDBSqlConfValue();
4011
+ val125.read(input);
4012
+ this.internalConfs[key124] = val125;
4013
+ }
4014
+ input.readMapEnd();
4015
+ } else {
4016
+ input.skip(ftype);
4017
+ }
4018
+ break;
4019
+ default:
4020
+ input.skip(ftype);
4021
+ }
4022
+ input.readFieldEnd();
4023
+ }
4024
+ input.readStructEnd();
4025
+ return;
4026
+ };
4027
+
4028
+ TDBSqlSessionConf.prototype.write = function(output) {
4029
+ output.writeStructBegin('TDBSqlSessionConf');
3233
4030
  if (this.confs !== null && this.confs !== undefined) {
3234
4031
  output.writeFieldBegin('confs', Thrift.Type.MAP, 1);
3235
4032
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confs));
3236
- for (var kiter112 in this.confs) {
3237
- if (this.confs.hasOwnProperty(kiter112)) {
3238
- var viter113 = this.confs[kiter112];
3239
- output.writeString(kiter112);
3240
- output.writeString(viter113);
4033
+ for (var kiter126 in this.confs) {
4034
+ if (this.confs.hasOwnProperty(kiter126)) {
4035
+ var viter127 = this.confs[kiter126];
4036
+ output.writeString(kiter126);
4037
+ output.writeString(viter127);
3241
4038
  }
3242
4039
  }
3243
4040
  output.writeMapEnd();
@@ -3246,10 +4043,10 @@ TDBSqlSessionConf.prototype.write = function(output) {
3246
4043
  if (this.tempViews !== null && this.tempViews !== undefined) {
3247
4044
  output.writeFieldBegin('tempViews', Thrift.Type.LIST, 2);
3248
4045
  output.writeListBegin(Thrift.Type.STRUCT, this.tempViews.length);
3249
- for (var iter114 in this.tempViews) {
3250
- if (this.tempViews.hasOwnProperty(iter114)) {
3251
- iter114 = this.tempViews[iter114];
3252
- iter114.write(output);
4046
+ for (var iter128 in this.tempViews) {
4047
+ if (this.tempViews.hasOwnProperty(iter128)) {
4048
+ iter128 = this.tempViews[iter128];
4049
+ iter128.write(output);
3253
4050
  }
3254
4051
  }
3255
4052
  output.writeListEnd();
@@ -3270,6 +4067,31 @@ TDBSqlSessionConf.prototype.write = function(output) {
3270
4067
  this.sessionCapabilities.write(output);
3271
4068
  output.writeFieldEnd();
3272
4069
  }
4070
+ if (this.expressionsInfos !== null && this.expressionsInfos !== undefined) {
4071
+ output.writeFieldBegin('expressionsInfos', Thrift.Type.LIST, 6);
4072
+ output.writeListBegin(Thrift.Type.STRUCT, this.expressionsInfos.length);
4073
+ for (var iter129 in this.expressionsInfos) {
4074
+ if (this.expressionsInfos.hasOwnProperty(iter129)) {
4075
+ iter129 = this.expressionsInfos[iter129];
4076
+ iter129.write(output);
4077
+ }
4078
+ }
4079
+ output.writeListEnd();
4080
+ output.writeFieldEnd();
4081
+ }
4082
+ if (this.internalConfs !== null && this.internalConfs !== undefined) {
4083
+ output.writeFieldBegin('internalConfs', Thrift.Type.MAP, 7);
4084
+ output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRUCT, Thrift.objectLength(this.internalConfs));
4085
+ for (var kiter130 in this.internalConfs) {
4086
+ if (this.internalConfs.hasOwnProperty(kiter130)) {
4087
+ var viter131 = this.internalConfs[kiter130];
4088
+ output.writeString(kiter130);
4089
+ viter131.write(output);
4090
+ }
4091
+ }
4092
+ output.writeMapEnd();
4093
+ output.writeFieldEnd();
4094
+ }
3273
4095
  output.writeFieldStop();
3274
4096
  output.writeStructEnd();
3275
4097
  return;
@@ -3281,6 +4103,8 @@ var TStatus = module.exports.TStatus = function(args) {
3281
4103
  this.sqlState = null;
3282
4104
  this.errorCode = null;
3283
4105
  this.errorMessage = null;
4106
+ this.displayMessage = null;
4107
+ this.responseValidation = null;
3284
4108
  if (args) {
3285
4109
  if (args.statusCode !== undefined && args.statusCode !== null) {
3286
4110
  this.statusCode = args.statusCode;
@@ -3299,6 +4123,12 @@ var TStatus = module.exports.TStatus = function(args) {
3299
4123
  if (args.errorMessage !== undefined && args.errorMessage !== null) {
3300
4124
  this.errorMessage = args.errorMessage;
3301
4125
  }
4126
+ if (args.displayMessage !== undefined && args.displayMessage !== null) {
4127
+ this.displayMessage = args.displayMessage;
4128
+ }
4129
+ if (args.responseValidation !== undefined && args.responseValidation !== null) {
4130
+ this.responseValidation = args.responseValidation;
4131
+ }
3302
4132
  }
3303
4133
  };
3304
4134
  TStatus.prototype = {};
@@ -3322,12 +4152,12 @@ TStatus.prototype.read = function(input) {
3322
4152
  case 2:
3323
4153
  if (ftype == Thrift.Type.LIST) {
3324
4154
  this.infoMessages = [];
3325
- var _rtmp3116 = input.readListBegin();
3326
- var _size115 = _rtmp3116.size || 0;
3327
- for (var _i117 = 0; _i117 < _size115; ++_i117) {
3328
- var elem118 = null;
3329
- elem118 = input.readString();
3330
- this.infoMessages.push(elem118);
4155
+ var _rtmp3133 = input.readListBegin();
4156
+ var _size132 = _rtmp3133.size || 0;
4157
+ for (var _i134 = 0; _i134 < _size132; ++_i134) {
4158
+ var elem135 = null;
4159
+ elem135 = input.readString();
4160
+ this.infoMessages.push(elem135);
3331
4161
  }
3332
4162
  input.readListEnd();
3333
4163
  } else {
@@ -3355,6 +4185,20 @@ TStatus.prototype.read = function(input) {
3355
4185
  input.skip(ftype);
3356
4186
  }
3357
4187
  break;
4188
+ case 6:
4189
+ if (ftype == Thrift.Type.STRING) {
4190
+ this.displayMessage = input.readString();
4191
+ } else {
4192
+ input.skip(ftype);
4193
+ }
4194
+ break;
4195
+ case 3329:
4196
+ if (ftype == Thrift.Type.STRING) {
4197
+ this.responseValidation = input.readBinary();
4198
+ } else {
4199
+ input.skip(ftype);
4200
+ }
4201
+ break;
3358
4202
  default:
3359
4203
  input.skip(ftype);
3360
4204
  }
@@ -3374,10 +4218,10 @@ TStatus.prototype.write = function(output) {
3374
4218
  if (this.infoMessages !== null && this.infoMessages !== undefined) {
3375
4219
  output.writeFieldBegin('infoMessages', Thrift.Type.LIST, 2);
3376
4220
  output.writeListBegin(Thrift.Type.STRING, this.infoMessages.length);
3377
- for (var iter119 in this.infoMessages) {
3378
- if (this.infoMessages.hasOwnProperty(iter119)) {
3379
- iter119 = this.infoMessages[iter119];
3380
- output.writeString(iter119);
4221
+ for (var iter136 in this.infoMessages) {
4222
+ if (this.infoMessages.hasOwnProperty(iter136)) {
4223
+ iter136 = this.infoMessages[iter136];
4224
+ output.writeString(iter136);
3381
4225
  }
3382
4226
  }
3383
4227
  output.writeListEnd();
@@ -3398,6 +4242,16 @@ TStatus.prototype.write = function(output) {
3398
4242
  output.writeString(this.errorMessage);
3399
4243
  output.writeFieldEnd();
3400
4244
  }
4245
+ if (this.displayMessage !== null && this.displayMessage !== undefined) {
4246
+ output.writeFieldBegin('displayMessage', Thrift.Type.STRING, 6);
4247
+ output.writeString(this.displayMessage);
4248
+ output.writeFieldEnd();
4249
+ }
4250
+ if (this.responseValidation !== null && this.responseValidation !== undefined) {
4251
+ output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
4252
+ output.writeBinary(this.responseValidation);
4253
+ output.writeFieldEnd();
4254
+ }
3401
4255
  output.writeFieldStop();
3402
4256
  output.writeStructEnd();
3403
4257
  return;
@@ -3469,6 +4323,7 @@ TNamespace.prototype.write = function(output) {
3469
4323
  var THandleIdentifier = module.exports.THandleIdentifier = function(args) {
3470
4324
  this.guid = null;
3471
4325
  this.secret = null;
4326
+ this.executionVersion = null;
3472
4327
  if (args) {
3473
4328
  if (args.guid !== undefined && args.guid !== null) {
3474
4329
  this.guid = args.guid;
@@ -3480,6 +4335,9 @@ var THandleIdentifier = module.exports.THandleIdentifier = function(args) {
3480
4335
  } else {
3481
4336
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field secret is unset!');
3482
4337
  }
4338
+ if (args.executionVersion !== undefined && args.executionVersion !== null) {
4339
+ this.executionVersion = args.executionVersion;
4340
+ }
3483
4341
  }
3484
4342
  };
3485
4343
  THandleIdentifier.prototype = {};
@@ -3507,6 +4365,13 @@ THandleIdentifier.prototype.read = function(input) {
3507
4365
  input.skip(ftype);
3508
4366
  }
3509
4367
  break;
4368
+ case 3329:
4369
+ if (ftype == Thrift.Type.I16) {
4370
+ this.executionVersion = input.readI16();
4371
+ } else {
4372
+ input.skip(ftype);
4373
+ }
4374
+ break;
3510
4375
  default:
3511
4376
  input.skip(ftype);
3512
4377
  }
@@ -3528,6 +4393,11 @@ THandleIdentifier.prototype.write = function(output) {
3528
4393
  output.writeBinary(this.secret);
3529
4394
  output.writeFieldEnd();
3530
4395
  }
4396
+ if (this.executionVersion !== null && this.executionVersion !== undefined) {
4397
+ output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3329);
4398
+ output.writeI16(this.executionVersion);
4399
+ output.writeFieldEnd();
4400
+ }
3531
4401
  output.writeFieldStop();
3532
4402
  output.writeStructEnd();
3533
4403
  return;
@@ -3780,14 +4650,14 @@ TOpenSessionReq.prototype.read = function(input) {
3780
4650
  case 4:
3781
4651
  if (ftype == Thrift.Type.MAP) {
3782
4652
  this.configuration = {};
3783
- var _rtmp3121 = input.readMapBegin();
3784
- var _size120 = _rtmp3121.size || 0;
3785
- for (var _i122 = 0; _i122 < _size120; ++_i122) {
3786
- var key123 = null;
3787
- var val124 = null;
3788
- key123 = input.readString();
3789
- val124 = input.readString();
3790
- this.configuration[key123] = val124;
4653
+ var _rtmp3138 = input.readMapBegin();
4654
+ var _size137 = _rtmp3138.size || 0;
4655
+ for (var _i139 = 0; _i139 < _size137; ++_i139) {
4656
+ var key140 = null;
4657
+ var val141 = null;
4658
+ key140 = input.readString();
4659
+ val141 = input.readString();
4660
+ this.configuration[key140] = val141;
3791
4661
  }
3792
4662
  input.readMapEnd();
3793
4663
  } else {
@@ -3797,12 +4667,12 @@ TOpenSessionReq.prototype.read = function(input) {
3797
4667
  case 1281:
3798
4668
  if (ftype == Thrift.Type.LIST) {
3799
4669
  this.getInfos = [];
3800
- var _rtmp3126 = input.readListBegin();
3801
- var _size125 = _rtmp3126.size || 0;
3802
- for (var _i127 = 0; _i127 < _size125; ++_i127) {
3803
- var elem128 = null;
3804
- elem128 = input.readI32();
3805
- this.getInfos.push(elem128);
4670
+ var _rtmp3143 = input.readListBegin();
4671
+ var _size142 = _rtmp3143.size || 0;
4672
+ for (var _i144 = 0; _i144 < _size142; ++_i144) {
4673
+ var elem145 = null;
4674
+ elem145 = input.readI32();
4675
+ this.getInfos.push(elem145);
3806
4676
  }
3807
4677
  input.readListEnd();
3808
4678
  } else {
@@ -3819,14 +4689,14 @@ TOpenSessionReq.prototype.read = function(input) {
3819
4689
  case 1283:
3820
4690
  if (ftype == Thrift.Type.MAP) {
3821
4691
  this.connectionProperties = {};
3822
- var _rtmp3130 = input.readMapBegin();
3823
- var _size129 = _rtmp3130.size || 0;
3824
- for (var _i131 = 0; _i131 < _size129; ++_i131) {
3825
- var key132 = null;
3826
- var val133 = null;
3827
- key132 = input.readString();
3828
- val133 = input.readString();
3829
- this.connectionProperties[key132] = val133;
4692
+ var _rtmp3147 = input.readMapBegin();
4693
+ var _size146 = _rtmp3147.size || 0;
4694
+ for (var _i148 = 0; _i148 < _size146; ++_i148) {
4695
+ var key149 = null;
4696
+ var val150 = null;
4697
+ key149 = input.readString();
4698
+ val150 = input.readString();
4699
+ this.connectionProperties[key149] = val150;
3830
4700
  }
3831
4701
  input.readMapEnd();
3832
4702
  } else {
@@ -3885,11 +4755,11 @@ TOpenSessionReq.prototype.write = function(output) {
3885
4755
  if (this.configuration !== null && this.configuration !== undefined) {
3886
4756
  output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
3887
4757
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
3888
- for (var kiter134 in this.configuration) {
3889
- if (this.configuration.hasOwnProperty(kiter134)) {
3890
- var viter135 = this.configuration[kiter134];
3891
- output.writeString(kiter134);
3892
- output.writeString(viter135);
4758
+ for (var kiter151 in this.configuration) {
4759
+ if (this.configuration.hasOwnProperty(kiter151)) {
4760
+ var viter152 = this.configuration[kiter151];
4761
+ output.writeString(kiter151);
4762
+ output.writeString(viter152);
3893
4763
  }
3894
4764
  }
3895
4765
  output.writeMapEnd();
@@ -3898,10 +4768,10 @@ TOpenSessionReq.prototype.write = function(output) {
3898
4768
  if (this.getInfos !== null && this.getInfos !== undefined) {
3899
4769
  output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
3900
4770
  output.writeListBegin(Thrift.Type.I32, this.getInfos.length);
3901
- for (var iter136 in this.getInfos) {
3902
- if (this.getInfos.hasOwnProperty(iter136)) {
3903
- iter136 = this.getInfos[iter136];
3904
- output.writeI32(iter136);
4771
+ for (var iter153 in this.getInfos) {
4772
+ if (this.getInfos.hasOwnProperty(iter153)) {
4773
+ iter153 = this.getInfos[iter153];
4774
+ output.writeI32(iter153);
3905
4775
  }
3906
4776
  }
3907
4777
  output.writeListEnd();
@@ -3915,11 +4785,11 @@ TOpenSessionReq.prototype.write = function(output) {
3915
4785
  if (this.connectionProperties !== null && this.connectionProperties !== undefined) {
3916
4786
  output.writeFieldBegin('connectionProperties', Thrift.Type.MAP, 1283);
3917
4787
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.connectionProperties));
3918
- for (var kiter137 in this.connectionProperties) {
3919
- if (this.connectionProperties.hasOwnProperty(kiter137)) {
3920
- var viter138 = this.connectionProperties[kiter137];
3921
- output.writeString(kiter137);
3922
- output.writeString(viter138);
4788
+ for (var kiter154 in this.connectionProperties) {
4789
+ if (this.connectionProperties.hasOwnProperty(kiter154)) {
4790
+ var viter155 = this.connectionProperties[kiter154];
4791
+ output.writeString(kiter154);
4792
+ output.writeString(viter155);
3923
4793
  }
3924
4794
  }
3925
4795
  output.writeMapEnd();
@@ -4018,14 +4888,14 @@ TOpenSessionResp.prototype.read = function(input) {
4018
4888
  case 4:
4019
4889
  if (ftype == Thrift.Type.MAP) {
4020
4890
  this.configuration = {};
4021
- var _rtmp3140 = input.readMapBegin();
4022
- var _size139 = _rtmp3140.size || 0;
4023
- for (var _i141 = 0; _i141 < _size139; ++_i141) {
4024
- var key142 = null;
4025
- var val143 = null;
4026
- key142 = input.readString();
4027
- val143 = input.readString();
4028
- this.configuration[key142] = val143;
4891
+ var _rtmp3157 = input.readMapBegin();
4892
+ var _size156 = _rtmp3157.size || 0;
4893
+ for (var _i158 = 0; _i158 < _size156; ++_i158) {
4894
+ var key159 = null;
4895
+ var val160 = null;
4896
+ key159 = input.readString();
4897
+ val160 = input.readString();
4898
+ this.configuration[key159] = val160;
4029
4899
  }
4030
4900
  input.readMapEnd();
4031
4901
  } else {
@@ -4050,13 +4920,13 @@ TOpenSessionResp.prototype.read = function(input) {
4050
4920
  case 1281:
4051
4921
  if (ftype == Thrift.Type.LIST) {
4052
4922
  this.getInfos = [];
4053
- var _rtmp3145 = input.readListBegin();
4054
- var _size144 = _rtmp3145.size || 0;
4055
- for (var _i146 = 0; _i146 < _size144; ++_i146) {
4056
- var elem147 = null;
4057
- elem147 = new ttypes.TGetInfoValue();
4058
- elem147.read(input);
4059
- this.getInfos.push(elem147);
4923
+ var _rtmp3162 = input.readListBegin();
4924
+ var _size161 = _rtmp3162.size || 0;
4925
+ for (var _i163 = 0; _i163 < _size161; ++_i163) {
4926
+ var elem164 = null;
4927
+ elem164 = new ttypes.TGetInfoValue();
4928
+ elem164.read(input);
4929
+ this.getInfos.push(elem164);
4060
4930
  }
4061
4931
  input.readListEnd();
4062
4932
  } else {
@@ -4092,11 +4962,11 @@ TOpenSessionResp.prototype.write = function(output) {
4092
4962
  if (this.configuration !== null && this.configuration !== undefined) {
4093
4963
  output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
4094
4964
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
4095
- for (var kiter148 in this.configuration) {
4096
- if (this.configuration.hasOwnProperty(kiter148)) {
4097
- var viter149 = this.configuration[kiter148];
4098
- output.writeString(kiter148);
4099
- output.writeString(viter149);
4965
+ for (var kiter165 in this.configuration) {
4966
+ if (this.configuration.hasOwnProperty(kiter165)) {
4967
+ var viter166 = this.configuration[kiter165];
4968
+ output.writeString(kiter165);
4969
+ output.writeString(viter166);
4100
4970
  }
4101
4971
  }
4102
4972
  output.writeMapEnd();
@@ -4115,10 +4985,10 @@ TOpenSessionResp.prototype.write = function(output) {
4115
4985
  if (this.getInfos !== null && this.getInfos !== undefined) {
4116
4986
  output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
4117
4987
  output.writeListBegin(Thrift.Type.STRUCT, this.getInfos.length);
4118
- for (var iter150 in this.getInfos) {
4119
- if (this.getInfos.hasOwnProperty(iter150)) {
4120
- iter150 = this.getInfos[iter150];
4121
- iter150.write(output);
4988
+ for (var iter167 in this.getInfos) {
4989
+ if (this.getInfos.hasOwnProperty(iter167)) {
4990
+ iter167 = this.getInfos[iter167];
4991
+ iter167.write(output);
4122
4992
  }
4123
4993
  }
4124
4994
  output.writeListEnd();
@@ -4685,6 +5555,7 @@ var TSparkArrowTypes = module.exports.TSparkArrowTypes = function(args) {
4685
5555
  this.decimalAsArrow = null;
4686
5556
  this.complexTypesAsArrow = null;
4687
5557
  this.intervalTypesAsArrow = null;
5558
+ this.nullTypeAsArrow = null;
4688
5559
  if (args) {
4689
5560
  if (args.timestampAsArrow !== undefined && args.timestampAsArrow !== null) {
4690
5561
  this.timestampAsArrow = args.timestampAsArrow;
@@ -4698,6 +5569,9 @@ var TSparkArrowTypes = module.exports.TSparkArrowTypes = function(args) {
4698
5569
  if (args.intervalTypesAsArrow !== undefined && args.intervalTypesAsArrow !== null) {
4699
5570
  this.intervalTypesAsArrow = args.intervalTypesAsArrow;
4700
5571
  }
5572
+ if (args.nullTypeAsArrow !== undefined && args.nullTypeAsArrow !== null) {
5573
+ this.nullTypeAsArrow = args.nullTypeAsArrow;
5574
+ }
4701
5575
  }
4702
5576
  };
4703
5577
  TSparkArrowTypes.prototype = {};
@@ -4739,6 +5613,13 @@ TSparkArrowTypes.prototype.read = function(input) {
4739
5613
  input.skip(ftype);
4740
5614
  }
4741
5615
  break;
5616
+ case 5:
5617
+ if (ftype == Thrift.Type.BOOL) {
5618
+ this.nullTypeAsArrow = input.readBool();
5619
+ } else {
5620
+ input.skip(ftype);
5621
+ }
5622
+ break;
4742
5623
  default:
4743
5624
  input.skip(ftype);
4744
5625
  }
@@ -4770,6 +5651,11 @@ TSparkArrowTypes.prototype.write = function(output) {
4770
5651
  output.writeBool(this.intervalTypesAsArrow);
4771
5652
  output.writeFieldEnd();
4772
5653
  }
5654
+ if (this.nullTypeAsArrow !== null && this.nullTypeAsArrow !== undefined) {
5655
+ output.writeFieldBegin('nullTypeAsArrow', Thrift.Type.BOOL, 5);
5656
+ output.writeBool(this.nullTypeAsArrow);
5657
+ output.writeFieldEnd();
5658
+ }
4773
5659
  output.writeFieldStop();
4774
5660
  output.writeStructEnd();
4775
5661
  return;
@@ -4787,11 +5673,24 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
4787
5673
  this.canDecompressLZ4Result = null;
4788
5674
  this.maxBytesPerFile = null;
4789
5675
  this.useArrowNativeTypes = null;
5676
+ this.resultRowLimit = null;
5677
+ this.parameters = null;
4790
5678
  this.operationId = null;
4791
5679
  this.sessionConf = null;
4792
5680
  this.rejectHighCostQueries = null;
4793
5681
  this.estimatedCost = null;
4794
5682
  this.executionVersion = null;
5683
+ this.requestValidation = null;
5684
+ this.resultPersistenceMode = null;
5685
+ this.trimArrowBatchesToLimit = null;
5686
+ this.fetchDisposition = null;
5687
+ this.enforceResultPersistenceMode = null;
5688
+ this.statementList = null;
5689
+ this.persistResultManifest = null;
5690
+ this.resultRetentionSeconds = null;
5691
+ this.resultByteLimit = null;
5692
+ this.resultDataFormat = null;
5693
+ this.originatingClientIdentity = null;
4795
5694
  if (args) {
4796
5695
  if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
4797
5696
  this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
@@ -4830,6 +5729,12 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
4830
5729
  if (args.useArrowNativeTypes !== undefined && args.useArrowNativeTypes !== null) {
4831
5730
  this.useArrowNativeTypes = new ttypes.TSparkArrowTypes(args.useArrowNativeTypes);
4832
5731
  }
5732
+ if (args.resultRowLimit !== undefined && args.resultRowLimit !== null) {
5733
+ this.resultRowLimit = args.resultRowLimit;
5734
+ }
5735
+ if (args.parameters !== undefined && args.parameters !== null) {
5736
+ this.parameters = Thrift.copyList(args.parameters, [ttypes.TSparkParameter]);
5737
+ }
4833
5738
  if (args.operationId !== undefined && args.operationId !== null) {
4834
5739
  this.operationId = new ttypes.THandleIdentifier(args.operationId);
4835
5740
  }
@@ -4845,6 +5750,39 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
4845
5750
  if (args.executionVersion !== undefined && args.executionVersion !== null) {
4846
5751
  this.executionVersion = args.executionVersion;
4847
5752
  }
5753
+ if (args.requestValidation !== undefined && args.requestValidation !== null) {
5754
+ this.requestValidation = args.requestValidation;
5755
+ }
5756
+ if (args.resultPersistenceMode !== undefined && args.resultPersistenceMode !== null) {
5757
+ this.resultPersistenceMode = args.resultPersistenceMode;
5758
+ }
5759
+ if (args.trimArrowBatchesToLimit !== undefined && args.trimArrowBatchesToLimit !== null) {
5760
+ this.trimArrowBatchesToLimit = args.trimArrowBatchesToLimit;
5761
+ }
5762
+ if (args.fetchDisposition !== undefined && args.fetchDisposition !== null) {
5763
+ this.fetchDisposition = args.fetchDisposition;
5764
+ }
5765
+ if (args.enforceResultPersistenceMode !== undefined && args.enforceResultPersistenceMode !== null) {
5766
+ this.enforceResultPersistenceMode = args.enforceResultPersistenceMode;
5767
+ }
5768
+ if (args.statementList !== undefined && args.statementList !== null) {
5769
+ this.statementList = Thrift.copyList(args.statementList, [null]);
5770
+ }
5771
+ if (args.persistResultManifest !== undefined && args.persistResultManifest !== null) {
5772
+ this.persistResultManifest = args.persistResultManifest;
5773
+ }
5774
+ if (args.resultRetentionSeconds !== undefined && args.resultRetentionSeconds !== null) {
5775
+ this.resultRetentionSeconds = args.resultRetentionSeconds;
5776
+ }
5777
+ if (args.resultByteLimit !== undefined && args.resultByteLimit !== null) {
5778
+ this.resultByteLimit = args.resultByteLimit;
5779
+ }
5780
+ if (args.resultDataFormat !== undefined && args.resultDataFormat !== null) {
5781
+ this.resultDataFormat = new ttypes.TDBSqlResultFormat(args.resultDataFormat);
5782
+ }
5783
+ if (args.originatingClientIdentity !== undefined && args.originatingClientIdentity !== null) {
5784
+ this.originatingClientIdentity = args.originatingClientIdentity;
5785
+ }
4848
5786
  }
4849
5787
  };
4850
5788
  TExecuteStatementReq.prototype = {};
@@ -4876,14 +5814,14 @@ TExecuteStatementReq.prototype.read = function(input) {
4876
5814
  case 3:
4877
5815
  if (ftype == Thrift.Type.MAP) {
4878
5816
  this.confOverlay = {};
4879
- var _rtmp3152 = input.readMapBegin();
4880
- var _size151 = _rtmp3152.size || 0;
4881
- for (var _i153 = 0; _i153 < _size151; ++_i153) {
4882
- var key154 = null;
4883
- var val155 = null;
4884
- key154 = input.readString();
4885
- val155 = input.readString();
4886
- this.confOverlay[key154] = val155;
5817
+ var _rtmp3169 = input.readMapBegin();
5818
+ var _size168 = _rtmp3169.size || 0;
5819
+ for (var _i170 = 0; _i170 < _size168; ++_i170) {
5820
+ var key171 = null;
5821
+ var val172 = null;
5822
+ key171 = input.readString();
5823
+ val172 = input.readString();
5824
+ this.confOverlay[key171] = val172;
4887
5825
  }
4888
5826
  input.readMapEnd();
4889
5827
  } else {
@@ -4948,6 +5886,29 @@ TExecuteStatementReq.prototype.read = function(input) {
4948
5886
  input.skip(ftype);
4949
5887
  }
4950
5888
  break;
5889
+ case 1287:
5890
+ if (ftype == Thrift.Type.I64) {
5891
+ this.resultRowLimit = input.readI64();
5892
+ } else {
5893
+ input.skip(ftype);
5894
+ }
5895
+ break;
5896
+ case 1288:
5897
+ if (ftype == Thrift.Type.LIST) {
5898
+ this.parameters = [];
5899
+ var _rtmp3174 = input.readListBegin();
5900
+ var _size173 = _rtmp3174.size || 0;
5901
+ for (var _i175 = 0; _i175 < _size173; ++_i175) {
5902
+ var elem176 = null;
5903
+ elem176 = new ttypes.TSparkParameter();
5904
+ elem176.read(input);
5905
+ this.parameters.push(elem176);
5906
+ }
5907
+ input.readListEnd();
5908
+ } else {
5909
+ input.skip(ftype);
5910
+ }
5911
+ break;
4951
5912
  case 3329:
4952
5913
  if (ftype == Thrift.Type.STRUCT) {
4953
5914
  this.operationId = new ttypes.THandleIdentifier();
@@ -4985,6 +5946,93 @@ TExecuteStatementReq.prototype.read = function(input) {
4985
5946
  input.skip(ftype);
4986
5947
  }
4987
5948
  break;
5949
+ case 3334:
5950
+ if (ftype == Thrift.Type.STRING) {
5951
+ this.requestValidation = input.readBinary();
5952
+ } else {
5953
+ input.skip(ftype);
5954
+ }
5955
+ break;
5956
+ case 3335:
5957
+ if (ftype == Thrift.Type.I32) {
5958
+ this.resultPersistenceMode = input.readI32();
5959
+ } else {
5960
+ input.skip(ftype);
5961
+ }
5962
+ break;
5963
+ case 3336:
5964
+ if (ftype == Thrift.Type.BOOL) {
5965
+ this.trimArrowBatchesToLimit = input.readBool();
5966
+ } else {
5967
+ input.skip(ftype);
5968
+ }
5969
+ break;
5970
+ case 3337:
5971
+ if (ftype == Thrift.Type.I32) {
5972
+ this.fetchDisposition = input.readI32();
5973
+ } else {
5974
+ input.skip(ftype);
5975
+ }
5976
+ break;
5977
+ case 3344:
5978
+ if (ftype == Thrift.Type.BOOL) {
5979
+ this.enforceResultPersistenceMode = input.readBool();
5980
+ } else {
5981
+ input.skip(ftype);
5982
+ }
5983
+ break;
5984
+ case 3345:
5985
+ if (ftype == Thrift.Type.LIST) {
5986
+ this.statementList = [];
5987
+ var _rtmp3178 = input.readListBegin();
5988
+ var _size177 = _rtmp3178.size || 0;
5989
+ for (var _i179 = 0; _i179 < _size177; ++_i179) {
5990
+ var elem180 = null;
5991
+ elem180 = new ttypes.TDBSqlStatement();
5992
+ elem180.read(input);
5993
+ this.statementList.push(elem180);
5994
+ }
5995
+ input.readListEnd();
5996
+ } else {
5997
+ input.skip(ftype);
5998
+ }
5999
+ break;
6000
+ case 3346:
6001
+ if (ftype == Thrift.Type.BOOL) {
6002
+ this.persistResultManifest = input.readBool();
6003
+ } else {
6004
+ input.skip(ftype);
6005
+ }
6006
+ break;
6007
+ case 3347:
6008
+ if (ftype == Thrift.Type.I64) {
6009
+ this.resultRetentionSeconds = input.readI64();
6010
+ } else {
6011
+ input.skip(ftype);
6012
+ }
6013
+ break;
6014
+ case 3348:
6015
+ if (ftype == Thrift.Type.I64) {
6016
+ this.resultByteLimit = input.readI64();
6017
+ } else {
6018
+ input.skip(ftype);
6019
+ }
6020
+ break;
6021
+ case 3349:
6022
+ if (ftype == Thrift.Type.STRUCT) {
6023
+ this.resultDataFormat = new ttypes.TDBSqlResultFormat();
6024
+ this.resultDataFormat.read(input);
6025
+ } else {
6026
+ input.skip(ftype);
6027
+ }
6028
+ break;
6029
+ case 3350:
6030
+ if (ftype == Thrift.Type.STRING) {
6031
+ this.originatingClientIdentity = input.readString();
6032
+ } else {
6033
+ input.skip(ftype);
6034
+ }
6035
+ break;
4988
6036
  default:
4989
6037
  input.skip(ftype);
4990
6038
  }
@@ -5009,11 +6057,11 @@ TExecuteStatementReq.prototype.write = function(output) {
5009
6057
  if (this.confOverlay !== null && this.confOverlay !== undefined) {
5010
6058
  output.writeFieldBegin('confOverlay', Thrift.Type.MAP, 3);
5011
6059
  output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confOverlay));
5012
- for (var kiter156 in this.confOverlay) {
5013
- if (this.confOverlay.hasOwnProperty(kiter156)) {
5014
- var viter157 = this.confOverlay[kiter156];
5015
- output.writeString(kiter156);
5016
- output.writeString(viter157);
6060
+ for (var kiter181 in this.confOverlay) {
6061
+ if (this.confOverlay.hasOwnProperty(kiter181)) {
6062
+ var viter182 = this.confOverlay[kiter181];
6063
+ output.writeString(kiter181);
6064
+ output.writeString(viter182);
5017
6065
  }
5018
6066
  }
5019
6067
  output.writeMapEnd();
@@ -5059,29 +6107,333 @@ TExecuteStatementReq.prototype.write = function(output) {
5059
6107
  this.useArrowNativeTypes.write(output);
5060
6108
  output.writeFieldEnd();
5061
6109
  }
6110
+ if (this.resultRowLimit !== null && this.resultRowLimit !== undefined) {
6111
+ output.writeFieldBegin('resultRowLimit', Thrift.Type.I64, 1287);
6112
+ output.writeI64(this.resultRowLimit);
6113
+ output.writeFieldEnd();
6114
+ }
6115
+ if (this.parameters !== null && this.parameters !== undefined) {
6116
+ output.writeFieldBegin('parameters', Thrift.Type.LIST, 1288);
6117
+ output.writeListBegin(Thrift.Type.STRUCT, this.parameters.length);
6118
+ for (var iter183 in this.parameters) {
6119
+ if (this.parameters.hasOwnProperty(iter183)) {
6120
+ iter183 = this.parameters[iter183];
6121
+ iter183.write(output);
6122
+ }
6123
+ }
6124
+ output.writeListEnd();
6125
+ output.writeFieldEnd();
6126
+ }
5062
6127
  if (this.operationId !== null && this.operationId !== undefined) {
5063
6128
  output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
5064
6129
  this.operationId.write(output);
5065
6130
  output.writeFieldEnd();
5066
6131
  }
5067
- if (this.sessionConf !== null && this.sessionConf !== undefined) {
5068
- output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
5069
- this.sessionConf.write(output);
6132
+ if (this.sessionConf !== null && this.sessionConf !== undefined) {
6133
+ output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
6134
+ this.sessionConf.write(output);
6135
+ output.writeFieldEnd();
6136
+ }
6137
+ if (this.rejectHighCostQueries !== null && this.rejectHighCostQueries !== undefined) {
6138
+ output.writeFieldBegin('rejectHighCostQueries', Thrift.Type.BOOL, 3331);
6139
+ output.writeBool(this.rejectHighCostQueries);
6140
+ output.writeFieldEnd();
6141
+ }
6142
+ if (this.estimatedCost !== null && this.estimatedCost !== undefined) {
6143
+ output.writeFieldBegin('estimatedCost', Thrift.Type.DOUBLE, 3332);
6144
+ output.writeDouble(this.estimatedCost);
6145
+ output.writeFieldEnd();
6146
+ }
6147
+ if (this.executionVersion !== null && this.executionVersion !== undefined) {
6148
+ output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3333);
6149
+ output.writeI16(this.executionVersion);
6150
+ output.writeFieldEnd();
6151
+ }
6152
+ if (this.requestValidation !== null && this.requestValidation !== undefined) {
6153
+ output.writeFieldBegin('requestValidation', Thrift.Type.STRING, 3334);
6154
+ output.writeBinary(this.requestValidation);
6155
+ output.writeFieldEnd();
6156
+ }
6157
+ if (this.resultPersistenceMode !== null && this.resultPersistenceMode !== undefined) {
6158
+ output.writeFieldBegin('resultPersistenceMode', Thrift.Type.I32, 3335);
6159
+ output.writeI32(this.resultPersistenceMode);
6160
+ output.writeFieldEnd();
6161
+ }
6162
+ if (this.trimArrowBatchesToLimit !== null && this.trimArrowBatchesToLimit !== undefined) {
6163
+ output.writeFieldBegin('trimArrowBatchesToLimit', Thrift.Type.BOOL, 3336);
6164
+ output.writeBool(this.trimArrowBatchesToLimit);
6165
+ output.writeFieldEnd();
6166
+ }
6167
+ if (this.fetchDisposition !== null && this.fetchDisposition !== undefined) {
6168
+ output.writeFieldBegin('fetchDisposition', Thrift.Type.I32, 3337);
6169
+ output.writeI32(this.fetchDisposition);
6170
+ output.writeFieldEnd();
6171
+ }
6172
+ if (this.enforceResultPersistenceMode !== null && this.enforceResultPersistenceMode !== undefined) {
6173
+ output.writeFieldBegin('enforceResultPersistenceMode', Thrift.Type.BOOL, 3344);
6174
+ output.writeBool(this.enforceResultPersistenceMode);
6175
+ output.writeFieldEnd();
6176
+ }
6177
+ if (this.statementList !== null && this.statementList !== undefined) {
6178
+ output.writeFieldBegin('statementList', Thrift.Type.LIST, 3345);
6179
+ output.writeListBegin(Thrift.Type.STRUCT, this.statementList.length);
6180
+ for (var iter184 in this.statementList) {
6181
+ if (this.statementList.hasOwnProperty(iter184)) {
6182
+ iter184 = this.statementList[iter184];
6183
+ iter184.write(output);
6184
+ }
6185
+ }
6186
+ output.writeListEnd();
6187
+ output.writeFieldEnd();
6188
+ }
6189
+ if (this.persistResultManifest !== null && this.persistResultManifest !== undefined) {
6190
+ output.writeFieldBegin('persistResultManifest', Thrift.Type.BOOL, 3346);
6191
+ output.writeBool(this.persistResultManifest);
6192
+ output.writeFieldEnd();
6193
+ }
6194
+ if (this.resultRetentionSeconds !== null && this.resultRetentionSeconds !== undefined) {
6195
+ output.writeFieldBegin('resultRetentionSeconds', Thrift.Type.I64, 3347);
6196
+ output.writeI64(this.resultRetentionSeconds);
6197
+ output.writeFieldEnd();
6198
+ }
6199
+ if (this.resultByteLimit !== null && this.resultByteLimit !== undefined) {
6200
+ output.writeFieldBegin('resultByteLimit', Thrift.Type.I64, 3348);
6201
+ output.writeI64(this.resultByteLimit);
6202
+ output.writeFieldEnd();
6203
+ }
6204
+ if (this.resultDataFormat !== null && this.resultDataFormat !== undefined) {
6205
+ output.writeFieldBegin('resultDataFormat', Thrift.Type.STRUCT, 3349);
6206
+ this.resultDataFormat.write(output);
6207
+ output.writeFieldEnd();
6208
+ }
6209
+ if (this.originatingClientIdentity !== null && this.originatingClientIdentity !== undefined) {
6210
+ output.writeFieldBegin('originatingClientIdentity', Thrift.Type.STRING, 3350);
6211
+ output.writeString(this.originatingClientIdentity);
6212
+ output.writeFieldEnd();
6213
+ }
6214
+ output.writeFieldStop();
6215
+ output.writeStructEnd();
6216
+ return;
6217
+ };
6218
+
6219
+ var TDBSqlStatement = module.exports.TDBSqlStatement = function(args) {
6220
+ this.statement = null;
6221
+ if (args) {
6222
+ if (args.statement !== undefined && args.statement !== null) {
6223
+ this.statement = args.statement;
6224
+ }
6225
+ }
6226
+ };
6227
+ TDBSqlStatement.prototype = {};
6228
+ TDBSqlStatement.prototype.read = function(input) {
6229
+ input.readStructBegin();
6230
+ while (true) {
6231
+ var ret = input.readFieldBegin();
6232
+ var ftype = ret.ftype;
6233
+ var fid = ret.fid;
6234
+ if (ftype == Thrift.Type.STOP) {
6235
+ break;
6236
+ }
6237
+ switch (fid) {
6238
+ case 1:
6239
+ if (ftype == Thrift.Type.STRING) {
6240
+ this.statement = input.readString();
6241
+ } else {
6242
+ input.skip(ftype);
6243
+ }
6244
+ break;
6245
+ case 0:
6246
+ input.skip(ftype);
6247
+ break;
6248
+ default:
6249
+ input.skip(ftype);
6250
+ }
6251
+ input.readFieldEnd();
6252
+ }
6253
+ input.readStructEnd();
6254
+ return;
6255
+ };
6256
+
6257
+ TDBSqlStatement.prototype.write = function(output) {
6258
+ output.writeStructBegin('TDBSqlStatement');
6259
+ if (this.statement !== null && this.statement !== undefined) {
6260
+ output.writeFieldBegin('statement', Thrift.Type.STRING, 1);
6261
+ output.writeString(this.statement);
6262
+ output.writeFieldEnd();
6263
+ }
6264
+ output.writeFieldStop();
6265
+ output.writeStructEnd();
6266
+ return;
6267
+ };
6268
+
6269
+ var TSparkParameterValue = module.exports.TSparkParameterValue = function(args) {
6270
+ this.stringValue = null;
6271
+ this.doubleValue = null;
6272
+ this.booleanValue = null;
6273
+ if (args) {
6274
+ if (args.stringValue !== undefined && args.stringValue !== null) {
6275
+ this.stringValue = args.stringValue;
6276
+ }
6277
+ if (args.doubleValue !== undefined && args.doubleValue !== null) {
6278
+ this.doubleValue = args.doubleValue;
6279
+ }
6280
+ if (args.booleanValue !== undefined && args.booleanValue !== null) {
6281
+ this.booleanValue = args.booleanValue;
6282
+ }
6283
+ }
6284
+ };
6285
+ TSparkParameterValue.prototype = {};
6286
+ TSparkParameterValue.prototype.read = function(input) {
6287
+ input.readStructBegin();
6288
+ while (true) {
6289
+ var ret = input.readFieldBegin();
6290
+ var ftype = ret.ftype;
6291
+ var fid = ret.fid;
6292
+ if (ftype == Thrift.Type.STOP) {
6293
+ break;
6294
+ }
6295
+ switch (fid) {
6296
+ case 1:
6297
+ if (ftype == Thrift.Type.STRING) {
6298
+ this.stringValue = input.readString();
6299
+ } else {
6300
+ input.skip(ftype);
6301
+ }
6302
+ break;
6303
+ case 2:
6304
+ if (ftype == Thrift.Type.DOUBLE) {
6305
+ this.doubleValue = input.readDouble();
6306
+ } else {
6307
+ input.skip(ftype);
6308
+ }
6309
+ break;
6310
+ case 3:
6311
+ if (ftype == Thrift.Type.BOOL) {
6312
+ this.booleanValue = input.readBool();
6313
+ } else {
6314
+ input.skip(ftype);
6315
+ }
6316
+ break;
6317
+ default:
6318
+ input.skip(ftype);
6319
+ }
6320
+ input.readFieldEnd();
6321
+ }
6322
+ input.readStructEnd();
6323
+ return;
6324
+ };
6325
+
6326
+ TSparkParameterValue.prototype.write = function(output) {
6327
+ output.writeStructBegin('TSparkParameterValue');
6328
+ if (this.stringValue !== null && this.stringValue !== undefined) {
6329
+ output.writeFieldBegin('stringValue', Thrift.Type.STRING, 1);
6330
+ output.writeString(this.stringValue);
6331
+ output.writeFieldEnd();
6332
+ }
6333
+ if (this.doubleValue !== null && this.doubleValue !== undefined) {
6334
+ output.writeFieldBegin('doubleValue', Thrift.Type.DOUBLE, 2);
6335
+ output.writeDouble(this.doubleValue);
6336
+ output.writeFieldEnd();
6337
+ }
6338
+ if (this.booleanValue !== null && this.booleanValue !== undefined) {
6339
+ output.writeFieldBegin('booleanValue', Thrift.Type.BOOL, 3);
6340
+ output.writeBool(this.booleanValue);
6341
+ output.writeFieldEnd();
6342
+ }
6343
+ output.writeFieldStop();
6344
+ output.writeStructEnd();
6345
+ return;
6346
+ };
6347
+
6348
+ var TSparkParameter = module.exports.TSparkParameter = function(args) {
6349
+ this.ordinal = null;
6350
+ this.name = null;
6351
+ this.type = null;
6352
+ this.value = null;
6353
+ if (args) {
6354
+ if (args.ordinal !== undefined && args.ordinal !== null) {
6355
+ this.ordinal = args.ordinal;
6356
+ }
6357
+ if (args.name !== undefined && args.name !== null) {
6358
+ this.name = args.name;
6359
+ }
6360
+ if (args.type !== undefined && args.type !== null) {
6361
+ this.type = args.type;
6362
+ }
6363
+ if (args.value !== undefined && args.value !== null) {
6364
+ this.value = new ttypes.TSparkParameterValue(args.value);
6365
+ }
6366
+ }
6367
+ };
6368
+ TSparkParameter.prototype = {};
6369
+ TSparkParameter.prototype.read = function(input) {
6370
+ input.readStructBegin();
6371
+ while (true) {
6372
+ var ret = input.readFieldBegin();
6373
+ var ftype = ret.ftype;
6374
+ var fid = ret.fid;
6375
+ if (ftype == Thrift.Type.STOP) {
6376
+ break;
6377
+ }
6378
+ switch (fid) {
6379
+ case 1:
6380
+ if (ftype == Thrift.Type.I32) {
6381
+ this.ordinal = input.readI32();
6382
+ } else {
6383
+ input.skip(ftype);
6384
+ }
6385
+ break;
6386
+ case 2:
6387
+ if (ftype == Thrift.Type.STRING) {
6388
+ this.name = input.readString();
6389
+ } else {
6390
+ input.skip(ftype);
6391
+ }
6392
+ break;
6393
+ case 3:
6394
+ if (ftype == Thrift.Type.STRING) {
6395
+ this.type = input.readString();
6396
+ } else {
6397
+ input.skip(ftype);
6398
+ }
6399
+ break;
6400
+ case 4:
6401
+ if (ftype == Thrift.Type.STRUCT) {
6402
+ this.value = new ttypes.TSparkParameterValue();
6403
+ this.value.read(input);
6404
+ } else {
6405
+ input.skip(ftype);
6406
+ }
6407
+ break;
6408
+ default:
6409
+ input.skip(ftype);
6410
+ }
6411
+ input.readFieldEnd();
6412
+ }
6413
+ input.readStructEnd();
6414
+ return;
6415
+ };
6416
+
6417
+ TSparkParameter.prototype.write = function(output) {
6418
+ output.writeStructBegin('TSparkParameter');
6419
+ if (this.ordinal !== null && this.ordinal !== undefined) {
6420
+ output.writeFieldBegin('ordinal', Thrift.Type.I32, 1);
6421
+ output.writeI32(this.ordinal);
5070
6422
  output.writeFieldEnd();
5071
6423
  }
5072
- if (this.rejectHighCostQueries !== null && this.rejectHighCostQueries !== undefined) {
5073
- output.writeFieldBegin('rejectHighCostQueries', Thrift.Type.BOOL, 3331);
5074
- output.writeBool(this.rejectHighCostQueries);
6424
+ if (this.name !== null && this.name !== undefined) {
6425
+ output.writeFieldBegin('name', Thrift.Type.STRING, 2);
6426
+ output.writeString(this.name);
5075
6427
  output.writeFieldEnd();
5076
6428
  }
5077
- if (this.estimatedCost !== null && this.estimatedCost !== undefined) {
5078
- output.writeFieldBegin('estimatedCost', Thrift.Type.DOUBLE, 3332);
5079
- output.writeDouble(this.estimatedCost);
6429
+ if (this.type !== null && this.type !== undefined) {
6430
+ output.writeFieldBegin('type', Thrift.Type.STRING, 3);
6431
+ output.writeString(this.type);
5080
6432
  output.writeFieldEnd();
5081
6433
  }
5082
- if (this.executionVersion !== null && this.executionVersion !== undefined) {
5083
- output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3333);
5084
- output.writeI16(this.executionVersion);
6434
+ if (this.value !== null && this.value !== undefined) {
6435
+ output.writeFieldBegin('value', Thrift.Type.STRUCT, 4);
6436
+ this.value.write(output);
5085
6437
  output.writeFieldEnd();
5086
6438
  }
5087
6439
  output.writeFieldStop();
@@ -5099,6 +6451,9 @@ var TExecuteStatementResp = module.exports.TExecuteStatementResp = function(args
5099
6451
  this.sessionConf = null;
5100
6452
  this.currentClusterLoad = null;
5101
6453
  this.idempotencyType = null;
6454
+ this.remoteResultCacheEnabled = null;
6455
+ this.isServerless = null;
6456
+ this.operationHandles = null;
5102
6457
  if (args) {
5103
6458
  if (args.status !== undefined && args.status !== null) {
5104
6459
  this.status = new ttypes.TStatus(args.status);
@@ -5129,6 +6484,15 @@ var TExecuteStatementResp = module.exports.TExecuteStatementResp = function(args
5129
6484
  if (args.idempotencyType !== undefined && args.idempotencyType !== null) {
5130
6485
  this.idempotencyType = args.idempotencyType;
5131
6486
  }
6487
+ if (args.remoteResultCacheEnabled !== undefined && args.remoteResultCacheEnabled !== null) {
6488
+ this.remoteResultCacheEnabled = args.remoteResultCacheEnabled;
6489
+ }
6490
+ if (args.isServerless !== undefined && args.isServerless !== null) {
6491
+ this.isServerless = args.isServerless;
6492
+ }
6493
+ if (args.operationHandles !== undefined && args.operationHandles !== null) {
6494
+ this.operationHandles = Thrift.copyList(args.operationHandles, [ttypes.TOperationHandle]);
6495
+ }
5132
6496
  }
5133
6497
  };
5134
6498
  TExecuteStatementResp.prototype = {};
@@ -5209,6 +6573,36 @@ TExecuteStatementResp.prototype.read = function(input) {
5209
6573
  input.skip(ftype);
5210
6574
  }
5211
6575
  break;
6576
+ case 3335:
6577
+ if (ftype == Thrift.Type.BOOL) {
6578
+ this.remoteResultCacheEnabled = input.readBool();
6579
+ } else {
6580
+ input.skip(ftype);
6581
+ }
6582
+ break;
6583
+ case 3336:
6584
+ if (ftype == Thrift.Type.BOOL) {
6585
+ this.isServerless = input.readBool();
6586
+ } else {
6587
+ input.skip(ftype);
6588
+ }
6589
+ break;
6590
+ case 3337:
6591
+ if (ftype == Thrift.Type.LIST) {
6592
+ this.operationHandles = [];
6593
+ var _rtmp3186 = input.readListBegin();
6594
+ var _size185 = _rtmp3186.size || 0;
6595
+ for (var _i187 = 0; _i187 < _size185; ++_i187) {
6596
+ var elem188 = null;
6597
+ elem188 = new ttypes.TOperationHandle();
6598
+ elem188.read(input);
6599
+ this.operationHandles.push(elem188);
6600
+ }
6601
+ input.readListEnd();
6602
+ } else {
6603
+ input.skip(ftype);
6604
+ }
6605
+ break;
5212
6606
  default:
5213
6607
  input.skip(ftype);
5214
6608
  }
@@ -5265,6 +6659,28 @@ TExecuteStatementResp.prototype.write = function(output) {
5265
6659
  output.writeI32(this.idempotencyType);
5266
6660
  output.writeFieldEnd();
5267
6661
  }
6662
+ if (this.remoteResultCacheEnabled !== null && this.remoteResultCacheEnabled !== undefined) {
6663
+ output.writeFieldBegin('remoteResultCacheEnabled', Thrift.Type.BOOL, 3335);
6664
+ output.writeBool(this.remoteResultCacheEnabled);
6665
+ output.writeFieldEnd();
6666
+ }
6667
+ if (this.isServerless !== null && this.isServerless !== undefined) {
6668
+ output.writeFieldBegin('isServerless', Thrift.Type.BOOL, 3336);
6669
+ output.writeBool(this.isServerless);
6670
+ output.writeFieldEnd();
6671
+ }
6672
+ if (this.operationHandles !== null && this.operationHandles !== undefined) {
6673
+ output.writeFieldBegin('operationHandles', Thrift.Type.LIST, 3337);
6674
+ output.writeListBegin(Thrift.Type.STRUCT, this.operationHandles.length);
6675
+ for (var iter189 in this.operationHandles) {
6676
+ if (this.operationHandles.hasOwnProperty(iter189)) {
6677
+ iter189 = this.operationHandles[iter189];
6678
+ iter189.write(output);
6679
+ }
6680
+ }
6681
+ output.writeListEnd();
6682
+ output.writeFieldEnd();
6683
+ }
5268
6684
  output.writeFieldStop();
5269
6685
  output.writeStructEnd();
5270
6686
  return;
@@ -5990,12 +7406,12 @@ TGetTablesReq.prototype.read = function(input) {
5990
7406
  case 5:
5991
7407
  if (ftype == Thrift.Type.LIST) {
5992
7408
  this.tableTypes = [];
5993
- var _rtmp3159 = input.readListBegin();
5994
- var _size158 = _rtmp3159.size || 0;
5995
- for (var _i160 = 0; _i160 < _size158; ++_i160) {
5996
- var elem161 = null;
5997
- elem161 = input.readString();
5998
- this.tableTypes.push(elem161);
7409
+ var _rtmp3191 = input.readListBegin();
7410
+ var _size190 = _rtmp3191.size || 0;
7411
+ for (var _i192 = 0; _i192 < _size190; ++_i192) {
7412
+ var elem193 = null;
7413
+ elem193 = input.readString();
7414
+ this.tableTypes.push(elem193);
5999
7415
  }
6000
7416
  input.readListEnd();
6001
7417
  } else {
@@ -6067,10 +7483,10 @@ TGetTablesReq.prototype.write = function(output) {
6067
7483
  if (this.tableTypes !== null && this.tableTypes !== undefined) {
6068
7484
  output.writeFieldBegin('tableTypes', Thrift.Type.LIST, 5);
6069
7485
  output.writeListBegin(Thrift.Type.STRING, this.tableTypes.length);
6070
- for (var iter162 in this.tableTypes) {
6071
- if (this.tableTypes.hasOwnProperty(iter162)) {
6072
- iter162 = this.tableTypes[iter162];
6073
- output.writeString(iter162);
7486
+ for (var iter194 in this.tableTypes) {
7487
+ if (this.tableTypes.hasOwnProperty(iter194)) {
7488
+ iter194 = this.tableTypes[iter194];
7489
+ output.writeString(iter194);
6074
7490
  }
6075
7491
  }
6076
7492
  output.writeListEnd();
@@ -7528,6 +8944,10 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
7528
8944
  this.numModifiedRows = null;
7529
8945
  this.displayMessage = null;
7530
8946
  this.diagnosticInfo = null;
8947
+ this.responseValidation = null;
8948
+ this.idempotencyType = null;
8949
+ this.statementTimeout = null;
8950
+ this.statementTimeoutLevel = null;
7531
8951
  if (args) {
7532
8952
  if (args.status !== undefined && args.status !== null) {
7533
8953
  this.status = new ttypes.TStatus(args.status);
@@ -7570,6 +8990,18 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
7570
8990
  if (args.diagnosticInfo !== undefined && args.diagnosticInfo !== null) {
7571
8991
  this.diagnosticInfo = args.diagnosticInfo;
7572
8992
  }
8993
+ if (args.responseValidation !== undefined && args.responseValidation !== null) {
8994
+ this.responseValidation = args.responseValidation;
8995
+ }
8996
+ if (args.idempotencyType !== undefined && args.idempotencyType !== null) {
8997
+ this.idempotencyType = args.idempotencyType;
8998
+ }
8999
+ if (args.statementTimeout !== undefined && args.statementTimeout !== null) {
9000
+ this.statementTimeout = args.statementTimeout;
9001
+ }
9002
+ if (args.statementTimeoutLevel !== undefined && args.statementTimeoutLevel !== null) {
9003
+ this.statementTimeoutLevel = args.statementTimeoutLevel;
9004
+ }
7573
9005
  }
7574
9006
  };
7575
9007
  TGetOperationStatusResp.prototype = {};
@@ -7676,6 +9108,34 @@ TGetOperationStatusResp.prototype.read = function(input) {
7676
9108
  input.skip(ftype);
7677
9109
  }
7678
9110
  break;
9111
+ case 3329:
9112
+ if (ftype == Thrift.Type.STRING) {
9113
+ this.responseValidation = input.readBinary();
9114
+ } else {
9115
+ input.skip(ftype);
9116
+ }
9117
+ break;
9118
+ case 3330:
9119
+ if (ftype == Thrift.Type.I32) {
9120
+ this.idempotencyType = input.readI32();
9121
+ } else {
9122
+ input.skip(ftype);
9123
+ }
9124
+ break;
9125
+ case 3331:
9126
+ if (ftype == Thrift.Type.I64) {
9127
+ this.statementTimeout = input.readI64();
9128
+ } else {
9129
+ input.skip(ftype);
9130
+ }
9131
+ break;
9132
+ case 3332:
9133
+ if (ftype == Thrift.Type.I32) {
9134
+ this.statementTimeoutLevel = input.readI32();
9135
+ } else {
9136
+ input.skip(ftype);
9137
+ }
9138
+ break;
7679
9139
  default:
7680
9140
  input.skip(ftype);
7681
9141
  }
@@ -7752,6 +9212,26 @@ TGetOperationStatusResp.prototype.write = function(output) {
7752
9212
  output.writeString(this.diagnosticInfo);
7753
9213
  output.writeFieldEnd();
7754
9214
  }
9215
+ if (this.responseValidation !== null && this.responseValidation !== undefined) {
9216
+ output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
9217
+ output.writeBinary(this.responseValidation);
9218
+ output.writeFieldEnd();
9219
+ }
9220
+ if (this.idempotencyType !== null && this.idempotencyType !== undefined) {
9221
+ output.writeFieldBegin('idempotencyType', Thrift.Type.I32, 3330);
9222
+ output.writeI32(this.idempotencyType);
9223
+ output.writeFieldEnd();
9224
+ }
9225
+ if (this.statementTimeout !== null && this.statementTimeout !== undefined) {
9226
+ output.writeFieldBegin('statementTimeout', Thrift.Type.I64, 3331);
9227
+ output.writeI64(this.statementTimeout);
9228
+ output.writeFieldEnd();
9229
+ }
9230
+ if (this.statementTimeoutLevel !== null && this.statementTimeoutLevel !== undefined) {
9231
+ output.writeFieldBegin('statementTimeoutLevel', Thrift.Type.I32, 3332);
9232
+ output.writeI32(this.statementTimeoutLevel);
9233
+ output.writeFieldEnd();
9234
+ }
7755
9235
  output.writeFieldStop();
7756
9236
  output.writeStructEnd();
7757
9237
  return;
@@ -7760,6 +9240,7 @@ TGetOperationStatusResp.prototype.write = function(output) {
7760
9240
  var TCancelOperationReq = module.exports.TCancelOperationReq = function(args) {
7761
9241
  this.operationHandle = null;
7762
9242
  this.executionVersion = null;
9243
+ this.replacedByNextAttempt = null;
7763
9244
  if (args) {
7764
9245
  if (args.operationHandle !== undefined && args.operationHandle !== null) {
7765
9246
  this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
@@ -7769,6 +9250,9 @@ var TCancelOperationReq = module.exports.TCancelOperationReq = function(args) {
7769
9250
  if (args.executionVersion !== undefined && args.executionVersion !== null) {
7770
9251
  this.executionVersion = args.executionVersion;
7771
9252
  }
9253
+ if (args.replacedByNextAttempt !== undefined && args.replacedByNextAttempt !== null) {
9254
+ this.replacedByNextAttempt = args.replacedByNextAttempt;
9255
+ }
7772
9256
  }
7773
9257
  };
7774
9258
  TCancelOperationReq.prototype = {};
@@ -7797,6 +9281,13 @@ TCancelOperationReq.prototype.read = function(input) {
7797
9281
  input.skip(ftype);
7798
9282
  }
7799
9283
  break;
9284
+ case 3330:
9285
+ if (ftype == Thrift.Type.BOOL) {
9286
+ this.replacedByNextAttempt = input.readBool();
9287
+ } else {
9288
+ input.skip(ftype);
9289
+ }
9290
+ break;
7800
9291
  default:
7801
9292
  input.skip(ftype);
7802
9293
  }
@@ -7818,6 +9309,11 @@ TCancelOperationReq.prototype.write = function(output) {
7818
9309
  output.writeI16(this.executionVersion);
7819
9310
  output.writeFieldEnd();
7820
9311
  }
9312
+ if (this.replacedByNextAttempt !== null && this.replacedByNextAttempt !== undefined) {
9313
+ output.writeFieldBegin('replacedByNextAttempt', Thrift.Type.BOOL, 3330);
9314
+ output.writeBool(this.replacedByNextAttempt);
9315
+ output.writeFieldEnd();
9316
+ }
7821
9317
  output.writeFieldStop();
7822
9318
  output.writeStructEnd();
7823
9319
  return;
@@ -7984,12 +9480,16 @@ TCloseOperationResp.prototype.write = function(output) {
7984
9480
 
7985
9481
  var TGetResultSetMetadataReq = module.exports.TGetResultSetMetadataReq = function(args) {
7986
9482
  this.operationHandle = null;
9483
+ this.includeCloudResultFiles = null;
7987
9484
  if (args) {
7988
9485
  if (args.operationHandle !== undefined && args.operationHandle !== null) {
7989
9486
  this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
7990
9487
  } else {
7991
9488
  throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field operationHandle is unset!');
7992
9489
  }
9490
+ if (args.includeCloudResultFiles !== undefined && args.includeCloudResultFiles !== null) {
9491
+ this.includeCloudResultFiles = args.includeCloudResultFiles;
9492
+ }
7993
9493
  }
7994
9494
  };
7995
9495
  TGetResultSetMetadataReq.prototype = {};
@@ -8011,9 +9511,13 @@ TGetResultSetMetadataReq.prototype.read = function(input) {
8011
9511
  input.skip(ftype);
8012
9512
  }
8013
9513
  break;
8014
- case 0:
9514
+ case 3329:
9515
+ if (ftype == Thrift.Type.BOOL) {
9516
+ this.includeCloudResultFiles = input.readBool();
9517
+ } else {
8015
9518
  input.skip(ftype);
8016
- break;
9519
+ }
9520
+ break;
8017
9521
  default:
8018
9522
  input.skip(ftype);
8019
9523
  }
@@ -8030,6 +9534,11 @@ TGetResultSetMetadataReq.prototype.write = function(output) {
8030
9534
  this.operationHandle.write(output);
8031
9535
  output.writeFieldEnd();
8032
9536
  }
9537
+ if (this.includeCloudResultFiles !== null && this.includeCloudResultFiles !== undefined) {
9538
+ output.writeFieldBegin('includeCloudResultFiles', Thrift.Type.BOOL, 3329);
9539
+ output.writeBool(this.includeCloudResultFiles);
9540
+ output.writeFieldEnd();
9541
+ }
8033
9542
  output.writeFieldStop();
8034
9543
  output.writeStructEnd();
8035
9544
  return;
@@ -8044,6 +9553,18 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
8044
9553
  this.cacheLookupResult = null;
8045
9554
  this.uncompressedBytes = null;
8046
9555
  this.compressedBytes = null;
9556
+ this.isStagingOperation = null;
9557
+ this.reasonForNoCloudFetch = null;
9558
+ this.resultFiles = null;
9559
+ this.manifestFile = null;
9560
+ this.manifestFileFormat = null;
9561
+ this.cacheLookupLatency = null;
9562
+ this.remoteCacheMissReason = null;
9563
+ this.fetchDisposition = null;
9564
+ this.remoteResultCacheEnabled = null;
9565
+ this.isServerless = null;
9566
+ this.resultDataFormat = null;
9567
+ this.truncatedByThriftLimit = null;
8047
9568
  if (args) {
8048
9569
  if (args.status !== undefined && args.status !== null) {
8049
9570
  this.status = new ttypes.TStatus(args.status);
@@ -8071,6 +9592,42 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
8071
9592
  if (args.compressedBytes !== undefined && args.compressedBytes !== null) {
8072
9593
  this.compressedBytes = args.compressedBytes;
8073
9594
  }
9595
+ if (args.isStagingOperation !== undefined && args.isStagingOperation !== null) {
9596
+ this.isStagingOperation = args.isStagingOperation;
9597
+ }
9598
+ if (args.reasonForNoCloudFetch !== undefined && args.reasonForNoCloudFetch !== null) {
9599
+ this.reasonForNoCloudFetch = args.reasonForNoCloudFetch;
9600
+ }
9601
+ if (args.resultFiles !== undefined && args.resultFiles !== null) {
9602
+ this.resultFiles = Thrift.copyList(args.resultFiles, [ttypes.TDBSqlCloudResultFile]);
9603
+ }
9604
+ if (args.manifestFile !== undefined && args.manifestFile !== null) {
9605
+ this.manifestFile = args.manifestFile;
9606
+ }
9607
+ if (args.manifestFileFormat !== undefined && args.manifestFileFormat !== null) {
9608
+ this.manifestFileFormat = args.manifestFileFormat;
9609
+ }
9610
+ if (args.cacheLookupLatency !== undefined && args.cacheLookupLatency !== null) {
9611
+ this.cacheLookupLatency = args.cacheLookupLatency;
9612
+ }
9613
+ if (args.remoteCacheMissReason !== undefined && args.remoteCacheMissReason !== null) {
9614
+ this.remoteCacheMissReason = args.remoteCacheMissReason;
9615
+ }
9616
+ if (args.fetchDisposition !== undefined && args.fetchDisposition !== null) {
9617
+ this.fetchDisposition = args.fetchDisposition;
9618
+ }
9619
+ if (args.remoteResultCacheEnabled !== undefined && args.remoteResultCacheEnabled !== null) {
9620
+ this.remoteResultCacheEnabled = args.remoteResultCacheEnabled;
9621
+ }
9622
+ if (args.isServerless !== undefined && args.isServerless !== null) {
9623
+ this.isServerless = args.isServerless;
9624
+ }
9625
+ if (args.resultDataFormat !== undefined && args.resultDataFormat !== null) {
9626
+ this.resultDataFormat = new ttypes.TDBSqlResultFormat(args.resultDataFormat);
9627
+ }
9628
+ if (args.truncatedByThriftLimit !== undefined && args.truncatedByThriftLimit !== null) {
9629
+ this.truncatedByThriftLimit = args.truncatedByThriftLimit;
9630
+ }
8074
9631
  }
8075
9632
  };
8076
9633
  TGetResultSetMetadataResp.prototype = {};
@@ -8142,6 +9699,100 @@ TGetResultSetMetadataResp.prototype.read = function(input) {
8142
9699
  input.skip(ftype);
8143
9700
  }
8144
9701
  break;
9702
+ case 1287:
9703
+ if (ftype == Thrift.Type.BOOL) {
9704
+ this.isStagingOperation = input.readBool();
9705
+ } else {
9706
+ input.skip(ftype);
9707
+ }
9708
+ break;
9709
+ case 3329:
9710
+ if (ftype == Thrift.Type.I32) {
9711
+ this.reasonForNoCloudFetch = input.readI32();
9712
+ } else {
9713
+ input.skip(ftype);
9714
+ }
9715
+ break;
9716
+ case 3330:
9717
+ if (ftype == Thrift.Type.LIST) {
9718
+ this.resultFiles = [];
9719
+ var _rtmp3196 = input.readListBegin();
9720
+ var _size195 = _rtmp3196.size || 0;
9721
+ for (var _i197 = 0; _i197 < _size195; ++_i197) {
9722
+ var elem198 = null;
9723
+ elem198 = new ttypes.TDBSqlCloudResultFile();
9724
+ elem198.read(input);
9725
+ this.resultFiles.push(elem198);
9726
+ }
9727
+ input.readListEnd();
9728
+ } else {
9729
+ input.skip(ftype);
9730
+ }
9731
+ break;
9732
+ case 3331:
9733
+ if (ftype == Thrift.Type.STRING) {
9734
+ this.manifestFile = input.readString();
9735
+ } else {
9736
+ input.skip(ftype);
9737
+ }
9738
+ break;
9739
+ case 3332:
9740
+ if (ftype == Thrift.Type.I32) {
9741
+ this.manifestFileFormat = input.readI32();
9742
+ } else {
9743
+ input.skip(ftype);
9744
+ }
9745
+ break;
9746
+ case 3333:
9747
+ if (ftype == Thrift.Type.I64) {
9748
+ this.cacheLookupLatency = input.readI64();
9749
+ } else {
9750
+ input.skip(ftype);
9751
+ }
9752
+ break;
9753
+ case 3334:
9754
+ if (ftype == Thrift.Type.STRING) {
9755
+ this.remoteCacheMissReason = input.readString();
9756
+ } else {
9757
+ input.skip(ftype);
9758
+ }
9759
+ break;
9760
+ case 3335:
9761
+ if (ftype == Thrift.Type.I32) {
9762
+ this.fetchDisposition = input.readI32();
9763
+ } else {
9764
+ input.skip(ftype);
9765
+ }
9766
+ break;
9767
+ case 3336:
9768
+ if (ftype == Thrift.Type.BOOL) {
9769
+ this.remoteResultCacheEnabled = input.readBool();
9770
+ } else {
9771
+ input.skip(ftype);
9772
+ }
9773
+ break;
9774
+ case 3337:
9775
+ if (ftype == Thrift.Type.BOOL) {
9776
+ this.isServerless = input.readBool();
9777
+ } else {
9778
+ input.skip(ftype);
9779
+ }
9780
+ break;
9781
+ case 3344:
9782
+ if (ftype == Thrift.Type.STRUCT) {
9783
+ this.resultDataFormat = new ttypes.TDBSqlResultFormat();
9784
+ this.resultDataFormat.read(input);
9785
+ } else {
9786
+ input.skip(ftype);
9787
+ }
9788
+ break;
9789
+ case 3345:
9790
+ if (ftype == Thrift.Type.BOOL) {
9791
+ this.truncatedByThriftLimit = input.readBool();
9792
+ } else {
9793
+ input.skip(ftype);
9794
+ }
9795
+ break;
8145
9796
  default:
8146
9797
  input.skip(ftype);
8147
9798
  }
@@ -8193,6 +9844,73 @@ TGetResultSetMetadataResp.prototype.write = function(output) {
8193
9844
  output.writeI64(this.compressedBytes);
8194
9845
  output.writeFieldEnd();
8195
9846
  }
9847
+ if (this.isStagingOperation !== null && this.isStagingOperation !== undefined) {
9848
+ output.writeFieldBegin('isStagingOperation', Thrift.Type.BOOL, 1287);
9849
+ output.writeBool(this.isStagingOperation);
9850
+ output.writeFieldEnd();
9851
+ }
9852
+ if (this.reasonForNoCloudFetch !== null && this.reasonForNoCloudFetch !== undefined) {
9853
+ output.writeFieldBegin('reasonForNoCloudFetch', Thrift.Type.I32, 3329);
9854
+ output.writeI32(this.reasonForNoCloudFetch);
9855
+ output.writeFieldEnd();
9856
+ }
9857
+ if (this.resultFiles !== null && this.resultFiles !== undefined) {
9858
+ output.writeFieldBegin('resultFiles', Thrift.Type.LIST, 3330);
9859
+ output.writeListBegin(Thrift.Type.STRUCT, this.resultFiles.length);
9860
+ for (var iter199 in this.resultFiles) {
9861
+ if (this.resultFiles.hasOwnProperty(iter199)) {
9862
+ iter199 = this.resultFiles[iter199];
9863
+ iter199.write(output);
9864
+ }
9865
+ }
9866
+ output.writeListEnd();
9867
+ output.writeFieldEnd();
9868
+ }
9869
+ if (this.manifestFile !== null && this.manifestFile !== undefined) {
9870
+ output.writeFieldBegin('manifestFile', Thrift.Type.STRING, 3331);
9871
+ output.writeString(this.manifestFile);
9872
+ output.writeFieldEnd();
9873
+ }
9874
+ if (this.manifestFileFormat !== null && this.manifestFileFormat !== undefined) {
9875
+ output.writeFieldBegin('manifestFileFormat', Thrift.Type.I32, 3332);
9876
+ output.writeI32(this.manifestFileFormat);
9877
+ output.writeFieldEnd();
9878
+ }
9879
+ if (this.cacheLookupLatency !== null && this.cacheLookupLatency !== undefined) {
9880
+ output.writeFieldBegin('cacheLookupLatency', Thrift.Type.I64, 3333);
9881
+ output.writeI64(this.cacheLookupLatency);
9882
+ output.writeFieldEnd();
9883
+ }
9884
+ if (this.remoteCacheMissReason !== null && this.remoteCacheMissReason !== undefined) {
9885
+ output.writeFieldBegin('remoteCacheMissReason', Thrift.Type.STRING, 3334);
9886
+ output.writeString(this.remoteCacheMissReason);
9887
+ output.writeFieldEnd();
9888
+ }
9889
+ if (this.fetchDisposition !== null && this.fetchDisposition !== undefined) {
9890
+ output.writeFieldBegin('fetchDisposition', Thrift.Type.I32, 3335);
9891
+ output.writeI32(this.fetchDisposition);
9892
+ output.writeFieldEnd();
9893
+ }
9894
+ if (this.remoteResultCacheEnabled !== null && this.remoteResultCacheEnabled !== undefined) {
9895
+ output.writeFieldBegin('remoteResultCacheEnabled', Thrift.Type.BOOL, 3336);
9896
+ output.writeBool(this.remoteResultCacheEnabled);
9897
+ output.writeFieldEnd();
9898
+ }
9899
+ if (this.isServerless !== null && this.isServerless !== undefined) {
9900
+ output.writeFieldBegin('isServerless', Thrift.Type.BOOL, 3337);
9901
+ output.writeBool(this.isServerless);
9902
+ output.writeFieldEnd();
9903
+ }
9904
+ if (this.resultDataFormat !== null && this.resultDataFormat !== undefined) {
9905
+ output.writeFieldBegin('resultDataFormat', Thrift.Type.STRUCT, 3344);
9906
+ this.resultDataFormat.write(output);
9907
+ output.writeFieldEnd();
9908
+ }
9909
+ if (this.truncatedByThriftLimit !== null && this.truncatedByThriftLimit !== undefined) {
9910
+ output.writeFieldBegin('truncatedByThriftLimit', Thrift.Type.BOOL, 3345);
9911
+ output.writeBool(this.truncatedByThriftLimit);
9912
+ output.writeFieldEnd();
9913
+ }
8196
9914
  output.writeFieldStop();
8197
9915
  output.writeStructEnd();
8198
9916
  return;
@@ -8353,6 +10071,7 @@ var TFetchResultsResp = module.exports.TFetchResultsResp = function(args) {
8353
10071
  this.hasMoreRows = null;
8354
10072
  this.results = null;
8355
10073
  this.resultSetMetadata = null;
10074
+ this.responseValidation = null;
8356
10075
  if (args) {
8357
10076
  if (args.status !== undefined && args.status !== null) {
8358
10077
  this.status = new ttypes.TStatus(args.status);
@@ -8368,6 +10087,9 @@ var TFetchResultsResp = module.exports.TFetchResultsResp = function(args) {
8368
10087
  if (args.resultSetMetadata !== undefined && args.resultSetMetadata !== null) {
8369
10088
  this.resultSetMetadata = new ttypes.TGetResultSetMetadataResp(args.resultSetMetadata);
8370
10089
  }
10090
+ if (args.responseValidation !== undefined && args.responseValidation !== null) {
10091
+ this.responseValidation = args.responseValidation;
10092
+ }
8371
10093
  }
8372
10094
  };
8373
10095
  TFetchResultsResp.prototype = {};
@@ -8412,6 +10134,13 @@ TFetchResultsResp.prototype.read = function(input) {
8412
10134
  input.skip(ftype);
8413
10135
  }
8414
10136
  break;
10137
+ case 3329:
10138
+ if (ftype == Thrift.Type.STRING) {
10139
+ this.responseValidation = input.readBinary();
10140
+ } else {
10141
+ input.skip(ftype);
10142
+ }
10143
+ break;
8415
10144
  default:
8416
10145
  input.skip(ftype);
8417
10146
  }
@@ -8443,6 +10172,11 @@ TFetchResultsResp.prototype.write = function(output) {
8443
10172
  this.resultSetMetadata.write(output);
8444
10173
  output.writeFieldEnd();
8445
10174
  }
10175
+ if (this.responseValidation !== null && this.responseValidation !== undefined) {
10176
+ output.writeFieldBegin('responseValidation', Thrift.Type.STRING, 3329);
10177
+ output.writeBinary(this.responseValidation);
10178
+ output.writeFieldEnd();
10179
+ }
8446
10180
  output.writeFieldStop();
8447
10181
  output.writeStructEnd();
8448
10182
  return;
@@ -8947,12 +10681,12 @@ TProgressUpdateResp.prototype.read = function(input) {
8947
10681
  case 1:
8948
10682
  if (ftype == Thrift.Type.LIST) {
8949
10683
  this.headerNames = [];
8950
- var _rtmp3164 = input.readListBegin();
8951
- var _size163 = _rtmp3164.size || 0;
8952
- for (var _i165 = 0; _i165 < _size163; ++_i165) {
8953
- var elem166 = null;
8954
- elem166 = input.readString();
8955
- this.headerNames.push(elem166);
10684
+ var _rtmp3201 = input.readListBegin();
10685
+ var _size200 = _rtmp3201.size || 0;
10686
+ for (var _i202 = 0; _i202 < _size200; ++_i202) {
10687
+ var elem203 = null;
10688
+ elem203 = input.readString();
10689
+ this.headerNames.push(elem203);
8956
10690
  }
8957
10691
  input.readListEnd();
8958
10692
  } else {
@@ -8962,20 +10696,20 @@ TProgressUpdateResp.prototype.read = function(input) {
8962
10696
  case 2:
8963
10697
  if (ftype == Thrift.Type.LIST) {
8964
10698
  this.rows = [];
8965
- var _rtmp3168 = input.readListBegin();
8966
- var _size167 = _rtmp3168.size || 0;
8967
- for (var _i169 = 0; _i169 < _size167; ++_i169) {
8968
- var elem170 = null;
8969
- elem170 = [];
8970
- var _rtmp3172 = input.readListBegin();
8971
- var _size171 = _rtmp3172.size || 0;
8972
- for (var _i173 = 0; _i173 < _size171; ++_i173) {
8973
- var elem174 = null;
8974
- elem174 = input.readString();
8975
- elem170.push(elem174);
10699
+ var _rtmp3205 = input.readListBegin();
10700
+ var _size204 = _rtmp3205.size || 0;
10701
+ for (var _i206 = 0; _i206 < _size204; ++_i206) {
10702
+ var elem207 = null;
10703
+ elem207 = [];
10704
+ var _rtmp3209 = input.readListBegin();
10705
+ var _size208 = _rtmp3209.size || 0;
10706
+ for (var _i210 = 0; _i210 < _size208; ++_i210) {
10707
+ var elem211 = null;
10708
+ elem211 = input.readString();
10709
+ elem207.push(elem211);
8976
10710
  }
8977
10711
  input.readListEnd();
8978
- this.rows.push(elem170);
10712
+ this.rows.push(elem207);
8979
10713
  }
8980
10714
  input.readListEnd();
8981
10715
  } else {
@@ -9024,10 +10758,10 @@ TProgressUpdateResp.prototype.write = function(output) {
9024
10758
  if (this.headerNames !== null && this.headerNames !== undefined) {
9025
10759
  output.writeFieldBegin('headerNames', Thrift.Type.LIST, 1);
9026
10760
  output.writeListBegin(Thrift.Type.STRING, this.headerNames.length);
9027
- for (var iter175 in this.headerNames) {
9028
- if (this.headerNames.hasOwnProperty(iter175)) {
9029
- iter175 = this.headerNames[iter175];
9030
- output.writeString(iter175);
10761
+ for (var iter212 in this.headerNames) {
10762
+ if (this.headerNames.hasOwnProperty(iter212)) {
10763
+ iter212 = this.headerNames[iter212];
10764
+ output.writeString(iter212);
9031
10765
  }
9032
10766
  }
9033
10767
  output.writeListEnd();
@@ -9036,14 +10770,14 @@ TProgressUpdateResp.prototype.write = function(output) {
9036
10770
  if (this.rows !== null && this.rows !== undefined) {
9037
10771
  output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
9038
10772
  output.writeListBegin(Thrift.Type.LIST, this.rows.length);
9039
- for (var iter176 in this.rows) {
9040
- if (this.rows.hasOwnProperty(iter176)) {
9041
- iter176 = this.rows[iter176];
9042
- output.writeListBegin(Thrift.Type.STRING, iter176.length);
9043
- for (var iter177 in iter176) {
9044
- if (iter176.hasOwnProperty(iter177)) {
9045
- iter177 = iter176[iter177];
9046
- output.writeString(iter177);
10773
+ for (var iter213 in this.rows) {
10774
+ if (this.rows.hasOwnProperty(iter213)) {
10775
+ iter213 = this.rows[iter213];
10776
+ output.writeListBegin(Thrift.Type.STRING, iter213.length);
10777
+ for (var iter214 in iter213) {
10778
+ if (iter213.hasOwnProperty(iter214)) {
10779
+ iter214 = iter213[iter214];
10780
+ output.writeString(iter214);
9047
10781
  }
9048
10782
  }
9049
10783
  output.writeListEnd();