@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.
- package/dist/DBSQLClient.d.ts +7 -6
- package/dist/DBSQLClient.js +91 -59
- package/dist/DBSQLClient.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/globalConfig.d.ts +5 -0
- package/dist/globalConfig.js +5 -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.js +3 -0
- package/dist/result/ArrowResult.js.map +1 -1
- 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 +4 -2
- package/thrift/TCLIService.d.ts +17 -0
- package/thrift/TCLIService_types.d.ts +185 -13
- package/thrift/TCLIService_types.js +2013 -279
- 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;
|
|
@@ -401,6 +473,18 @@ declare class TSparkArrowResultLink {
|
|
|
401
473
|
constructor(args?: { fileLink: string; expiryTime: Int64; startRowOffset: Int64; rowCount: Int64; bytesNum: Int64; });
|
|
402
474
|
}
|
|
403
475
|
|
|
476
|
+
declare class TDBSqlCloudResultFile {
|
|
477
|
+
public filePath?: string;
|
|
478
|
+
public startRowOffset?: Int64;
|
|
479
|
+
public rowCount?: Int64;
|
|
480
|
+
public uncompressedBytes?: Int64;
|
|
481
|
+
public compressedBytes?: Int64;
|
|
482
|
+
public fileLink?: string;
|
|
483
|
+
public linkExpiryTime?: Int64;
|
|
484
|
+
|
|
485
|
+
constructor(args?: { filePath?: string; startRowOffset?: Int64; rowCount?: Int64; uncompressedBytes?: Int64; compressedBytes?: Int64; fileLink?: string; linkExpiryTime?: Int64; });
|
|
486
|
+
}
|
|
487
|
+
|
|
404
488
|
declare class TRowSet {
|
|
405
489
|
public startRowOffset: Int64;
|
|
406
490
|
public rows: TRow[];
|
|
@@ -409,8 +493,9 @@ declare class TRowSet {
|
|
|
409
493
|
public columnCount?: number;
|
|
410
494
|
public arrowBatches?: TSparkArrowBatch[];
|
|
411
495
|
public resultLinks?: TSparkArrowResultLink[];
|
|
496
|
+
public cloudFetchResults?: TDBSqlCloudResultFile[];
|
|
412
497
|
|
|
413
|
-
constructor(args?: { startRowOffset: Int64; rows: TRow[]; columns?: TColumn[]; binaryColumns?: Buffer; columnCount?: number; arrowBatches?: TSparkArrowBatch[]; resultLinks?: TSparkArrowResultLink[]; });
|
|
498
|
+
constructor(args?: { startRowOffset: Int64; rows: TRow[]; columns?: TColumn[]; binaryColumns?: Buffer; columnCount?: number; arrowBatches?: TSparkArrowBatch[]; resultLinks?: TSparkArrowResultLink[]; cloudFetchResults?: TDBSqlCloudResultFile[]; });
|
|
414
499
|
}
|
|
415
500
|
|
|
416
501
|
declare class TDBSqlTempView {
|
|
@@ -428,14 +513,39 @@ declare class TDBSqlSessionCapabilities {
|
|
|
428
513
|
constructor(args?: { supportsMultipleCatalogs?: boolean; });
|
|
429
514
|
}
|
|
430
515
|
|
|
516
|
+
declare class TExpressionInfo {
|
|
517
|
+
public className?: string;
|
|
518
|
+
public usage?: string;
|
|
519
|
+
public name?: string;
|
|
520
|
+
public extended?: string;
|
|
521
|
+
public db?: string;
|
|
522
|
+
public arguments?: string;
|
|
523
|
+
public examples?: string;
|
|
524
|
+
public note?: string;
|
|
525
|
+
public group?: string;
|
|
526
|
+
public since?: string;
|
|
527
|
+
public deprecated?: string;
|
|
528
|
+
public source?: string;
|
|
529
|
+
|
|
530
|
+
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; });
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
declare class TDBSqlConfValue {
|
|
534
|
+
public value?: string;
|
|
535
|
+
|
|
536
|
+
constructor(args?: { value?: string; });
|
|
537
|
+
}
|
|
538
|
+
|
|
431
539
|
declare class TDBSqlSessionConf {
|
|
432
540
|
public confs?: { [k: string]: string; };
|
|
433
541
|
public tempViews?: TDBSqlTempView[];
|
|
434
542
|
public currentDatabase?: string;
|
|
435
543
|
public currentCatalog?: string;
|
|
436
544
|
public sessionCapabilities?: TDBSqlSessionCapabilities;
|
|
545
|
+
public expressionsInfos?: TExpressionInfo[];
|
|
546
|
+
public internalConfs?: { [k: string]: TDBSqlConfValue; };
|
|
437
547
|
|
|
438
|
-
constructor(args?: { confs?: { [k: string]: string; }; tempViews?: TDBSqlTempView[]; currentDatabase?: string; currentCatalog?: string; sessionCapabilities?: TDBSqlSessionCapabilities; });
|
|
548
|
+
constructor(args?: { confs?: { [k: string]: string; }; tempViews?: TDBSqlTempView[]; currentDatabase?: string; currentCatalog?: string; sessionCapabilities?: TDBSqlSessionCapabilities; expressionsInfos?: TExpressionInfo[]; internalConfs?: { [k: string]: TDBSqlConfValue; }; });
|
|
439
549
|
}
|
|
440
550
|
|
|
441
551
|
declare class TStatus {
|
|
@@ -444,8 +554,10 @@ declare class TStatus {
|
|
|
444
554
|
public sqlState?: string;
|
|
445
555
|
public errorCode?: number;
|
|
446
556
|
public errorMessage?: string;
|
|
557
|
+
public displayMessage?: string;
|
|
558
|
+
public responseValidation?: Buffer;
|
|
447
559
|
|
|
448
|
-
constructor(args?: { statusCode: TStatusCode; infoMessages?: string[]; sqlState?: string; errorCode?: number; errorMessage?: string; });
|
|
560
|
+
constructor(args?: { statusCode: TStatusCode; infoMessages?: string[]; sqlState?: string; errorCode?: number; errorMessage?: string; displayMessage?: string; responseValidation?: Buffer; });
|
|
449
561
|
}
|
|
450
562
|
|
|
451
563
|
declare class TNamespace {
|
|
@@ -458,8 +570,9 @@ declare class TNamespace {
|
|
|
458
570
|
declare class THandleIdentifier {
|
|
459
571
|
public guid: Buffer;
|
|
460
572
|
public secret: Buffer;
|
|
573
|
+
public executionVersion?: number;
|
|
461
574
|
|
|
462
|
-
constructor(args?: { guid: Buffer; secret: Buffer; });
|
|
575
|
+
constructor(args?: { guid: Buffer; secret: Buffer; executionVersion?: number; });
|
|
463
576
|
}
|
|
464
577
|
|
|
465
578
|
declare class TSessionHandle {
|
|
@@ -564,8 +677,9 @@ declare class TSparkArrowTypes {
|
|
|
564
677
|
public decimalAsArrow?: boolean;
|
|
565
678
|
public complexTypesAsArrow?: boolean;
|
|
566
679
|
public intervalTypesAsArrow?: boolean;
|
|
680
|
+
public nullTypeAsArrow?: boolean;
|
|
567
681
|
|
|
568
|
-
constructor(args?: { timestampAsArrow?: boolean; decimalAsArrow?: boolean; complexTypesAsArrow?: boolean; intervalTypesAsArrow?: boolean; });
|
|
682
|
+
constructor(args?: { timestampAsArrow?: boolean; decimalAsArrow?: boolean; complexTypesAsArrow?: boolean; intervalTypesAsArrow?: boolean; nullTypeAsArrow?: boolean; });
|
|
569
683
|
}
|
|
570
684
|
|
|
571
685
|
declare class TExecuteStatementReq {
|
|
@@ -580,13 +694,49 @@ declare class TExecuteStatementReq {
|
|
|
580
694
|
public canDecompressLZ4Result?: boolean;
|
|
581
695
|
public maxBytesPerFile?: Int64;
|
|
582
696
|
public useArrowNativeTypes?: TSparkArrowTypes;
|
|
697
|
+
public resultRowLimit?: Int64;
|
|
698
|
+
public parameters?: TSparkParameter[];
|
|
583
699
|
public operationId?: THandleIdentifier;
|
|
584
700
|
public sessionConf?: TDBSqlSessionConf;
|
|
585
701
|
public rejectHighCostQueries?: boolean;
|
|
586
702
|
public estimatedCost?: number;
|
|
587
703
|
public executionVersion?: number;
|
|
704
|
+
public requestValidation?: Buffer;
|
|
705
|
+
public resultPersistenceMode?: TResultPersistenceMode;
|
|
706
|
+
public trimArrowBatchesToLimit?: boolean;
|
|
707
|
+
public fetchDisposition?: TDBSqlFetchDisposition;
|
|
708
|
+
public enforceResultPersistenceMode?: boolean;
|
|
709
|
+
public statementList?: TDBSqlStatement[];
|
|
710
|
+
public persistResultManifest?: boolean;
|
|
711
|
+
public resultRetentionSeconds?: Int64;
|
|
712
|
+
public resultByteLimit?: Int64;
|
|
713
|
+
public resultDataFormat?: TDBSqlResultFormat;
|
|
714
|
+
public originatingClientIdentity?: string;
|
|
588
715
|
|
|
589
|
-
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; operationId?: THandleIdentifier; sessionConf?: TDBSqlSessionConf; rejectHighCostQueries?: boolean; estimatedCost?: number; executionVersion?: number; });
|
|
716
|
+
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[]; 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; });
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
declare class TDBSqlStatement {
|
|
720
|
+
public statement?: string;
|
|
721
|
+
|
|
722
|
+
constructor(args?: { statement?: string; });
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
declare class TSparkParameterValue {
|
|
726
|
+
public stringValue?: string;
|
|
727
|
+
public doubleValue?: number;
|
|
728
|
+
public booleanValue?: boolean;
|
|
729
|
+
|
|
730
|
+
constructor(args?: { stringValue?: string; doubleValue?: number; booleanValue?: boolean; });
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
declare class TSparkParameter {
|
|
734
|
+
public ordinal?: number;
|
|
735
|
+
public name?: string;
|
|
736
|
+
public type?: string;
|
|
737
|
+
public value?: TSparkParameterValue;
|
|
738
|
+
|
|
739
|
+
constructor(args?: { ordinal?: number; name?: string; type?: string; value?: TSparkParameterValue; });
|
|
590
740
|
}
|
|
591
741
|
|
|
592
742
|
declare class TExecuteStatementResp {
|
|
@@ -599,8 +749,11 @@ declare class TExecuteStatementResp {
|
|
|
599
749
|
public sessionConf?: TDBSqlSessionConf;
|
|
600
750
|
public currentClusterLoad?: number;
|
|
601
751
|
public idempotencyType?: TOperationIdempotencyType;
|
|
752
|
+
public remoteResultCacheEnabled?: boolean;
|
|
753
|
+
public isServerless?: boolean;
|
|
754
|
+
public operationHandles?: TOperationHandle[];
|
|
602
755
|
|
|
603
|
-
constructor(args?: { status: TStatus; operationHandle?: TOperationHandle; directResults?: TSparkDirectResults; executionRejected?: boolean; maxClusterCapacity?: number; queryCost?: number; sessionConf?: TDBSqlSessionConf; currentClusterLoad?: number; idempotencyType?: TOperationIdempotencyType; });
|
|
756
|
+
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
757
|
}
|
|
605
758
|
|
|
606
759
|
declare class TGetTypeInfoReq {
|
|
@@ -808,15 +961,20 @@ declare class TGetOperationStatusResp {
|
|
|
808
961
|
public numModifiedRows?: Int64;
|
|
809
962
|
public displayMessage?: string;
|
|
810
963
|
public diagnosticInfo?: string;
|
|
964
|
+
public responseValidation?: Buffer;
|
|
965
|
+
public idempotencyType?: TOperationIdempotencyType;
|
|
966
|
+
public statementTimeout?: Int64;
|
|
967
|
+
public statementTimeoutLevel?: TOperationTimeoutLevel;
|
|
811
968
|
|
|
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; });
|
|
969
|
+
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; responseValidation?: Buffer; idempotencyType?: TOperationIdempotencyType; statementTimeout?: Int64; statementTimeoutLevel?: TOperationTimeoutLevel; });
|
|
813
970
|
}
|
|
814
971
|
|
|
815
972
|
declare class TCancelOperationReq {
|
|
816
973
|
public operationHandle: TOperationHandle;
|
|
817
974
|
public executionVersion?: number;
|
|
975
|
+
public replacedByNextAttempt?: boolean;
|
|
818
976
|
|
|
819
|
-
constructor(args?: { operationHandle: TOperationHandle; executionVersion?: number; });
|
|
977
|
+
constructor(args?: { operationHandle: TOperationHandle; executionVersion?: number; replacedByNextAttempt?: boolean; });
|
|
820
978
|
}
|
|
821
979
|
|
|
822
980
|
declare class TCancelOperationResp {
|
|
@@ -839,8 +997,9 @@ declare class TCloseOperationResp {
|
|
|
839
997
|
|
|
840
998
|
declare class TGetResultSetMetadataReq {
|
|
841
999
|
public operationHandle: TOperationHandle;
|
|
1000
|
+
public includeCloudResultFiles?: boolean;
|
|
842
1001
|
|
|
843
|
-
constructor(args?: { operationHandle: TOperationHandle; });
|
|
1002
|
+
constructor(args?: { operationHandle: TOperationHandle; includeCloudResultFiles?: boolean; });
|
|
844
1003
|
}
|
|
845
1004
|
|
|
846
1005
|
declare class TGetResultSetMetadataResp {
|
|
@@ -852,8 +1011,20 @@ declare class TGetResultSetMetadataResp {
|
|
|
852
1011
|
public cacheLookupResult?: TCacheLookupResult;
|
|
853
1012
|
public uncompressedBytes?: Int64;
|
|
854
1013
|
public compressedBytes?: Int64;
|
|
855
|
-
|
|
856
|
-
|
|
1014
|
+
public isStagingOperation?: boolean;
|
|
1015
|
+
public reasonForNoCloudFetch?: TCloudFetchDisabledReason;
|
|
1016
|
+
public resultFiles?: TDBSqlCloudResultFile[];
|
|
1017
|
+
public manifestFile?: string;
|
|
1018
|
+
public manifestFileFormat?: TDBSqlManifestFileFormat;
|
|
1019
|
+
public cacheLookupLatency?: Int64;
|
|
1020
|
+
public remoteCacheMissReason?: string;
|
|
1021
|
+
public fetchDisposition?: TDBSqlFetchDisposition;
|
|
1022
|
+
public remoteResultCacheEnabled?: boolean;
|
|
1023
|
+
public isServerless?: boolean;
|
|
1024
|
+
public resultDataFormat?: TDBSqlResultFormat;
|
|
1025
|
+
public truncatedByThriftLimit?: boolean;
|
|
1026
|
+
|
|
1027
|
+
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; });
|
|
857
1028
|
}
|
|
858
1029
|
|
|
859
1030
|
declare class TFetchResultsReq {
|
|
@@ -873,8 +1044,9 @@ declare class TFetchResultsResp {
|
|
|
873
1044
|
public hasMoreRows?: boolean;
|
|
874
1045
|
public results?: TRowSet;
|
|
875
1046
|
public resultSetMetadata?: TGetResultSetMetadataResp;
|
|
1047
|
+
public responseValidation?: Buffer;
|
|
876
1048
|
|
|
877
|
-
constructor(args?: { status: TStatus; hasMoreRows?: boolean; results?: TRowSet; resultSetMetadata?: TGetResultSetMetadataResp; });
|
|
1049
|
+
constructor(args?: { status: TStatus; hasMoreRows?: boolean; results?: TRowSet; resultSetMetadata?: TGetResultSetMetadataResp; responseValidation?: Buffer; });
|
|
878
1050
|
}
|
|
879
1051
|
|
|
880
1052
|
declare class TGetDelegationTokenReq {
|