@@ -76,17 +76,6 @@ declare enum TDBSqlArrowLayout {
7676 ARROW_STREAMING = 1 ,
7777}
7878
79- declare enum TOperationIdempotencyType {
80- UNKNOWN = 0 ,
81- NON_IDEMPOTENT = 1 ,
82- IDEMPOTENT = 2 ,
83- }
84-
85- declare enum TOperationTimeoutLevel {
86- CLUSTER = 0 ,
87- SESSION = 1 ,
88- }
89-
9079declare enum TStatusCode {
9180 SUCCESS_STATUS = 0 ,
9281 SUCCESS_WITH_INFO_STATUS = 1 ,
@@ -169,41 +158,13 @@ declare enum TGetInfoType {
169158 CLI_MAX_IDENTIFIER_LEN = 10005 ,
170159}
171160
172- declare enum TResultPersistenceMode {
173- ONLY_LARGE_RESULTS = 0 ,
174- ALL_QUERY_RESULTS = 1 ,
175- ALL_RESULTS = 2 ,
176- }
177-
178- declare enum TDBSqlCloseOperationReason {
179- NONE = 0 ,
180- COMMAND_INACTIVITY_TIMEOUT = 1 ,
181- CLOSE_SESSION = 2 ,
182- }
183-
184161declare enum TCacheLookupResult {
185162 CACHE_INELIGIBLE = 0 ,
186163 LOCAL_CACHE_HIT = 1 ,
187164 REMOTE_CACHE_HIT = 2 ,
188165 CACHE_MISS = 3 ,
189166}
190167
191- declare enum TCloudFetchDisabledReason {
192- ARROW_SUPPORT = 0 ,
193- CLOUD_FETCH_SUPPORT = 1 ,
194- PROTOCOL_VERSION = 2 ,
195- REGION_SUPPORT = 3 ,
196- BLOCKLISTED_OPERATION = 4 ,
197- SMALL_RESULT_SIZE = 5 ,
198- CUSTOMER_STORAGE_SUPPORT = 6 ,
199- UNKNOWN = 7 ,
200- METADATA_OPERATION = 8 ,
201- }
202-
203- declare enum TDBSqlManifestFileFormat {
204- THRIFT_GET_RESULT_SET_METADATA_RESP = 0 ,
205- }
206-
207168declare enum TFetchOrientation {
208169 FETCH_NEXT = 0 ,
209170 FETCH_PRIOR = 1 ,
@@ -213,13 +174,6 @@ declare enum TFetchOrientation {
213174 FETCH_LAST = 5 ,
214175}
215176
216- declare enum TDBSqlFetchDisposition {
217- DISPOSITION_UNSPECIFIED = 0 ,
218- DISPOSITION_INLINE = 1 ,
219- DISPOSITION_EXTERNAL_LINKS = 2 ,
220- DISPOSITION_INTERNAL_DBFS = 3 ,
221- }
222-
223177declare enum TJobExecutionStatus {
224178 IN_PROGRESS = 0 ,
225179 COMPLETE = 1 ,
@@ -483,19 +437,6 @@ declare class TSparkArrowResultLink {
483437 constructor ( args ?: { fileLink : string ; expiryTime : Int64 ; startRowOffset : Int64 ; rowCount : Int64 ; bytesNum : Int64 ; httpHeaders ?: { [ k : string ] : string ; } ; } ) ;
484438}
485439
486- declare class TDBSqlCloudResultFile {
487- public filePath ?: string ;
488- public startRowOffset ?: Int64 ;
489- public rowCount ?: Int64 ;
490- public uncompressedBytes ?: Int64 ;
491- public compressedBytes ?: Int64 ;
492- public fileLink ?: string ;
493- public linkExpiryTime ?: Int64 ;
494- public httpHeaders ?: { [ k : string ] : string ; } ;
495-
496- constructor ( args ?: { filePath ?: string ; startRowOffset ?: Int64 ; rowCount ?: Int64 ; uncompressedBytes ?: Int64 ; compressedBytes ?: Int64 ; fileLink ?: string ; linkExpiryTime ?: Int64 ; httpHeaders ?: { [ k : string ] : string ; } ; } ) ;
497- }
498-
499440declare class TRowSet {
500441 public startRowOffset : Int64 ;
501442 public rows : TRow [ ] ;
@@ -508,68 +449,6 @@ declare class TRowSet {
508449 constructor ( args ?: { startRowOffset : Int64 ; rows : TRow [ ] ; columns ?: TColumn [ ] ; binaryColumns ?: Buffer ; columnCount ?: number ; arrowBatches ?: TSparkArrowBatch [ ] ; resultLinks ?: TSparkArrowResultLink [ ] ; } ) ;
509450}
510451
511- declare class TDBSqlTempView {
512- public name ?: string ;
513- public sqlStatement ?: string ;
514- public properties ?: { [ k : string ] : string ; } ;
515- public viewSchema ?: string ;
516-
517- constructor ( args ?: { name ?: string ; sqlStatement ?: string ; properties ?: { [ k : string ] : string ; } ; viewSchema ?: string ; } ) ;
518- }
519-
520- declare class TDBSqlSessionCapabilities {
521- public supportsMultipleCatalogs ?: boolean ;
522-
523- constructor ( args ?: { supportsMultipleCatalogs ?: boolean ; } ) ;
524- }
525-
526- declare class TExpressionInfo {
527- public className ?: string ;
528- public usage ?: string ;
529- public name ?: string ;
530- public extended ?: string ;
531- public db ?: string ;
532- public arguments ?: string ;
533- public examples ?: string ;
534- public note ?: string ;
535- public group ?: string ;
536- public since ?: string ;
537- public deprecated ?: string ;
538- public source ?: string ;
539-
540- 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 ; } ) ;
541- }
542-
543- declare class TDBSqlConfValue {
544- public value ?: string ;
545-
546- constructor ( args ?: { value ?: string ; } ) ;
547- }
548-
549- declare class TSQLVariable {
550- public catalogName ?: string ;
551- public schemaName ?: string ;
552- public variableName ?: string ;
553- public defaultExpressionSQL ?: string ;
554- public variableDataType ?: string ;
555- public currentValue ?: string ;
556-
557- constructor ( args ?: { catalogName ?: string ; schemaName ?: string ; variableName ?: string ; defaultExpressionSQL ?: string ; variableDataType ?: string ; currentValue ?: string ; } ) ;
558- }
559-
560- declare class TDBSqlSessionConf {
561- public confs ?: { [ k : string ] : string ; } ;
562- public tempViews ?: TDBSqlTempView [ ] ;
563- public currentDatabase ?: string ;
564- public currentCatalog ?: string ;
565- public sessionCapabilities ?: TDBSqlSessionCapabilities ;
566- public expressionsInfos ?: TExpressionInfo [ ] ;
567- public internalConfs ?: { [ k : string ] : TDBSqlConfValue ; } ;
568- public tempVariables ?: TSQLVariable [ ] ;
569-
570- constructor ( args ?: { confs ?: { [ k : string ] : string ; } ; tempViews ?: TDBSqlTempView [ ] ; currentDatabase ?: string ; currentCatalog ?: string ; sessionCapabilities ?: TDBSqlSessionCapabilities ; expressionsInfos ?: TExpressionInfo [ ] ; internalConfs ?: { [ k : string ] : TDBSqlConfValue ; } ; tempVariables ?: TSQLVariable [ ] ; } ) ;
571- }
572-
573452declare class TStatus {
574453 public statusCode : TStatusCode ;
575454 public infoMessages ?: string [ ] ;
@@ -720,12 +599,6 @@ declare class TExecuteStatementReq {
720599 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 ; } ) ;
721600}
722601
723- declare class TDBSqlStatement {
724- public statement ?: string ;
725-
726- constructor ( args ?: { statement ?: string ; } ) ;
727- }
728-
729602declare class TSparkParameterValue {
730603 public stringValue ?: string ;
731604 public doubleValue ?: number ;
0 commit comments