@databricks/sql 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supportsCloudFetch = exports.supportsMultipleCatalogs = exports.supportsArrowMetadata = exports.supportsArrowCompression = exports.supportsResultPersistenceMode = exports.supportsAsyncMetadataOperations = exports.supportsParameterizedQueries = exports.isFeatureSupported = void 0;
4
+ const TCLIService_types_1 = require("../../thrift/TCLIService_types");
5
+ /**
6
+ * Protocol version information from Thrift TCLIService
7
+ * Each version adds certain features to the Spark/Hive API
8
+ *
9
+ * Databricks only supports SPARK_CLI_SERVICE_PROTOCOL_V1 (0xA501) or higher
10
+ */
11
+ /**
12
+ * Check if the current protocol version supports a specific feature
13
+ * @param serverProtocolVersion The protocol version received from server in TOpenSessionResp
14
+ * @param requiredVersion The minimum protocol version required for a feature
15
+ * @returns boolean indicating if the feature is supported
16
+ */
17
+ function isFeatureSupported(serverProtocolVersion, requiredVersion) {
18
+ if (serverProtocolVersion === undefined || serverProtocolVersion === null) {
19
+ return false;
20
+ }
21
+ return serverProtocolVersion >= requiredVersion;
22
+ }
23
+ exports.isFeatureSupported = isFeatureSupported;
24
+ /**
25
+ * Check if parameterized queries are supported
26
+ * (Requires SPARK_CLI_SERVICE_PROTOCOL_V8 or higher)
27
+ * @param serverProtocolVersion The protocol version from server
28
+ * @returns boolean indicating if parameterized queries are supported
29
+ */
30
+ function supportsParameterizedQueries(serverProtocolVersion) {
31
+ return isFeatureSupported(serverProtocolVersion, TCLIService_types_1.TProtocolVersion.SPARK_CLI_SERVICE_PROTOCOL_V8);
32
+ }
33
+ exports.supportsParameterizedQueries = supportsParameterizedQueries;
34
+ /**
35
+ * Check if async metadata operations are supported
36
+ * (Requires SPARK_CLI_SERVICE_PROTOCOL_V6 or higher)
37
+ * @param serverProtocolVersion The protocol version from server
38
+ * @returns boolean indicating if async metadata operations are supported
39
+ */
40
+ function supportsAsyncMetadataOperations(serverProtocolVersion) {
41
+ return isFeatureSupported(serverProtocolVersion, TCLIService_types_1.TProtocolVersion.SPARK_CLI_SERVICE_PROTOCOL_V6);
42
+ }
43
+ exports.supportsAsyncMetadataOperations = supportsAsyncMetadataOperations;
44
+ /**
45
+ * Check if result persistence mode is supported
46
+ * (Requires SPARK_CLI_SERVICE_PROTOCOL_V7 or higher)
47
+ * @param serverProtocolVersion The protocol version from server
48
+ * @returns boolean indicating if result persistence mode is supported
49
+ */
50
+ function supportsResultPersistenceMode(serverProtocolVersion) {
51
+ return isFeatureSupported(serverProtocolVersion, TCLIService_types_1.TProtocolVersion.SPARK_CLI_SERVICE_PROTOCOL_V7);
52
+ }
53
+ exports.supportsResultPersistenceMode = supportsResultPersistenceMode;
54
+ /**
55
+ * Check if Arrow compression is supported
56
+ * (Requires SPARK_CLI_SERVICE_PROTOCOL_V6 or higher)
57
+ * @param serverProtocolVersion The protocol version from server
58
+ * @returns boolean indicating if compressed Arrow batches are supported
59
+ */
60
+ function supportsArrowCompression(serverProtocolVersion) {
61
+ return isFeatureSupported(serverProtocolVersion, TCLIService_types_1.TProtocolVersion.SPARK_CLI_SERVICE_PROTOCOL_V6);
62
+ }
63
+ exports.supportsArrowCompression = supportsArrowCompression;
64
+ /**
65
+ * Check if Arrow metadata is supported
66
+ * (Requires SPARK_CLI_SERVICE_PROTOCOL_V5 or higher)
67
+ * @param serverProtocolVersion The protocol version from server
68
+ * @returns boolean indicating if Arrow metadata is supported
69
+ */
70
+ function supportsArrowMetadata(serverProtocolVersion) {
71
+ return isFeatureSupported(serverProtocolVersion, TCLIService_types_1.TProtocolVersion.SPARK_CLI_SERVICE_PROTOCOL_V5);
72
+ }
73
+ exports.supportsArrowMetadata = supportsArrowMetadata;
74
+ /**
75
+ * Check if multiple catalogs are supported
76
+ * (Requires SPARK_CLI_SERVICE_PROTOCOL_V4 or higher)
77
+ * @param serverProtocolVersion The protocol version from server
78
+ * @returns boolean indicating if multiple catalogs are supported
79
+ */
80
+ function supportsMultipleCatalogs(serverProtocolVersion) {
81
+ return isFeatureSupported(serverProtocolVersion, TCLIService_types_1.TProtocolVersion.SPARK_CLI_SERVICE_PROTOCOL_V4);
82
+ }
83
+ exports.supportsMultipleCatalogs = supportsMultipleCatalogs;
84
+ /**
85
+ * Check if cloud object storage fetching is supported
86
+ * (Requires SPARK_CLI_SERVICE_PROTOCOL_V3 or higher)
87
+ * @param serverProtocolVersion The protocol version from server
88
+ * @returns boolean indicating if cloud fetching is supported
89
+ */
90
+ function supportsCloudFetch(serverProtocolVersion) {
91
+ return isFeatureSupported(serverProtocolVersion, TCLIService_types_1.TProtocolVersion.SPARK_CLI_SERVICE_PROTOCOL_V3);
92
+ }
93
+ exports.supportsCloudFetch = supportsCloudFetch;
94
+ //# sourceMappingURL=protocolVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocolVersion.js","sourceRoot":"","sources":["../../lib/utils/protocolVersion.ts"],"names":[],"mappings":";;;AAAA,sEAAkE;AAElE;;;;;GAKG;AAEH;;;;;GAKG;AACH,SAAgB,kBAAkB,CAChC,qBAA0D,EAC1D,eAAiC;IAEjC,IAAI,qBAAqB,KAAK,SAAS,IAAI,qBAAqB,KAAK,IAAI,EAAE;QACzE,OAAO,KAAK,CAAC;KACd;IAED,OAAO,qBAAqB,IAAI,eAAe,CAAC;AAClD,CAAC;AATD,gDASC;AAED;;;;;GAKG;AACH,SAAgB,4BAA4B,CAAC,qBAA0D;IACrG,OAAO,kBAAkB,CAAC,qBAAqB,EAAE,oCAAgB,CAAC,6BAA6B,CAAC,CAAC;AACnG,CAAC;AAFD,oEAEC;AAED;;;;;GAKG;AACH,SAAgB,+BAA+B,CAAC,qBAA0D;IACxG,OAAO,kBAAkB,CAAC,qBAAqB,EAAE,oCAAgB,CAAC,6BAA6B,CAAC,CAAC;AACnG,CAAC;AAFD,0EAEC;AAED;;;;;GAKG;AACH,SAAgB,6BAA6B,CAAC,qBAA0D;IACtG,OAAO,kBAAkB,CAAC,qBAAqB,EAAE,oCAAgB,CAAC,6BAA6B,CAAC,CAAC;AACnG,CAAC;AAFD,sEAEC;AAED;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,qBAA0D;IACjG,OAAO,kBAAkB,CAAC,qBAAqB,EAAE,oCAAgB,CAAC,6BAA6B,CAAC,CAAC;AACnG,CAAC;AAFD,4DAEC;AAED;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAC,qBAA0D;IAC9F,OAAO,kBAAkB,CAAC,qBAAqB,EAAE,oCAAgB,CAAC,6BAA6B,CAAC,CAAC;AACnG,CAAC;AAFD,sDAEC;AAED;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,qBAA0D;IACjG,OAAO,kBAAkB,CAAC,qBAAqB,EAAE,oCAAgB,CAAC,6BAA6B,CAAC,CAAC;AACnG,CAAC;AAFD,4DAEC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,qBAA0D;IAC3F,OAAO,kBAAkB,CAAC,qBAAqB,EAAE,oCAAgB,CAAC,6BAA6B,CAAC,CAAC;AACnG,CAAC;AAFD,gDAEC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.9.0";
1
+ declare const _default: "1.11.0";
2
2
  export default _default;
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '1.9.0';
3
+ exports.default = '1.11.0';
4
4
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../lib/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../lib/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sql",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "Driver for connection to Databricks SQL via Thrift API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,19 +15,12 @@ import TTypeId = ttypes.TTypeId
15
15
  import TSparkRowSetType = ttypes.TSparkRowSetType
