Skip to content

Commit 3971473

Browse files
Clean thrift file
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent bcd48ab commit 3971473

File tree

3 files changed

+341
-1582
lines changed

3 files changed

+341
-1582
lines changed

thrift/TCLIService.d.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,12 @@ import TTypeId = ttypes.TTypeId
1515
import TSparkRowSetType = ttypes.TSparkRowSetType
1616
import TDBSqlCompressionCodec = ttypes.TDBSqlCompressionCodec
1717
import TDBSqlArrowLayout = ttypes.TDBSqlArrowLayout
18-
import TOperationIdempotencyType = ttypes.TOperationIdempotencyType
19-
import TOperationTimeoutLevel = ttypes.TOperationTimeoutLevel
2018
import TStatusCode = ttypes.TStatusCode
2119
import TOperationState = ttypes.TOperationState
2220
import TOperationType = ttypes.TOperationType
2321
import TGetInfoType = ttypes.TGetInfoType
24-
import TResultPersistenceMode = ttypes.TResultPersistenceMode
25-
import TDBSqlCloseOperationReason = ttypes.TDBSqlCloseOperationReason
2622
import TCacheLookupResult = ttypes.TCacheLookupResult
27-
import TCloudFetchDisabledReason = ttypes.TCloudFetchDisabledReason
28-
import TDBSqlManifestFileFormat = ttypes.TDBSqlManifestFileFormat
2923
import TFetchOrientation = ttypes.TFetchOrientation
30-
import TDBSqlFetchDisposition = ttypes.TDBSqlFetchDisposition
3124
import TJobExecutionStatus = ttypes.TJobExecutionStatus
3225
import PRIMITIVE_TYPES = ttypes.PRIMITIVE_TYPES
3326
import COMPLEX_TYPES = ttypes.COMPLEX_TYPES
@@ -72,14 +65,7 @@ import TDBSqlArrowFormat = ttypes.TDBSqlArrowFormat
7265
import TDBSqlResultFormat = ttypes.TDBSqlResultFormat
7366
import TSparkArrowBatch = ttypes.TSparkArrowBatch
7467
import TSparkArrowResultLink = ttypes.TSparkArrowResultLink
75-
import TDBSqlCloudResultFile = ttypes.TDBSqlCloudResultFile
7668
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 TSQLVariable = ttypes.TSQLVariable
82-
import TDBSqlSessionConf = ttypes.TDBSqlSessionConf
8369
import TStatus = ttypes.TStatus
8470
import TNamespace = ttypes.TNamespace
8571
import THandleIdentifier = ttypes.THandleIdentifier
@@ -96,7 +82,6 @@ import TSparkGetDirectResults = ttypes.TSparkGetDirectResults
9682
import TSparkDirectResults = ttypes.TSparkDirectResults
9783
import TSparkArrowTypes = ttypes.TSparkArrowTypes
9884
import TExecuteStatementReq = ttypes.TExecuteStatementReq
99-
import TDBSqlStatement = ttypes.TDBSqlStatement
10085
import TSparkParameterValue = ttypes.TSparkParameterValue
10186
import TSparkParameterValueArg = ttypes.TSparkParameterValueArg
10287
import TSparkParameter = ttypes.TSparkParameter

thrift/TCLIService_types.d.ts

Lines changed: 0 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
9079
declare 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-
184161
declare 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-
207168
declare 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-
223177
declare 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-
499440
declare 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-
573452
declare 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-
729602
declare class TSparkParameterValue {
730603
public stringValue?: string;
731604
public doubleValue?: number;

0 commit comments

Comments
 (0)