@databricks/sql 1.2.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DBSQLClient.d.ts +8 -6
- package/dist/DBSQLClient.js +98 -59
- package/dist/DBSQLClient.js.map +1 -1
- package/dist/DBSQLOperation/OperationStatusHelper.d.ts +1 -1
- package/dist/DBSQLOperation/OperationStatusHelper.js +29 -6
- package/dist/DBSQLOperation/OperationStatusHelper.js.map +1 -1
- package/dist/DBSQLOperation/SchemaHelper.d.ts +1 -0
- package/dist/DBSQLOperation/SchemaHelper.js +20 -7
- package/dist/DBSQLOperation/SchemaHelper.js.map +1 -1
- package/dist/DBSQLOperation/index.d.ts +9 -2
- package/dist/DBSQLOperation/index.js +86 -10
- package/dist/DBSQLOperation/index.js.map +1 -1
- package/dist/DBSQLSession.d.ts +10 -1
- package/dist/DBSQLSession.js +72 -14
- package/dist/DBSQLSession.js.map +1 -1
- package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.d.ts +24 -0
- package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.js +165 -0
- package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.d.ts +47 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.js +169 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.d.ts +10 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.js +29 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthScope.d.ts +7 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthScope.js +11 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthScope.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthToken.d.ts +10 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthToken.js +32 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthToken.js.map +1 -0
- package/dist/connection/auth/DatabricksOAuth/index.d.ts +21 -0
- package/dist/connection/auth/DatabricksOAuth/index.js +41 -0
- package/dist/connection/auth/DatabricksOAuth/index.js.map +1 -0
- package/dist/connection/auth/PlainHttpAuthentication.d.ts +11 -11
- package/dist/connection/auth/PlainHttpAuthentication.js +15 -7
- package/dist/connection/auth/PlainHttpAuthentication.js.map +1 -1
- package/dist/connection/connections/HttpConnection.d.ts +1 -2
- package/dist/connection/connections/HttpConnection.js +24 -14
- package/dist/connection/connections/HttpConnection.js.map +1 -1
- package/dist/connection/contracts/IAuthentication.d.ts +2 -2
- package/dist/connection/contracts/IConnectionOptions.d.ts +3 -1
- package/dist/connection/contracts/IConnectionProvider.d.ts +1 -2
- package/dist/contracts/IDBSQLClient.d.ts +17 -3
- package/dist/contracts/IDBSQLSession.d.ts +1 -0
- package/dist/errors/OperationStateError.d.ts +10 -2
- package/dist/errors/OperationStateError.js +19 -2
- package/dist/errors/OperationStateError.js.map +1 -1
- package/dist/globalConfig.d.ts +7 -0
- package/dist/globalConfig.js +7 -0
- package/dist/globalConfig.js.map +1 -1
- package/dist/hive/Commands/BaseCommand.d.ts +3 -1
- package/dist/hive/Commands/BaseCommand.js +66 -4
- package/dist/hive/Commands/BaseCommand.js.map +1 -1
- package/dist/hive/HiveDriver.d.ts +3 -2
- package/dist/hive/HiveDriver.js +116 -44
- package/dist/hive/HiveDriver.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/node_modules/thrift/lib/nodejs/lib/thrift/http_connection.js +8 -0
- package/dist/result/ArrowResult.d.ts +3 -2
- package/dist/result/ArrowResult.js +38 -17
- package/dist/result/ArrowResult.js.map +1 -1
- package/dist/result/CloudFetchResult.d.ts +13 -0
- package/dist/result/CloudFetchResult.js +69 -0
- package/dist/result/CloudFetchResult.js.map +1 -0
- package/dist/result/IOperationResult.d.ts +2 -1
- package/dist/result/JsonResult.d.ts +2 -1
- package/dist/result/JsonResult.js +24 -8
- package/dist/result/JsonResult.js.map +1 -1
- package/dist/utils/CloseableCollection.d.ts +10 -0
- package/dist/utils/CloseableCollection.js +40 -0
- package/dist/utils/CloseableCollection.js.map +1 -0
- package/dist/utils/areHeadersEqual.d.ts +2 -0
- package/dist/utils/areHeadersEqual.js +49 -0
- package/dist/utils/areHeadersEqual.js.map +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -2
- package/thrift/TCLIService.d.ts +60 -0
- package/thrift/TCLIService_types.d.ts +206 -14
- package/thrift/TCLIService_types.js +2334 -291
- package/dist/connection/auth/NoSaslAuthentication.d.ts +0 -5
- package/dist/connection/auth/NoSaslAuthentication.js +0 -14
- package/dist/connection/auth/NoSaslAuthentication.js.map +0 -1
- package/dist/connection/auth/helpers/SaslPackageFactory.d.ts +0 -11
- package/dist/connection/auth/helpers/SaslPackageFactory.js +0 -20
- package/dist/connection/auth/helpers/SaslPackageFactory.js.map +0 -1
- package/dist/connection/contracts/ITransport.d.ts +0 -6
- package/dist/connection/contracts/ITransport.js +0 -3
- package/dist/connection/contracts/ITransport.js.map +0 -1
- package/dist/connection/transports/HttpTransport.d.ts +0 -8
- package/dist/connection/transports/HttpTransport.js +0 -18
- package/dist/connection/transports/HttpTransport.js.map +0 -1
- package/dist/connection/types/AuthOptions.d.ts +0 -4
- package/dist/connection/types/AuthOptions.js +0 -3
- package/dist/connection/types/AuthOptions.js.map +0 -1
|
@@ -28,6 +28,7 @@ declare enum TProtocolVersion {
|
|
|
28
28
|
SPARK_CLI_SERVICE_PROTOCOL_V4 = 42244,
|
|
29
29
|
SPARK_CLI_SERVICE_PROTOCOL_V5 = 42245,
|
|
30
30
|
SPARK_CLI_SERVICE_PROTOCOL_V6 = 42246,
|
|
31
|
+
SPARK_CLI_SERVICE_PROTOCOL_V7 = 42247,
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
declare enum TTypeId {
|
|
@@ -62,12 +63,28 @@ declare enum TSparkRowSetType {
|
|
|
62
63
|
URL_BASED_SET = 3,
|
|
63
64
|
}
|
|
64
65
|
|
|
66
|
+
declare enum TDBSqlCompressionCodec {
|
|
67
|
+
NONE = 0,
|
|
68
|
+
LZ4_FRAME = 1,
|
|
69
|
+
LZ4_BLOCK = 2,
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare enum TDBSqlArrowLayout {
|
|
73
|
+
ARROW_BATCH = 0,
|
|
74
|
+
ARROW_STREAMING = 1,
|
|
75
|
+
}
|
|
76
|
+
|
|
65
77
|
declare enum TOperationIdempotencyType {
|
|
66
78
|
UNKNOWN = 0,
|
|
67
79
|
NON_IDEMPOTENT = 1,
|
|
68
80
|
IDEMPOTENT = 2,
|
|
69
81
|
}
|
|
70
82
|
|
|
83
|
+
declare enum TOperationTimeoutLevel {
|
|
84
|
+
CLUSTER = 0,
|
|
85
|
+
SESSION = 1,
|
|
86
|
+
}
|
|
87
|
+
|
|
71
88
|
declare enum TStatusCode {
|
|
72
89
|
SUCCESS_STATUS = 0,
|
|
73
90
|
SUCCESS_WITH_INFO_STATUS = 1,
|
|
@@ -150,6 +167,12 @@ declare enum TGetInfoType {
|
|
|
150
167
|
CLI_MAX_IDENTIFIER_LEN = 10005,
|
|
151
168
|
}
|
|
152
169
|
|
|
170
|
+
declare enum TResultPersistenceMode {
|
|
171
|
+
ONLY_LARGE_RESULTS = 0,
|
|
172
|
+
ALL_QUERY_RESULTS = 1,
|
|
173
|
+
ALL_RESULTS = 2,
|
|
174
|
+
}
|
|
175
|
+
|
|
153
176
|
declare enum TCacheLookupResult {
|
|
154
177
|
CACHE_INELIGIBLE = 0,
|
|
155
178
|
LOCAL_CACHE_HIT = 1,
|
|
@@ -157,6 +180,21 @@ declare enum TCacheLookupResult {
|
|
|
157
180
|
CACHE_MISS = 3,
|
|
158
181
|
}
|
|
159
182
|
|
|
183
|
+
declare enum TCloudFetchDisabledReason {
|
|
184
|
+
ARROW_SUPPORT = 0,
|
|
185
|
+
CLOUD_FETCH_SUPPORT = 1,
|
|
186
|
+
PROTOCOL_VERSION = 2,
|
|
187
|
+
REGION_SUPPORT = 3,
|
|
188
|
+
BLOCKLISTED_OPERATION = 4,
|
|
189
|
+
SMALL_RESULT_SIZE = 5,
|
|
190
|
+
CUSTOMER_STORAGE_SUPPORT = 6,
|
|
191
|
+
UNKNOWN = 7,
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
declare enum TDBSqlManifestFileFormat {
|
|
195
|
+
THRIFT_GET_RESULT_SET_METADATA_RESP = 0,
|
|
196
|
+
}
|
|
197
|
+
|
|
160
198
|
declare enum TFetchOrientation {
|
|
161
199
|
FETCH_NEXT = 0,
|
|
162
200
|
FETCH_PRIOR = 1,
|
|
@@ -166,6 +204,13 @@ declare enum TFetchOrientation {
|
|
|
166
204
|
FETCH_LAST = 5,
|
|
167
205
|
}
|
|
168
206
|
|
|
207
|
+
declare enum TDBSqlFetchDisposition {
|
|
208
|
+
DISPOSITION_UNSPECIFIED = 0,
|
|
209
|
+
DISPOSITION_INLINE = 1,
|
|
210
|
+
DISPOSITION_EXTERNAL_LINKS = 2,
|
|
211
|
+
DISPOSITION_INTERNAL_DBFS = 3,
|
|
212
|
+
}
|
|
213
|
+
|
|
169
214
|
declare enum TJobExecutionStatus {
|
|
170
215
|
IN_PROGRESS = 0,
|
|
171
216
|
COMPLETE = 1,
|
|
@@ -384,6 +429,33 @@ declare class TColumn {
|
|
|
384
429
|
constructor(args?: { boolVal?: TBoolColumn; byteVal?: TByteColumn; i16Val?: TI16Column; i32Val?: TI32Column; i64Val?: TI64Column; doubleVal?: TDoubleColumn; stringVal?: TStringColumn; binaryVal?: TBinaryColumn; });
|
|
385
430
|
}
|
|
386
431
|
|
|
432
|
+
declare class TDBSqlJsonArrayFormat {
|
|
433
|
+
public compressionCodec?: TDBSqlCompressionCodec;
|
|
434
|
+
|
|
435
|
+
constructor(args?: { compressionCodec?: TDBSqlCompressionCodec; });
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
declare class TDBSqlCsvFormat {
|
|
439
|
+
public compressionCodec?: TDBSqlCompressionCodec;
|
|
440
|
+
|
|
441
|
+
constructor(args?: { compressionCodec?: TDBSqlCompressionCodec; });
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
declare class TDBSqlArrowFormat {
|
|
445
|
+
public arrowLayout?: TDBSqlArrowLayout;
|
|
446
|
+
public compressionCodec?: TDBSqlCompressionCodec;
|
|
447
|
+
|
|
448
|
+
constructor(args?: { arrowLayout?: TDBSqlArrowLayout; compressionCodec?: TDBSqlCompressionCodec; });
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
declare class TDBSqlResultFormat {
|
|
452
|
+
public arrowFormat?: TDBSqlArrowFormat;
|
|
453
|
+
public csvFormat?: TDBSqlCsvFormat;
|
|
454
|
+
public jsonArrayFormat?: TDBSqlJsonArrayFormat;
|
|
455
|
+
|
|
456
|
+
constructor(args?: { arrowFormat?: TDBSqlArrowFormat; csvFormat?: TDBSqlCsvFormat; jsonArrayFormat?: TDBSqlJsonArrayFormat; });
|
|
457
|
+
}
|
|
458
|
+
|
|
387
459
|
declare class TSparkArrowBatch {
|
|
388
460
|
public batch: Buffer;
|
|
389
461
|
public rowCount: Int64;
|
|
@@ -397,8 +469,22 @@ declare class TSparkArrowResultLink {
|
|
|
397
469
|
public startRowOffset: Int64;
|
|
398
470
|
public rowCount: Int64;
|
|
399
471
|
public bytesNum: Int64;
|
|
472
|
+
public httpHeaders?: { [k: string]: string; };
|
|
473
|
+
|
|
474
|
+
constructor(args?: { fileLink: string; expiryTime: Int64; startRowOffset: Int64; rowCount: Int64; bytesNum: Int64; httpHeaders?: { [k: string]: string; }; });
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare class TDBSqlCloudResultFile {
|
|
478
|
+
public filePath?: string;
|
|
479
|
+
public startRowOffset?: Int64;
|
|
480
|
+
public rowCount?: Int64;
|
|
481
|
+
public uncompressedBytes?: Int64;
|
|
482
|
+
public compressedBytes?: Int64;
|
|
483
|
+
public fileLink?: string;
|
|
484
|
+
public linkExpiryTime?: Int64;
|
|
485
|
+
public httpHeaders?: { [k: string]: string; };
|
|
400
486
|
|
|
401
|
-
constructor(args?: {
|
|
487
|
+
constructor(args?: { filePath?: string; startRowOffset?: Int64; rowCount?: Int64; uncompressedBytes?: Int64; compressedBytes?: Int64; fileLink?: string; linkExpiryTime?: Int64; httpHeaders?: { [k: string]: string; }; });
|
|
402
488
|
}
|
|
403
489
|
|
|
404
490
|
declare class TRowSet {
|
|
@@ -409,8 +495,9 @@ declare class TRowSet {
|
|
|
409
495
|
public columnCount?: number;
|
|
410
496
|
public arrowBatches?: TSparkArrowBatch[];
|
|
411
497
|
public resultLinks?: TSparkArrowResultLink[];
|
|
498
|
+
public cloudFetchResults?: TDBSqlCloudResultFile[];
|
|
412
499
|
|
|
413
|
-
constructor(args?: { startRowOffset: Int64; rows: TRow[]; columns?: TColumn[]; binaryColumns?: Buffer; columnCount?: number; arrowBatches?: TSparkArrowBatch[]; resultLinks?: TSparkArrowResultLink[]; });
|
|
500
|
+
constructor(args?: { startRowOffset: Int64; rows: TRow[]; columns?: TColumn[]; binaryColumns?: Buffer; columnCount?: number; arrowBatches?: TSparkArrowBatch[]; resultLinks?: TSparkArrowResultLink[]; cloudFetchResults?: TDBSqlCloudResultFile[]; });
|
|
414
501
|
}
|
|
415
502
|
|
|
416
503
|
declare class TDBSqlTempView {
|
|
@@ -428,14 +515,39 @@ declare class TDBSqlSessionCapabilities {
|
|
|
428
515
|
constructor(args?: { supportsMultipleCatalogs?: boolean; });
|
|
429
516
|
}
|
|
430
517
|
|
|
518
|
+
declare class TExpressionInfo {
|
|
519
|
+
public className?: string;
|
|
520
|
+
public usage?: string;
|
|
521
|
+
public name?: string;
|
|
522
|
+
public extended?: string;
|
|
523
|
+
public db?: string;
|
|
524
|
+
public arguments?: string;
|
|
525
|
+
public examples?: string;
|
|
526
|
+
public note?: string;
|
|
527
|
+
public group?: string;
|
|
528
|
+
public since?: string;
|
|
529
|
+
public deprecated?: string;
|
|
530
|
+
public source?: string;
|
|
531
|
+
|
|
532
|
+
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; });
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
declare class TDBSqlConfValue {
|
|
536
|
+
public value?: string;
|
|
537
|
+
|
|
538
|
+
constructor(args?: { value?: string; });
|
|
539
|
+
}
|
|
540
|
+
|
|
431
541
|
declare class TDBSqlSessionConf {
|
|
432
542
|
public confs?: { [k: string]: string; };
|
|
433
543
|
public tempViews?: TDBSqlTempView[];
|
|
434
544
|
public currentDatabase?: string;
|
|
435
545
|
public currentCatalog?: string;
|
|
436
546
|
public sessionCapabilities?: TDBSqlSessionCapabilities;
|
|
547
|
+
public expressionsInfos?: TExpressionInfo[];
|
|
548
|
+
public internalConfs?: { [k: string]: TDBSqlConfValue; };
|
|
437
549
|
|
|
438
|
-
constructor(args?: { confs?: { [k: string]: string; }; tempViews?: TDBSqlTempView[]; currentDatabase?: string; currentCatalog?: string; sessionCapabilities?: TDBSqlSessionCapabilities; });
|
|
550
|
+
constructor(args?: { confs?: { [k: string]: string; }; tempViews?: TDBSqlTempView[]; currentDatabase?: string; currentCatalog?: string; sessionCapabilities?: TDBSqlSessionCapabilities; expressionsInfos?: TExpressionInfo[]; internalConfs?: { [k: string]: TDBSqlConfValue; }; });
|
|
439
551
|
}
|
|
440
552
|
|
|
441
553
|
declare class TStatus {
|
|
@@ -444,8 +556,11 @@ declare class TStatus {
|
|
|
444
556
|
public sqlState?: string;
|
|
445
557
|
public errorCode?: number;
|
|
446
558
|
public errorMessage?: string;
|
|
559
|
+
public displayMessage?: string;
|
|
560
|
+
public errorDetailsJson?: string;
|
|
561
|
+
public responseValidation?: Buffer;
|
|
447
562
|
|
|
448
|
-
constructor(args?: { statusCode: TStatusCode; infoMessages?: string[]; sqlState?: string; errorCode?: number; errorMessage?: string; });
|
|
563
|
+
constructor(args?: { statusCode: TStatusCode; infoMessages?: string[]; sqlState?: string; errorCode?: number; errorMessage?: string; displayMessage?: string; errorDetailsJson?: string; responseValidation?: Buffer; });
|
|
449
564
|
}
|
|
450
565
|
|
|
451
566
|
declare class TNamespace {
|
|
@@ -458,8 +573,9 @@ declare class TNamespace {
|
|
|
458
573
|
declare class THandleIdentifier {
|
|
459
574
|
public guid: Buffer;
|
|
460
575
|
public secret: Buffer;
|
|
576
|
+
public executionVersion?: number;
|
|
461
577
|
|
|
462
|
-
constructor(args?: { guid: Buffer; secret: Buffer; });
|
|
578
|
+
constructor(args?: { guid: Buffer; secret: Buffer; executionVersion?: number; });
|
|
463
579
|
}
|
|
464
580
|
|
|
465
581
|
declare class TSessionHandle {
|
|
@@ -564,8 +680,9 @@ declare class TSparkArrowTypes {
|
|
|
564
680
|
public decimalAsArrow?: boolean;
|
|
565
681
|
public complexTypesAsArrow?: boolean;
|
|
566
682
|
public intervalTypesAsArrow?: boolean;
|
|
683
|
+
public nullTypeAsArrow?: boolean;
|
|
567
684
|
|
|
568
|
-
constructor(args?: { timestampAsArrow?: boolean; decimalAsArrow?: boolean; complexTypesAsArrow?: boolean; intervalTypesAsArrow?: boolean; });
|
|
685
|
+
constructor(args?: { timestampAsArrow?: boolean; decimalAsArrow?: boolean; complexTypesAsArrow?: boolean; intervalTypesAsArrow?: boolean; nullTypeAsArrow?: boolean; });
|
|
569
686
|
}
|
|
570
687
|
|
|
571
688
|
declare class TExecuteStatementReq {
|
|
@@ -580,13 +697,64 @@ declare class TExecuteStatementReq {
|
|
|
580
697
|
public canDecompressLZ4Result?: boolean;
|
|
581
698
|
public maxBytesPerFile?: Int64;
|
|
582
699
|
public useArrowNativeTypes?: TSparkArrowTypes;
|
|
700
|
+
public resultRowLimit?: Int64;
|
|
701
|
+
public parameters?: TSparkParameter[];
|
|
702
|
+
public maxBytesPerBatch?: Int64;
|
|
703
|
+
public statementConf?: TStatementConf;
|
|
583
704
|
public operationId?: THandleIdentifier;
|
|
584
705
|
public sessionConf?: TDBSqlSessionConf;
|
|
585
706
|
public rejectHighCostQueries?: boolean;
|
|
586
707
|
public estimatedCost?: number;
|
|
587
708
|
public executionVersion?: number;
|
|
709
|
+
public requestValidation?: Buffer;
|
|
710
|
+
public resultPersistenceMode?: TResultPersistenceMode;
|
|
711
|
+
public trimArrowBatchesToLimit?: boolean;
|
|
712
|
+
public fetchDisposition?: TDBSqlFetchDisposition;
|
|
713
|
+
public enforceResultPersistenceMode?: boolean;
|
|
714
|
+
public statementList?: TDBSqlStatement[];
|
|
715
|
+
public persistResultManifest?: boolean;
|
|
716
|
+
public resultRetentionSeconds?: Int64;
|
|
717
|
+
public resultByteLimit?: Int64;
|
|
718
|
+
public resultDataFormat?: TDBSqlResultFormat;
|
|
719
|
+
public originatingClientIdentity?: string;
|
|
720
|
+
public preferSingleFileResult?: boolean;
|
|
721
|
+
public preferDriverOnlyUpload?: boolean;
|
|
722
|
+
public enforceEmbeddedSchemaCorrectness?: boolean;
|
|
723
|
+
public idempotencyToken?: string;
|
|
724
|
+
|
|
725
|
+
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; });
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
declare class TDBSqlStatement {
|
|
729
|
+
public statement?: string;
|
|
588
730
|
|
|
589
|
-
constructor(args?: {
|
|
731
|
+
constructor(args?: { statement?: string; });
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
declare class TSparkParameterValue {
|
|
735
|
+
public stringValue?: string;
|
|
736
|
+
public doubleValue?: number;
|
|
737
|
+
public booleanValue?: boolean;
|
|
738
|
+
|
|
739
|
+
constructor(args?: { stringValue?: string; doubleValue?: number; booleanValue?: boolean; });
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
declare class TSparkParameter {
|
|
743
|
+
public ordinal?: number;
|
|
744
|
+
public name?: string;
|
|
745
|
+
public type?: string;
|
|
746
|
+
public value?: TSparkParameterValue;
|
|
747
|
+
|
|
748
|
+
constructor(args?: { ordinal?: number; name?: string; type?: string; value?: TSparkParameterValue; });
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
declare class TStatementConf {
|
|
752
|
+
public sessionless?: boolean;
|
|
753
|
+
public initialNamespace?: TNamespace;
|
|
754
|
+
public client_protocol?: TProtocolVersion;
|
|
755
|
+
public client_protocol_i64?: Int64;
|
|
756
|
+
|
|
757
|
+
constructor(args?: { sessionless?: boolean; initialNamespace?: TNamespace; client_protocol?: TProtocolVersion; client_protocol_i64?: Int64; });
|
|
590
758
|
}
|
|
591
759
|
|
|
592
760
|
declare class TExecuteStatementResp {
|
|
@@ -599,8 +767,11 @@ declare class TExecuteStatementResp {
|
|
|
599
767
|
public sessionConf?: TDBSqlSessionConf;
|
|
600
768
|
public currentClusterLoad?: number;
|
|
601
769
|
public idempotencyType?: TOperationIdempotencyType;
|
|
770
|
+
public remoteResultCacheEnabled?: boolean;
|
|
771
|
+
public isServerless?: boolean;
|
|
772
|
+
public operationHandles?: TOperationHandle[];
|
|
602
773
|
|
|
603
|
-
constructor(args?: { status: TStatus; operationHandle?: TOperationHandle; directResults?: TSparkDirectResults; executionRejected?: boolean; maxClusterCapacity?: number; queryCost?: number; sessionConf?: TDBSqlSessionConf; currentClusterLoad?: number; idempotencyType?: TOperationIdempotencyType; });
|
|
774
|
+
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[]; });
|
|
604
775
|
}
|
|
605
776
|
|
|
606
777
|
declare class TGetTypeInfoReq {
|
|
@@ -808,15 +979,21 @@ declare class TGetOperationStatusResp {
|
|
|
808
979
|
public numModifiedRows?: Int64;
|
|
809
980
|
public displayMessage?: string;
|
|
810
981
|
public diagnosticInfo?: string;
|
|
982
|
+
public errorDetailsJson?: string;
|
|
983
|
+
public responseValidation?: Buffer;
|
|
984
|
+
public idempotencyType?: TOperationIdempotencyType;
|
|
985
|
+
public statementTimeout?: Int64;
|
|
986
|
+
public statementTimeoutLevel?: TOperationTimeoutLevel;
|
|
811
987
|
|
|
812
|
-
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; });
|
|
988
|
+
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; });
|
|
813
989
|
}
|
|
814
990
|
|
|
815
991
|
declare class TCancelOperationReq {
|
|
816
992
|
public operationHandle: TOperationHandle;
|
|
817
993
|
public executionVersion?: number;
|
|
994
|
+
public replacedByNextAttempt?: boolean;
|
|
818
995
|
|
|
819
|
-
constructor(args?: { operationHandle: TOperationHandle; executionVersion?: number; });
|
|
996
|
+
constructor(args?: { operationHandle: TOperationHandle; executionVersion?: number; replacedByNextAttempt?: boolean; });
|
|
820
997
|
}
|
|
821
998
|
|
|
822
999
|
declare class TCancelOperationResp {
|
|
@@ -839,8 +1016,9 @@ declare class TCloseOperationResp {
|
|
|
839
1016
|
|
|
840
1017
|
declare class TGetResultSetMetadataReq {
|
|
841
1018
|
public operationHandle: TOperationHandle;
|
|
1019
|
+
public includeCloudResultFiles?: boolean;
|
|
842
1020
|
|
|
843
|
-
constructor(args?: { operationHandle: TOperationHandle; });
|
|
1021
|
+
constructor(args?: { operationHandle: TOperationHandle; includeCloudResultFiles?: boolean; });
|
|
844
1022
|
}
|
|
845
1023
|
|
|
846
1024
|
declare class TGetResultSetMetadataResp {
|
|
@@ -852,8 +1030,21 @@ declare class TGetResultSetMetadataResp {
|
|
|
852
1030
|
public cacheLookupResult?: TCacheLookupResult;
|
|
853
1031
|
public uncompressedBytes?: Int64;
|
|
854
1032
|
public compressedBytes?: Int64;
|
|
855
|
-
|
|
856
|
-
|
|
1033
|
+
public isStagingOperation?: boolean;
|
|
1034
|
+
public reasonForNoCloudFetch?: TCloudFetchDisabledReason;
|
|
1035
|
+
public resultFiles?: TDBSqlCloudResultFile[];
|
|
1036
|
+
public manifestFile?: string;
|
|
1037
|
+
public manifestFileFormat?: TDBSqlManifestFileFormat;
|
|
1038
|
+
public cacheLookupLatency?: Int64;
|
|
1039
|
+
public remoteCacheMissReason?: string;
|
|
1040
|
+
public fetchDisposition?: TDBSqlFetchDisposition;
|
|
1041
|
+
public remoteResultCacheEnabled?: boolean;
|
|
1042
|
+
public isServerless?: boolean;
|
|
1043
|
+
public resultDataFormat?: TDBSqlResultFormat;
|
|
1044
|
+
public truncatedByThriftLimit?: boolean;
|
|
1045
|
+
public resultByteLimit?: Int64;
|
|
1046
|
+
|
|
1047
|
+
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; });
|
|
857
1048
|
}
|
|
858
1049
|
|
|
859
1050
|
declare class TFetchResultsReq {
|
|
@@ -873,8 +1064,9 @@ declare class TFetchResultsResp {
|
|
|
873
1064
|
public hasMoreRows?: boolean;
|
|
874
1065
|
public results?: TRowSet;
|
|
875
1066
|
public resultSetMetadata?: TGetResultSetMetadataResp;
|
|
1067
|
+
public responseValidation?: Buffer;
|
|
876
1068
|
|
|
877
|
-
constructor(args?: { status: TStatus; hasMoreRows?: boolean; results?: TRowSet; resultSetMetadata?: TGetResultSetMetadataResp; });
|
|
1069
|
+
constructor(args?: { status: TStatus; hasMoreRows?: boolean; results?: TRowSet; resultSetMetadata?: TGetResultSetMetadataResp; responseValidation?: Buffer; });
|
|
878
1070
|
}
|
|
879
1071
|
|
|
880
1072
|
declare class TGetDelegationTokenReq {
|