16
16
  import TDBSqlCompressionCodec = ttypes.TDBSqlCompressionCodec
17
17
  import TDBSqlArrowLayout = ttypes.TDBSqlArrowLayout
18
- import TOperationIdempotencyType = ttypes.TOperationIdempotencyType
19
- import TOperationTimeoutLevel = ttypes.TOperationTimeoutLevel
20
18
  import TStatusCode = ttypes.TStatusCode
21
19
  import TOperationState = ttypes.TOperationState
22
20
  import TOperationType = ttypes.TOperationType
23
21
  import TGetInfoType = ttypes.TGetInfoType
24
- import TResultPersistenceMode = ttypes.TResultPersistenceMode
25
- import TDBSqlCloseOperationReason = ttypes.TDBSqlCloseOperationReason
26
22
  import TCacheLookupResult = ttypes.TCacheLookupResult
27
- import TCloudFetchDisabledReason = ttypes.TCloudFetchDisabledReason
28
- import TDBSqlManifestFileFormat = ttypes.TDBSqlManifestFileFormat
29
23
  import TFetchOrientation = ttypes.TFetchOrientation
30
- import TDBSqlFetchDisposition = ttypes.TDBSqlFetchDisposition
31
24
  import TJobExecutionStatus = ttypes.TJobExecutionStatus
32
25
  import PRIMITIVE_TYPES = ttypes.PRIMITIVE_TYPES
33
26
  import COMPLEX_TYPES = ttypes.COMPLEX_TYPES
@@ -72,13 +65,7 @@ import TDBSqlArrowFormat = ttypes.TDBSqlArrowFormat
72
65
  import TDBSqlResultFormat = ttypes.TDBSqlResultFormat
73
66
  import TSparkArrowBatch = ttypes.TSparkArrowBatch
74
67
  import TSparkArrowResultLink = ttypes.TSparkArrowResultLink
75
- import TDBSqlCloudResultFile = ttypes.TDBSqlCloudResultFile
76
68
  import TRowSet = ttypes.TRowSet
77
- import TDBSqlTempView = ttypes.TDBSqlTempView
78
- import TDBSqlSessionCapabilities = ttypes.TDBSqlSessionCapabilities
79
- import TExpressionInfo = ttypes.TExpressionInfo
80
- import TDBSqlConfValue = ttypes.TDBSqlConfValue
81
- import TDBSqlSessionConf = ttypes.TDBSqlSessionConf
82
69
  import TStatus = ttypes.TStatus
83
70
  import TNamespace = ttypes.TNamespace
84
71
  import THandleIdentifier = ttypes.THandleIdentifier
@@ -95,8 +82,8 @@ import TSparkGetDirectResults = ttypes.TSparkGetDirectResults
95
82
  import TSparkDirectResults = ttypes.TSparkDirectResults
96
83
  import TSparkArrowTypes = ttypes.TSparkArrowTypes
97
84
  import TExecuteStatementReq = ttypes.TExecuteStatementReq
98
- import TDBSqlStatement = ttypes.TDBSqlStatement
99
85
  import TSparkParameterValue = ttypes.TSparkParameterValue
86
+ import TSparkParameterValueArg = ttypes.TSparkParameterValueArg
100
87
  import TSparkParameter = ttypes.TSparkParameter
101
88
  import TStatementConf = ttypes.TStatementConf
102
89
  import TExecuteStatementResp = ttypes.TExecuteStatementResp
@@ -30,6 +30,7 @@ declare enum TProtocolVersion {
30
30
  SPARK_CLI_SERVICE_PROTOCOL_V6 = 42246,
31
31
  SPARK_CLI_SERVICE_PROTOCOL_V7 = 42247,
32
32
  SPARK_CLI_SERVICE_PROTOCOL_V8 = 42248,
33
+ SPARK_CLI_SERVICE_PROTOCOL_V9 = 42249,
33
34
  }
34
35
 
35
36
  declare enum TTypeId {
@@ -75,17 +76,6 @@ declare enum TDBSqlArrowLayout {
75
76
  ARROW_STREAMING = 1,
76
77
  }
77
78
 
78
- declare enum TOperationIdempotencyType {
79
- UNKNOWN = 0,
80
- NON_IDEMPOTENT = 1,
81
- IDEMPOTENT = 2,
82
- }
83
-
84
- declare enum TOperationTimeoutLevel {
85
- CLUSTER = 0,
86
- SESSION = 1,
87
- }
88
-
89
79
  declare enum TStatusCode {
90
80
  SUCCESS_STATUS = 0,
91
81
  SUCCESS_WITH_INFO_STATUS = 1,
@@ -168,17 +158,6 @@ declare enum TGetInfoType {
168
158
  CLI_MAX_IDENTIFIER_LEN = 10005,
169
159
  }
170
160
 
171
- declare enum TResultPersistenceMode {
172
- ONLY_LARGE_RESULTS = 0,
173
- ALL_QUERY_RESULTS = 1,
174
- ALL_RESULTS = 2,
175
- }
176
-
177
- declare enum TDBSqlCloseOperationReason {
178
- NONE = 0,
179
- COMMAND_INACTIVITY_TIMEOUT = 1,
180
- }
181
-
182
161
  declare enum TCacheLookupResult {
183
162
  CACHE_INELIGIBLE = 0,
184
163
  LOCAL_CACHE_HIT = 1,
@@ -186,21 +165,6 @@ declare enum TCacheLookupResult {
186
165
  CACHE_MISS = 3,
187
166
  }
188
167
 
189
- declare enum TCloudFetchDisabledReason {
190
- ARROW_SUPPORT = 0,
191
- CLOUD_FETCH_SUPPORT = 1,
192
- PROTOCOL_VERSION = 2,
193
- REGION_SUPPORT = 3,
194
- BLOCKLISTED_OPERATION = 4,
195
- SMALL_RESULT_SIZE = 5,
196
- CUSTOMER_STORAGE_SUPPORT = 6,
197
- UNKNOWN = 7,
198
- }
199
-
200
- declare enum TDBSqlManifestFileFormat {
201
- THRIFT_GET_RESULT_SET_METADATA_RESP = 0,
202
- }
203
-
204
168
  declare enum TFetchOrientation {
205
169
  FETCH_NEXT = 0,
206
170
  FETCH_PRIOR = 1,
@@ -210,13 +174,6 @@ declare enum TFetchOrientation {
210
174
  FETCH_LAST = 5,
211
175
  }
212
176
 
213
- declare enum TDBSqlFetchDisposition {
214
- DISPOSITION_UNSPECIFIED = 0,
215
- DISPOSITION_INLINE = 1,
216
- DISPOSITION_EXTERNAL_LINKS = 2,
217
- DISPOSITION_INTERNAL_DBFS = 3,
218
- }
219
-
220
177
  declare enum TJobExecutionStatus {
221
178
  IN_PROGRESS = 0,
222
179
  COMPLETE = 1,
@@ -480,19 +437,6 @@ declare class TSparkArrowResultLink {
480
437
  constructor(args?: { fileLink: string; expiryTime: Int64; startRowOffset: Int64; rowCount: Int64; bytesNum: Int64; httpHeaders?: { [k: string]: string; }; });
481
438
  }
482
439
 
483
- declare class TDBSqlCloudResultFile {
484
- public filePath?: string;
485
- public startRowOffset?: Int64;
486
- public rowCount?: Int64;
487
- public uncompressedBytes?: Int64;
488
- public compressedBytes?: Int64;
489
- public fileLink?: string;
490
- public linkExpiryTime?: Int64;
491
- public httpHeaders?: { [k: string]: string; };
492
-
493
- constructor(args?: { filePath?: string; startRowOffset?: Int64; rowCount?: Int64; uncompressedBytes?: Int64; compressedBytes?: Int64; fileLink?: string; linkExpiryTime?: Int64; httpHeaders?: { [k: string]: string; }; });
494
- }
495
-
496
440
  declare class TRowSet {
497
441
  public startRowOffset: Int64;
498
442
  public rows: TRow[];
@@ -501,59 +445,8 @@ declare class TRowSet {
501
445
  public columnCount?: number;
502
446
  public arrowBatches?: TSparkArrowBatch[];
503
447
  public resultLinks?: TSparkArrowResultLink[];
504
- public cloudFetchResults?: TDBSqlCloudResultFile[];
505
448
 
506
- constructor(args?: { startRowOffset: Int64; rows: TRow[]; columns?: TColumn[]; binaryColumns?: Buffer; columnCount?: number; arrowBatches?: TSparkArrowBatch[]; resultLinks?: TSparkArrowResultLink[]; cloudFetchResults?: TDBSqlCloudResultFile[]; });
507
- }
508
-
509
- declare class TDBSqlTempView {
510
- public name?: string;
511
- public sqlStatement?: string;
512
- public properties?: { [k: string]: string; };
513
- public viewSchema?: string;
514
-
515
- constructor(args?: { name?: string; sqlStatement?: string; properties?: { [k: string]: string; }; viewSchema?: string; });
516
- }
517
-
518
- declare class TDBSqlSessionCapabilities {
519
- public supportsMultipleCatalogs?: boolean;
520
-
521
- constructor(args?: { supportsMultipleCatalogs?: boolean; });
522
- }
523
-
524
- declare class TExpressionInfo {
525
- public className?: string;
526
- public usage?: string;
527
- public name?: string;
528
- public extended?: string;
529
- public db?: string;
530
- public arguments?: string;
531
- public examples?: string;
532
- public note?: string;
533
- public group?: string;
534
- public since?: string;
535
- public deprecated?: string;
536
- public source?: string;
537
-
538
- constructor(args?: { className?: string; usage?: string; name?: string; extended?: string; db?: string; arguments?: string; examples?: string; note?: string; group?: string; since?: string; deprecated?: string; source?: string; });
539
- }
540
-
541
- declare class TDBSqlConfValue {
542
- public value?: string;
543
-
544
- constructor(args?: { value?: string; });
545
- }
546
-
547
- declare class TDBSqlSessionConf {
548
- public confs?: { [k: string]: string; };
549
- public tempViews?: TDBSqlTempView[];
550
- public currentDatabase?: string;
551
- public currentCatalog?: string;
552
- public sessionCapabilities?: TDBSqlSessionCapabilities;
553
- public expressionsInfos?: TExpressionInfo[];
554
- public internalConfs?: { [k: string]: TDBSqlConfValue; };
555
-
556
- constructor(args?: { confs?: { [k: string]: string; }; tempViews?: TDBSqlTempView[]; currentDatabase?: string; currentCatalog?: string; sessionCapabilities?: TDBSqlSessionCapabilities; expressionsInfos?: TExpressionInfo[]; internalConfs?: { [k: string]: TDBSqlConfValue; }; });
449
+ constructor(args?: { startRowOffset: Int64; rows: TRow[]; columns?: TColumn[]; binaryColumns?: Buffer; columnCount?: number; arrowBatches?: TSparkArrowBatch[]; resultLinks?: TSparkArrowResultLink[]; });
557
450
  }
558
451
 
559
452
  declare class TStatus {
@@ -564,9 +457,8 @@ declare class TStatus {
564
457
  public errorMessage?: string;
565
458
  public displayMessage?: string;
566
459
  public errorDetailsJson?: string;
567
- public responseValidation?: Buffer;
568
460
 
569
- constructor(args?: { statusCode: TStatusCode; infoMessages?: string[]; sqlState?: string; errorCode?: number; errorMessage?: string; displayMessage?: string; errorDetailsJson?: string; responseValidation?: Buffer; });
461
+ constructor(args?: { statusCode: TStatusCode; infoMessages?: string[]; sqlState?: string; errorCode?: number; errorMessage?: string; displayMessage?: string; errorDetailsJson?: string; });
570
462
  }
571
463
 
572
464
  declare class TNamespace {
@@ -579,16 +471,14 @@ declare class TNamespace {
579
471
  declare class THandleIdentifier {
580
472
  public guid: Buffer;
581
473
  public secret: Buffer;
582
- public executionVersion?: number;
583
474
 
584
- constructor(args?: { guid: Buffer; secret: Buffer; executionVersion?: number; });
475
+ constructor(args?: { guid: Buffer; secret: Buffer; });
585
476
  }
586
477
 
587
478
  declare class TSessionHandle {
588
479
  public sessionId: THandleIdentifier;
589
- public serverProtocolVersion?: TProtocolVersion;
590
480
 
591
- constructor(args?: { sessionId: THandleIdentifier; serverProtocolVersion?: TProtocolVersion; });
481
+ constructor(args?: { sessionId: THandleIdentifier; });
592
482
  }
593
483
 
594
484
  declare class TOperationHandle {
@@ -610,9 +500,8 @@ declare class TOpenSessionReq {
610
500
  public connectionProperties?: { [k: string]: string; };
611
501
  public initialNamespace?: TNamespace;
612
502
  public canUseMultipleCatalogs?: boolean;
613
- public sessionId?: THandleIdentifier;
614
503
 
615
- constructor(args?: { client_protocol?: TProtocolVersion; username?: string; password?: string; configuration?: { [k: string]: string; }; getInfos?: TGetInfoType[]; client_protocol_i64?: Int64; connectionProperties?: { [k: string]: string; }; initialNamespace?: TNamespace; canUseMultipleCatalogs?: boolean; sessionId?: THandleIdentifier; });
504
+ constructor(args?: { client_protocol?: TProtocolVersion; username?: string; password?: string; configuration?: { [k: string]: string; }; getInfos?: TGetInfoType[]; client_protocol_i64?: Int64; connectionProperties?: { [k: string]: string; }; initialNamespace?: TNamespace; canUseMultipleCatalogs?: boolean; });
616
505
  }
617
506
 
618
507
  declare class TOpenSessionResp {
@@ -653,9 +542,8 @@ declare class TGetInfoValue {
653
542
  declare class TGetInfoReq {
654
543
  public sessionHandle: TSessionHandle;
655
544
  public infoType: TGetInfoType;
656
- public sessionConf?: TDBSqlSessionConf;
657
545
 
658
- constructor(args?: { sessionHandle: TSessionHandle; infoType: TGetInfoType; sessionConf?: TDBSqlSessionConf; });
546
+ constructor(args?: { sessionHandle: TSessionHandle; infoType: TGetInfoType; });
659
547
  }
660
548
 
661
549
  declare class TGetInfoResp {
@@ -707,35 +595,8 @@ declare class TExecuteStatementReq {
707
595
  public parameters?: TSparkParameter[];
708
596
  public maxBytesPerBatch?: Int64;
709
597
  public statementConf?: TStatementConf;
710
- public operationId?: THandleIdentifier;
711
- public sessionConf?: TDBSqlSessionConf;
712
- public rejectHighCostQueries?: boolean;
713
- public estimatedCost?: number;
714
- public executionVersion?: number;
715
- public requestValidation?: Buffer;
716
- public resultPersistenceMode?: TResultPersistenceMode;
717
- public trimArrowBatchesToLimit?: boolean;
718
- public fetchDisposition?: TDBSqlFetchDisposition;
719
- public enforceResultPersistenceMode?: boolean;
720
- public statementList?: TDBSqlStatement[];
721
- public persistResultManifest?: boolean;
722
- public resultRetentionSeconds?: Int64;
723
- public resultByteLimit?: Int64;
724
- public resultDataFormat?: TDBSqlResultFormat;
725
- public originatingClientIdentity?: string;
726
- public preferSingleFileResult?: boolean;
727
- public preferDriverOnlyUpload?: boolean;
728
- public enforceEmbeddedSchemaCorrectness?: boolean;
729
- public idempotencyToken?: string;
730
- public throwErrorOnByteLimitTruncation?: boolean;
731
-
732
- constructor(args?: { sessionHandle: TSessionHandle; statement: string; confOverlay?: { [k: string]: string; }; runAsync?: boolean; getDirectResults?: TSparkGetDirectResults; queryTimeout?: Int64; canReadArrowResult?: boolean; canDownloadResult?: boolean; canDecompressLZ4Result?: boolean; maxBytesPerFile?: Int64; useArrowNativeTypes?: TSparkArrowTypes; resultRowLimit?: Int64; parameters?: TSparkParameter[]; maxBytesPerBatch?: Int64; statementConf?: TStatementConf; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; rejectHighCostQueries?: boolean; estimatedCost?: number; executionVersion?: number; requestValidation?: Buffer; resultPersistenceMode?: TResultPersistenceMode; trimArrowBatchesToLimit?: boolean; fetchDisposition?: TDBSqlFetchDisposition; enforceResultPersistenceMode?: boolean; statementList?: TDBSqlStatement[]; persistResultManifest?: boolean; resultRetentionSeconds?: Int64; resultByteLimit?: Int64; resultDataFormat?: TDBSqlResultFormat; originatingClientIdentity?: string; preferSingleFileResult?: boolean; preferDriverOnlyUpload?: boolean; enforceEmbeddedSchemaCorrectness?: boolean; idempotencyToken?: string; throwErrorOnByteLimitTruncation?: boolean; });
733
- }
734
-
735
- declare class TDBSqlStatement {
736
- public statement?: string;
737
-
738
- constructor(args?: { statement?: string; });
598
+
599
+ constructor(args?: { sessionHandle: TSessionHandle; statement: string; confOverlay?: { [k: string]: string; }; runAsync?: boolean; getDirectResults?: TSparkGetDirectResults; queryTimeout?: Int64; canReadArrowResult?: boolean; canDownloadResult?: boolean; canDecompressLZ4Result?: boolean; maxBytesPerFile?: Int64; useArrowNativeTypes?: TSparkArrowTypes; resultRowLimit?: Int64; parameters?: TSparkParameter[]; maxBytesPerBatch?: Int64; statementConf?: TStatementConf; });
739
600
  }
740
601
 
741
602
  declare class TSparkParameterValue {
@@ -746,13 +607,22 @@ declare class TSparkParameterValue {
746
607
  constructor(args?: { stringValue?: string; doubleValue?: number; booleanValue?: boolean; });
747
608
  }
748
609
 
610
+ declare class TSparkParameterValueArg {
611
+ public type?: string;
612
+ public value?: string;
613
+ public arguments?: TSparkParameterValueArg[];
614
+
615
+ constructor(args?: { type?: string; value?: string; arguments?: TSparkParameterValueArg[]; });
616
+ }
617
+
749
618
  declare class TSparkParameter {
750
619
  public ordinal?: number;
751
620
  public name?: string;
752
621
  public type?: string;
753
622
  public value?: TSparkParameterValue;
623
+ public arguments?: TSparkParameterValueArg[];
754
624
 
755
- constructor(args?: { ordinal?: number; name?: string; type?: string; value?: TSparkParameterValue; });
625
+ constructor(args?: { ordinal?: number; name?: string; type?: string; value?: TSparkParameterValue; arguments?: TSparkParameterValueArg[]; });
756
626
  }
757
627
 
758
628
  declare class TStatementConf {
@@ -768,27 +638,16 @@ declare class TExecuteStatementResp {
768
638
  public status: TStatus;
769
639
  public operationHandle?: TOperationHandle;
770
640
  public directResults?: TSparkDirectResults;
771
- public executionRejected?: boolean;
772
- public maxClusterCapacity?: number;
773
- public queryCost?: number;
774
- public sessionConf?: TDBSqlSessionConf;
775
- public currentClusterLoad?: number;
776
- public idempotencyType?: TOperationIdempotencyType;
777
- public remoteResultCacheEnabled?: boolean;
778
- public isServerless?: boolean;
779
- public operationHandles?: TOperationHandle[];
780
641
 
781
- constructor(args?: { status: TStatus; operationHandle?: TOperationHandle; directResults?: TSparkDirectResults; executionRejected?: boolean; maxClusterCapacity?: number; queryCost?: number; sessionConf?: TDBSqlSessionConf; currentClusterLoad?: number; idempotencyType?: TOperationIdempotencyType; remoteResultCacheEnabled?: boolean; isServerless?: boolean; operationHandles?: TOperationHandle[]; });
642
+ constructor(args?: { status: TStatus; operationHandle?: TOperationHandle; directResults?: TSparkDirectResults; });
782
643
  }
783
644
 
784
645
  declare class TGetTypeInfoReq {
785
646
  public sessionHandle: TSessionHandle;
786
647
  public getDirectResults?: TSparkGetDirectResults;
787
648
  public runAsync?: boolean;
788
- public operationId?: THandleIdentifier;
789
- public sessionConf?: TDBSqlSessionConf;
790
649
 
791
- constructor(args?: { sessionHandle: TSessionHandle; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; });
650
+ constructor(args?: { sessionHandle: TSessionHandle; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; });
792
651
  }
793
652
 
794
653
  declare class TGetTypeInfoResp {
@@ -803,10 +662,8 @@ declare class TGetCatalogsReq {
803
662
  public sessionHandle: TSessionHandle;
804
663
  public getDirectResults?: TSparkGetDirectResults;
805
664
  public runAsync?: boolean;
806
- public operationId?: THandleIdentifier;
807
- public sessionConf?: TDBSqlSessionConf;
808
665
 
809
- constructor(args?: { sessionHandle: TSessionHandle; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; });
666
+ constructor(args?: { sessionHandle: TSessionHandle; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; });
810
667
  }
811
668
 
812
669
  declare class TGetCatalogsResp {
@@ -823,10 +680,8 @@ declare class TGetSchemasReq {
823
680
  public schemaName?: string;
824
681
  public getDirectResults?: TSparkGetDirectResults;
825
682
  public runAsync?: boolean;
826
- public operationId?: THandleIdentifier;
827
- public sessionConf?: TDBSqlSessionConf;
828
683
 
829
- constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; });
684
+ constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; });
830
685
  }
831
686
 
832
687
  declare class TGetSchemasResp {
@@ -845,10 +700,8 @@ declare class TGetTablesReq {
845
700
  public tableTypes?: string[];
846
701
  public getDirectResults?: TSparkGetDirectResults;
847
702
  public runAsync?: boolean;
848
- public operationId?: THandleIdentifier;
849
- public sessionConf?: TDBSqlSessionConf;
850
703
 
851
- constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; tableName?: string; tableTypes?: string[]; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; });
704
+ constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; tableName?: string; tableTypes?: string[]; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; });
852
705
  }
853
706
 
854
707
  declare class TGetTablesResp {
@@ -863,10 +716,8 @@ declare class TGetTableTypesReq {
863
716
  public sessionHandle: TSessionHandle;
864
717
  public getDirectResults?: TSparkGetDirectResults;
865
718
  public runAsync?: boolean;
866
- public operationId?: THandleIdentifier;
867
- public sessionConf?: TDBSqlSessionConf;
868
719
 
869
- constructor(args?: { sessionHandle: TSessionHandle; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; });
720
+ constructor(args?: { sessionHandle: TSessionHandle; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; });
870
721
  }
871
722
 
872
723
  declare class TGetTableTypesResp {
@@ -885,10 +736,8 @@ declare class TGetColumnsReq {
885
736
  public columnName?: string;
886
737
  public getDirectResults?: TSparkGetDirectResults;
887
738
  public runAsync?: boolean;
888
- public operationId?: THandleIdentifier;
889
- public sessionConf?: TDBSqlSessionConf;
890
739
 
891
- constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; tableName?: string; columnName?: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; });
740
+ constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; tableName?: string; columnName?: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; });
892
741
  }
893
742
 
894
743
  declare class TGetColumnsResp {
@@ -906,10 +755,8 @@ declare class TGetFunctionsReq {
906
755
  public functionName: string;
907
756
  public getDirectResults?: TSparkGetDirectResults;
908
757
  public runAsync?: boolean;
909
- public operationId?: THandleIdentifier;
910
- public sessionConf?: TDBSqlSessionConf;
911
758
 
912
- constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; functionName: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; });
759
+ constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; functionName: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; });
913
760
  }
914
761
 
915
762
  declare class TGetFunctionsResp {
@@ -927,10 +774,8 @@ declare class TGetPrimaryKeysReq {
927
774
  public tableName?: string;
928
775
  public getDirectResults?: TSparkGetDirectResults;
929
776
  public runAsync?: boolean;
930
- public operationId?: THandleIdentifier;
931
- public sessionConf?: TDBSqlSessionConf;
932
777
 
933
- constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; tableName?: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; });
778
+ constructor(args?: { sessionHandle: TSessionHandle; catalogName?: string; schemaName?: string; tableName?: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; });
934
779
  }
935
780
 
936
781
  declare class TGetPrimaryKeysResp {
@@ -951,10 +796,8 @@ declare class TGetCrossReferenceReq {
951
796
  public foreignTableName?: string;
952
797
  public getDirectResults?: TSparkGetDirectResults;
953
798
  public runAsync?: boolean;
954
- public operationId?: THandleIdentifier;
955
- public sessionConf?: TDBSqlSessionConf;
956
799
 
957
- constructor(args?: { sessionHandle: TSessionHandle; parentCatalogName?: string; parentSchemaName?: string; parentTableName?: string; foreignCatalogName?: string; foreignSchemaName?: string; foreignTableName?: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; });
800
+ constructor(args?: { sessionHandle: TSessionHandle; parentCatalogName?: string; parentSchemaName?: string; parentTableName?: string; foreignCatalogName?: string; foreignSchemaName?: string; foreignTableName?: string; getDirectResults?: TSparkGetDirectResults; runAsync?: boolean; });
958
801
  }
959
802
 
960
803
  declare class TGetCrossReferenceResp {
@@ -987,20 +830,14 @@ declare class TGetOperationStatusResp {
987
830
  public displayMessage?: string;
988
831
  public diagnosticInfo?: string;
989
832
  public errorDetailsJson?: string;
990
- public responseValidation?: Buffer;
991
- public idempotencyType?: TOperationIdempotencyType;
992
- public statementTimeout?: Int64;
993
- public statementTimeoutLevel?: TOperationTimeoutLevel;
994
833
 
995
- constructor(args?: { status: TStatus; operationState?: TOperationState; sqlState?: string; errorCode?: number; errorMessage?: string; taskStatus?: string; operationStarted?: Int64; operationCompleted?: Int64; hasResultSet?: boolean; progressUpdateResponse?: TProgressUpdateResp; numModifiedRows?: Int64; displayMessage?: string; diagnosticInfo?: string; errorDetailsJson?: string; responseValidation?: Buffer; idempotencyType?: TOperationIdempotencyType; statementTimeout?: Int64; statementTimeoutLevel?: TOperationTimeoutLevel; });
834
+ constructor(args?: { status: TStatus; operationState?: TOperationState; sqlState?: string; errorCode?: number; errorMessage?: string; taskStatus?: string; operationStarted?: Int64; operationCompleted?: Int64; hasResultSet?: boolean; progressUpdateResponse?: TProgressUpdateResp; numModifiedRows?: Int64; displayMessage?: string; diagnosticInfo?: string; errorDetailsJson?: string; });
996
835
  }
997
836
 
998
837
  declare class TCancelOperationReq {
999
838
  public operationHandle: TOperationHandle;
1000
- public executionVersion?: number;
1001
- public replacedByNextAttempt?: boolean;
1002
839
 
1003
- constructor(args?: { operationHandle: TOperationHandle; executionVersion?: number; replacedByNextAttempt?: boolean; });
840
+ constructor(args?: { operationHandle: TOperationHandle; });
1004
841
  }
1005
842
 
1006
843
  declare class TCancelOperationResp {
@@ -1011,9 +848,8 @@ declare class TCancelOperationResp {
1011
848
 
1012
849
  declare class TCloseOperationReq {
1013
850
  public operationHandle: TOperationHandle;
1014
- public closeReason?: TDBSqlCloseOperationReason;
1015
851
 
1016
- constructor(args?: { operationHandle: TOperationHandle; closeReason?: TDBSqlCloseOperationReason; });
852
+ constructor(args?: { operationHandle: TOperationHandle; });
1017
853
  }
1018
854
 
1019
855
  declare class TCloseOperationResp {
@@ -1024,9 +860,8 @@ declare class TCloseOperationResp {
1024
860
 
1025
861
  declare class TGetResultSetMetadataReq {
1026
862
  public operationHandle: TOperationHandle;
1027
- public includeCloudResultFiles?: boolean;
1028
863
 
1029
- constructor(args?: { operationHandle: TOperationHandle; includeCloudResultFiles?: boolean; });
864
+ constructor(args?: { operationHandle: TOperationHandle; });
1030
865
  }
1031
866
 
1032
867
  declare class TGetResultSetMetadataResp {
@@ -1039,20 +874,8 @@ declare class TGetResultSetMetadataResp {
1039
874
  public uncompressedBytes?: Int64;
1040
875
  public compressedBytes?: Int64;
1041
876
  public isStagingOperation?: boolean;
1042
- public reasonForNoCloudFetch?: TCloudFetchDisabledReason;
1043
- public resultFiles?: TDBSqlCloudResultFile[];
1044
- public manifestFile?: string;
1045
- public manifestFileFormat?: TDBSqlManifestFileFormat;
1046
- public cacheLookupLatency?: Int64;
1047
- public remoteCacheMissReason?: string;
1048
- public fetchDisposition?: TDBSqlFetchDisposition;
1049
- public remoteResultCacheEnabled?: boolean;
1050
- public isServerless?: boolean;
1051
- public resultDataFormat?: TDBSqlResultFormat;
1052
- public truncatedByThriftLimit?: boolean;
1053
- public resultByteLimit?: Int64;
1054
-
1055
- constructor(args?: { status: TStatus; schema?: TTableSchema; resultFormat?: TSparkRowSetType; lz4Compressed?: boolean; arrowSchema?: Buffer; cacheLookupResult?: TCacheLookupResult; uncompressedBytes?: Int64; compressedBytes?: Int64; isStagingOperation?: boolean; reasonForNoCloudFetch?: TCloudFetchDisabledReason; resultFiles?: TDBSqlCloudResultFile[]; manifestFile?: string; manifestFileFormat?: TDBSqlManifestFileFormat; cacheLookupLatency?: Int64; remoteCacheMissReason?: string; fetchDisposition?: TDBSqlFetchDisposition; remoteResultCacheEnabled?: boolean; isServerless?: boolean; resultDataFormat?: TDBSqlResultFormat; truncatedByThriftLimit?: boolean; resultByteLimit?: Int64; });
877
+
878
+ constructor(args?: { status: TStatus; schema?: TTableSchema; resultFormat?: TSparkRowSetType; lz4Compressed?: boolean; arrowSchema?: Buffer; cacheLookupResult?: TCacheLookupResult; uncompressedBytes?: Int64; compressedBytes?: Int64; isStagingOperation?: boolean; });
1056
879
  }
1057
880
 
1058
881
  declare class TFetchResultsReq {
@@ -1072,18 +895,16 @@ declare class TFetchResultsResp {
1072
895
  public hasMoreRows?: boolean;
1073
896
  public results?: TRowSet;
1074
897
  public resultSetMetadata?: TGetResultSetMetadataResp;
1075
- public responseValidation?: Buffer;
1076
898
 
1077
- constructor(args?: { status: TStatus; hasMoreRows?: boolean; results?: TRowSet; resultSetMetadata?: TGetResultSetMetadataResp; responseValidation?: Buffer; });
899
+ constructor(args?: { status: TStatus; hasMoreRows?: boolean; results?: TRowSet; resultSetMetadata?: TGetResultSetMetadataResp; });
1078
900
  }
1079
901
 
1080
902
  declare class TGetDelegationTokenReq {
1081
903
  public sessionHandle: TSessionHandle;
1082
904
  public owner: string;
1083
905
  public renewer: string;
1084
- public sessionConf?: TDBSqlSessionConf;
1085
906
 
1086
- constructor(args?: { sessionHandle: TSessionHandle; owner: string; renewer: string; sessionConf?: TDBSqlSessionConf; });
907
+ constructor(args?: { sessionHandle: TSessionHandle; owner: string; renewer: string; });
1087
908
  }
1088
909
 
1089
910
  declare class TGetDelegationTokenResp {
@@ -1096,9 +917,8 @@ declare class TGetDelegationTokenResp {
1096
917
  declare class TCancelDelegationTokenReq {
1097
918
  public sessionHandle: TSessionHandle;
1098
919
  public delegationToken: string;
1099
- public sessionConf?: TDBSqlSessionConf;
1100
920
 
1101
- constructor(args?: { sessionHandle: TSessionHandle; delegationToken: string; sessionConf?: TDBSqlSessionConf; });
921
+ constructor(args?: { sessionHandle: TSessionHandle; delegationToken: string; });
1102
922
  }
1103
923
 
1104
924
  declare class TCancelDelegationTokenResp {
@@ -1110,9 +930,8 @@ declare class TCancelDelegationTokenResp {
1110
930
  declare class TRenewDelegationTokenReq {
1111
931
  public sessionHandle: TSessionHandle;
1112
932
  public delegationToken: string;
1113
- public sessionConf?: TDBSqlSessionConf;
1114
933
 
1115
- constructor(args?: { sessionHandle: TSessionHandle; delegationToken: string; sessionConf?: TDBSqlSessionConf; });
934
+ constructor(args?: { sessionHandle: TSessionHandle; delegationToken: string; });
1116
935
  }
1117
936
 
1118
937
  declare class TRenewDelegationTokenResp {