@databricks/sql 1.8.4 → 1.9.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 -5
- package/dist/DBSQLClient.js +70 -82
- package/dist/DBSQLClient.js.map +1 -1
- package/dist/DBSQLLogger.js +2 -13
- package/dist/DBSQLLogger.js.map +1 -1
- package/dist/DBSQLOperation.d.ts +6 -1
- package/dist/DBSQLOperation.js +223 -234
- package/dist/DBSQLOperation.js.map +1 -1
- package/dist/DBSQLSession.d.ts +2 -0
- package/dist/DBSQLSession.js +276 -229
- package/dist/DBSQLSession.js.map +1 -1
- package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.d.ts +7 -2
- package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.js +91 -104
- package/dist/connection/auth/DatabricksOAuth/AuthorizationCode.js.map +1 -1
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.js +114 -134
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.js.map +1 -1
- package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.js +4 -17
- package/dist/connection/auth/DatabricksOAuth/OAuthPersistence.js.map +1 -1
- package/dist/connection/auth/DatabricksOAuth/index.d.ts +3 -2
- package/dist/connection/auth/DatabricksOAuth/index.js +19 -22
- package/dist/connection/auth/DatabricksOAuth/index.js.map +1 -1
- package/dist/connection/auth/PlainHttpAuthentication.js +5 -13
- package/dist/connection/auth/PlainHttpAuthentication.js.map +1 -1
- package/dist/connection/connections/HttpConnection.d.ts +1 -1
- package/dist/connection/connections/HttpConnection.js +49 -46
- package/dist/connection/connections/HttpConnection.js.map +1 -1
- package/dist/connection/connections/HttpRetryPolicy.d.ts +1 -1
- package/dist/connection/connections/HttpRetryPolicy.js +28 -41
- package/dist/connection/connections/HttpRetryPolicy.js.map +1 -1
- package/dist/connection/connections/NullRetryPolicy.js +5 -18
- package/dist/connection/connections/NullRetryPolicy.js.map +1 -1
- package/dist/connection/connections/ThriftHttpConnection.js +22 -20
- package/dist/connection/connections/ThriftHttpConnection.js.map +1 -1
- package/dist/connection/contracts/IConnectionProvider.d.ts +1 -1
- package/dist/contracts/IClientContext.d.ts +4 -2
- package/dist/contracts/IDBSQLSession.d.ts +17 -13
- package/dist/contracts/IOperation.d.ts +19 -0
- package/dist/contracts/IThriftClient.d.ts +8 -0
- package/dist/contracts/IThriftClient.js +3 -0
- package/dist/contracts/IThriftClient.js.map +1 -0
- package/dist/dto/InfoValue.d.ts +1 -2
- package/dist/hive/Commands/BaseCommand.d.ts +3 -4
- package/dist/hive/Commands/BaseCommand.js +22 -33
- package/dist/hive/Commands/BaseCommand.js.map +1 -1
- package/dist/hive/Commands/CancelDelegationTokenCommand.d.ts +4 -1
- package/dist/hive/Commands/CancelDelegationTokenCommand.js.map +1 -1
- package/dist/hive/Commands/CancelOperationCommand.d.ts +4 -1
- package/dist/hive/Commands/CancelOperationCommand.js.map +1 -1
- package/dist/hive/Commands/CloseOperationCommand.d.ts +4 -1
- package/dist/hive/Commands/CloseOperationCommand.js.map +1 -1
- package/dist/hive/Commands/CloseSessionCommand.d.ts +4 -1
- package/dist/hive/Commands/CloseSessionCommand.js.map +1 -1
- package/dist/hive/Commands/ExecuteStatementCommand.d.ts +4 -1
- package/dist/hive/Commands/ExecuteStatementCommand.js.map +1 -1
- package/dist/hive/Commands/FetchResultsCommand.d.ts +4 -1
- package/dist/hive/Commands/FetchResultsCommand.js.map +1 -1
- package/dist/hive/Commands/GetCatalogsCommand.d.ts +4 -1
- package/dist/hive/Commands/GetCatalogsCommand.js.map +1 -1
- package/dist/hive/Commands/GetColumnsCommand.d.ts +4 -1
- package/dist/hive/Commands/GetColumnsCommand.js.map +1 -1
- package/dist/hive/Commands/GetCrossReferenceCommand.d.ts +4 -1
- package/dist/hive/Commands/GetCrossReferenceCommand.js.map +1 -1
- package/dist/hive/Commands/GetDelegationTokenCommand.d.ts +4 -1
- package/dist/hive/Commands/GetDelegationTokenCommand.js.map +1 -1
- package/dist/hive/Commands/GetFunctionsCommand.d.ts +4 -1
- package/dist/hive/Commands/GetFunctionsCommand.js.map +1 -1
- package/dist/hive/Commands/GetInfoCommand.d.ts +4 -1
- package/dist/hive/Commands/GetInfoCommand.js.map +1 -1
- package/dist/hive/Commands/GetOperationStatusCommand.d.ts +4 -1
- package/dist/hive/Commands/GetOperationStatusCommand.js.map +1 -1
- package/dist/hive/Commands/GetPrimaryKeysCommand.d.ts +4 -1
- package/dist/hive/Commands/GetPrimaryKeysCommand.js.map +1 -1
- package/dist/hive/Commands/GetResultSetMetadataCommand.d.ts +4 -1
- package/dist/hive/Commands/GetResultSetMetadataCommand.js.map +1 -1
- package/dist/hive/Commands/GetSchemasCommand.d.ts +4 -1
- package/dist/hive/Commands/GetSchemasCommand.js.map +1 -1
- package/dist/hive/Commands/GetTableTypesCommand.d.ts +4 -1
- package/dist/hive/Commands/GetTableTypesCommand.js.map +1 -1
- package/dist/hive/Commands/GetTablesCommand.d.ts +4 -1
- package/dist/hive/Commands/GetTablesCommand.js.map +1 -1
- package/dist/hive/Commands/GetTypeInfoCommand.d.ts +4 -1
- package/dist/hive/Commands/GetTypeInfoCommand.js.map +1 -1
- package/dist/hive/Commands/OpenSessionCommand.d.ts +4 -1
- package/dist/hive/Commands/OpenSessionCommand.js.map +1 -1
- package/dist/hive/Commands/RenewDelegationTokenCommand.d.ts +4 -1
- package/dist/hive/Commands/RenewDelegationTokenCommand.js.map +1 -1
- package/dist/hive/HiveDriver.js +104 -155
- package/dist/hive/HiveDriver.js.map +1 -1
- package/dist/polyfills.d.ts +1 -1
- package/dist/polyfills.js +1 -1
- package/dist/polyfills.js.map +1 -1
- package/dist/result/ArrowResultConverter.d.ts +1 -1
- package/dist/result/ArrowResultConverter.js +69 -84
- package/dist/result/ArrowResultConverter.js.map +1 -1
- package/dist/result/ArrowResultHandler.d.ts +1 -1
- package/dist/result/ArrowResultHandler.js +28 -41
- package/dist/result/ArrowResultHandler.js.map +1 -1
- package/dist/result/CloudFetchResultHandler.d.ts +1 -1
- package/dist/result/CloudFetchResultHandler.js +48 -65
- package/dist/result/CloudFetchResultHandler.js.map +1 -1
- package/dist/result/JsonResultHandler.d.ts +0 -1
- package/dist/result/JsonResultHandler.js +14 -41
- package/dist/result/JsonResultHandler.js.map +1 -1
- package/dist/result/ResultSlicer.js +40 -53
- package/dist/result/ResultSlicer.js.map +1 -1
- package/dist/result/RowSetProvider.d.ts +4 -0
- package/dist/result/RowSetProvider.js +42 -59
- package/dist/result/RowSetProvider.js.map +1 -1
- package/dist/result/utils.d.ts +2 -1
- package/dist/result/utils.js +9 -1
- package/dist/result/utils.js.map +1 -1
- package/dist/utils/CloseableCollection.js +7 -18
- package/dist/utils/CloseableCollection.js.map +1 -1
- package/dist/utils/OperationIterator.d.ts +23 -0
- package/dist/utils/OperationIterator.js +71 -0
- package/dist/utils/OperationIterator.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +12 -7
- package/thrift/TCLIService.d.ts +0 -42
- package/dist/hive/Types/index.d.ts +0 -18
- package/dist/hive/Types/index.js +0 -25
- package/dist/hive/Types/index.js.map +0 -1
|
@@ -8,7 +8,7 @@ export interface HttpTransactionDetails {
|
|
|
8
8
|
}
|
|
9
9
|
export default interface IConnectionProvider {
|
|
10
10
|
getThriftConnection(): Promise<any>;
|
|
11
|
-
getAgent(): Promise<http.Agent>;
|
|
11
|
+
getAgent(): Promise<http.Agent | undefined>;
|
|
12
12
|
setHeaders(headers: HeadersInit): void;
|
|
13
13
|
getRetryPolicy(): Promise<IRetryPolicy<HttpTransactionDetails>>;
|
|
14
14
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import IDBSQLLogger from './IDBSQLLogger';
|
|
2
2
|
import IDriver from './IDriver';
|
|
3
3
|
import IConnectionProvider from '../connection/contracts/IConnectionProvider';
|
|
4
|
-
import
|
|
4
|
+
import IThriftClient from './IThriftClient';
|
|
5
5
|
export interface ClientConfig {
|
|
6
|
+
directResultsDefaultMaxRows: number;
|
|
7
|
+
fetchChunkDefaultMaxRows: number;
|
|
6
8
|
arrowEnabled?: boolean;
|
|
7
9
|
useArrowNativeTypes?: boolean;
|
|
8
10
|
socketTimeout: number;
|
|
@@ -18,6 +20,6 @@ export default interface IClientContext {
|
|
|
18
20
|
getConfig(): ClientConfig;
|
|
19
21
|
getLogger(): IDBSQLLogger;
|
|
20
22
|
getConnectionProvider(): Promise<IConnectionProvider>;
|
|
21
|
-
getClient(): Promise<
|
|
23
|
+
getClient(): Promise<IThriftClient>;
|
|
22
24
|
getDriver(): Promise<IDriver>;
|
|
23
25
|
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import Int64 from 'node-int64';
|
|
2
2
|
import IOperation from './IOperation';
|
|
3
3
|
import Status from '../dto/Status';
|
|
4
4
|
import InfoValue from '../dto/InfoValue';
|
|
5
|
-
import { Int64 } from '../hive/Types';
|
|
6
5
|
import { DBSQLParameter, DBSQLParameterValue } from '../DBSQLParameter';
|
|
7
6
|
export type ExecuteStatementOptions = {
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The number of seconds after which the query will time out on the server.
|
|
9
|
+
* Effective only with Compute clusters. For SQL Warehouses, `STATEMENT_TIMEOUT`
|
|
10
|
+
* configuration should be used
|
|
11
|
+
*/
|
|
12
|
+
queryTimeout?: number | bigint | Int64;
|
|
9
13
|
/**
|
|
10
14
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
11
15
|
*/
|
|
12
16
|
runAsync?: boolean;
|
|
13
|
-
maxRows?: number | null;
|
|
17
|
+
maxRows?: number | bigint | Int64 | null;
|
|
14
18
|
useCloudFetch?: boolean;
|
|
15
19
|
stagingAllowedLocalPath?: string | string[];
|
|
16
20
|
namedParameters?: Record<string, DBSQLParameter | DBSQLParameterValue>;
|
|
@@ -21,14 +25,14 @@ export type TypeInfoRequest = {
|
|
|
21
25
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
22
26
|
*/
|
|
23
27
|
runAsync?: boolean;
|
|
24
|
-
maxRows?: number | null;
|
|
28
|
+
maxRows?: number | bigint | Int64 | null;
|
|
25
29
|
};
|
|
26
30
|
export type CatalogsRequest = {
|
|
27
31
|
/**
|
|
28
32
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
29
33
|
*/
|
|
30
34
|
runAsync?: boolean;
|
|
31
|
-
maxRows?: number | null;
|
|
35
|
+
maxRows?: number | bigint | Int64 | null;
|
|
32
36
|
};
|
|
33
37
|
export type SchemasRequest = {
|
|
34
38
|
catalogName?: string;
|
|
@@ -37,7 +41,7 @@ export type SchemasRequest = {
|
|
|
37
41
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
38
42
|
*/
|
|
39
43
|
runAsync?: boolean;
|
|
40
|
-
maxRows?: number | null;
|
|
44
|
+
maxRows?: number | bigint | Int64 | null;
|
|
41
45
|
};
|
|
42
46
|
export type TablesRequest = {
|
|
43
47
|
catalogName?: string;
|
|
@@ -48,14 +52,14 @@ export type TablesRequest = {
|
|
|
48
52
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
49
53
|
*/
|
|
50
54
|
runAsync?: boolean;
|
|
51
|
-
maxRows?: number | null;
|
|
55
|
+
maxRows?: number | bigint | Int64 | null;
|
|
52
56
|
};
|
|
53
57
|
export type TableTypesRequest = {
|
|
54
58
|
/**
|
|
55
59
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
56
60
|
*/
|
|
57
61
|
runAsync?: boolean;
|
|
58
|
-
maxRows?: number | null;
|
|
62
|
+
maxRows?: number | bigint | Int64 | null;
|
|
59
63
|
};
|
|
60
64
|
export type ColumnsRequest = {
|
|
61
65
|
catalogName?: string;
|
|
@@ -66,7 +70,7 @@ export type ColumnsRequest = {
|
|
|
66
70
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
67
71
|
*/
|
|
68
72
|
runAsync?: boolean;
|
|
69
|
-
maxRows?: number | null;
|
|
73
|
+
maxRows?: number | bigint | Int64 | null;
|
|
70
74
|
};
|
|
71
75
|
export type FunctionsRequest = {
|
|
72
76
|
catalogName?: string;
|
|
@@ -76,7 +80,7 @@ export type FunctionsRequest = {
|
|
|
76
80
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
77
81
|
*/
|
|
78
82
|
runAsync?: boolean;
|
|
79
|
-
maxRows?: number | null;
|
|
83
|
+
maxRows?: number | bigint | Int64 | null;
|
|
80
84
|
};
|
|
81
85
|
export type PrimaryKeysRequest = {
|
|
82
86
|
catalogName?: string;
|
|
@@ -86,7 +90,7 @@ export type PrimaryKeysRequest = {
|
|
|
86
90
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
87
91
|
*/
|
|
88
92
|
runAsync?: boolean;
|
|
89
|
-
maxRows?: number | null;
|
|
93
|
+
maxRows?: number | bigint | Int64 | null;
|
|
90
94
|
};
|
|
91
95
|
export type CrossReferenceRequest = {
|
|
92
96
|
parentCatalogName: string;
|
|
@@ -99,7 +103,7 @@ export type CrossReferenceRequest = {
|
|
|
99
103
|
* @deprecated This option is no longer supported and will be removed in future releases
|
|
100
104
|
*/
|
|
101
105
|
runAsync?: boolean;
|
|
102
|
-
maxRows?: number | null;
|
|
106
|
+
maxRows?: number | bigint | Int64 | null;
|
|
103
107
|
};
|
|
104
108
|
export default interface IDBSQLSession {
|
|
105
109
|
/**
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Readable, ReadableOptions } from 'node:stream';
|
|
1
3
|
import { TGetOperationStatusResp, TTableSchema } from '../../thrift/TCLIService_types';
|
|
2
4
|
import Status from '../dto/Status';
|
|
3
5
|
export type OperationStatusCallback = (progress: TGetOperationStatusResp) => unknown;
|
|
@@ -13,6 +15,20 @@ export interface FetchOptions extends WaitUntilReadyOptions {
|
|
|
13
15
|
}
|
|
14
16
|
export interface GetSchemaOptions extends WaitUntilReadyOptions {
|
|
15
17
|
}
|
|
18
|
+
export interface IteratorOptions extends FetchOptions {
|
|
19
|
+
autoClose?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface IOperationChunksIterator extends AsyncIterableIterator<Array<object>> {
|
|
22
|
+
readonly operation: IOperation;
|
|
23
|
+
}
|
|
24
|
+
export interface IOperationRowsIterator extends AsyncIterableIterator<object> {
|
|
25
|
+
readonly operation: IOperation;
|
|
26
|
+
}
|
|
27
|
+
export interface NodeStreamOptions {
|
|
28
|
+
mode?: 'chunks' | 'rows';
|
|
29
|
+
iteratorOptions?: IteratorOptions;
|
|
30
|
+
streamOptions?: ReadableOptions;
|
|
31
|
+
}
|
|
16
32
|
export default interface IOperation {
|
|
17
33
|
/**
|
|
18
34
|
* Operation identifier
|
|
@@ -52,4 +68,7 @@ export default interface IOperation {
|
|
|
52
68
|
* Fetch schema
|
|
53
69
|
*/
|
|
54
70
|
getSchema(options?: GetSchemaOptions): Promise<TTableSchema | null>;
|
|
71
|
+
iterateChunks(options?: IteratorOptions): IOperationChunksIterator;
|
|
72
|
+
iterateRows(options?: IteratorOptions): IOperationRowsIterator;
|
|
73
|
+
toNodeStream(options?: NodeStreamOptions): Readable;
|
|
55
74
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IThriftClient.js","sourceRoot":"","sources":["../../lib/contracts/IThriftClient.ts"],"names":[],"mappings":""}
|
package/dist/dto/InfoValue.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
|
|
2
|
+
import Int64 from 'node-int64';
|
|
3
3
|
import { TGetInfoValue } from '../../thrift/TCLIService_types';
|
|
4
|
-
import { Int64 } from '../hive/Types';
|
|
5
4
|
type InfoResultType = string | number | Buffer | Int64 | null;
|
|
6
5
|
export default class InfoValue {
|
|
7
6
|
private value;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import TCLIService from '../../../thrift/TCLIService';
|
|
2
1
|
import IClientContext from '../../contracts/IClientContext';
|
|
3
|
-
export default abstract class BaseCommand {
|
|
4
|
-
protected client:
|
|
2
|
+
export default abstract class BaseCommand<ClientType> {
|
|
3
|
+
protected client: ClientType;
|
|
5
4
|
protected context: IClientContext;
|
|
6
|
-
constructor(client:
|
|
5
|
+
constructor(client: ClientType, context: IClientContext);
|
|
7
6
|
protected executeCommand<Response>(request: object, command: Function | void): Promise<Response>;
|
|
8
7
|
private invokeCommand;
|
|
9
8
|
}
|
|
@@ -22,15 +22,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
27
|
};
|
|
@@ -43,32 +34,30 @@ class BaseCommand {
|
|
|
43
34
|
this.client = client;
|
|
44
35
|
this.context = context;
|
|
45
36
|
}
|
|
46
|
-
executeCommand(request, command) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
// no default
|
|
66
|
-
}
|
|
37
|
+
async executeCommand(request, command) {
|
|
38
|
+
try {
|
|
39
|
+
return await this.invokeCommand(request, command);
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
if (error instanceof RetryError_1.default) {
|
|
43
|
+
let statusCode;
|
|
44
|
+
if (error.payload &&
|
|
45
|
+
typeof error.payload === 'object' &&
|
|
46
|
+
'response' in error.payload &&
|
|
47
|
+
error.payload.response instanceof node_fetch_1.Response) {
|
|
48
|
+
statusCode = error.payload.response.status;
|
|
49
|
+
}
|
|
50
|
+
switch (error.errorCode) {
|
|
51
|
+
case RetryError_1.RetryErrorCode.AttemptsExceeded:
|
|
52
|
+
throw new HiveDriverError_1.default(`Hive driver: ${statusCode !== null && statusCode !== void 0 ? statusCode : 'Error'} when connecting to resource. Max retry count exceeded.`);
|
|
53
|
+
case RetryError_1.RetryErrorCode.TimeoutExceeded:
|
|
54
|
+
throw new HiveDriverError_1.default(`Hive driver: ${statusCode !== null && statusCode !== void 0 ? statusCode : 'Error'} when connecting to resource. Retry timeout exceeded.`);
|
|
55
|
+
// no default
|
|
67
56
|
}
|
|
68
|
-
// Re-throw error we didn't handle
|
|
69
|
-
throw error;
|
|
70
57
|
}
|
|
71
|
-
|
|
58
|
+
// Re-throw error we didn't handle
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
72
61
|
}
|
|
73
62
|
invokeCommand(request, command) {
|
|
74
63
|
if (typeof command !== 'function') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/BaseCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/BaseCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAsC;AACtC,mFAA2D;AAC3D,sEAAqE;AAGrE,MAA8B,WAAW;IAKvC,YAAY,MAAkB,EAAE,OAAuB;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAES,KAAK,CAAC,cAAc,CAAW,OAAe,EAAE,OAAwB;QAChF,IAAI;YACF,OAAO,MAAM,IAAI,CAAC,aAAa,CAAW,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,KAAK,YAAY,oBAAU,EAAE;gBAC/B,IAAI,UAA8B,CAAC;gBACnC,IACE,KAAK,CAAC,OAAO;oBACb,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ;oBACjC,UAAU,IAAI,KAAK,CAAC,OAAO;oBAC3B,KAAK,CAAC,OAAO,CAAC,QAAQ,YAAY,qBAAQ,EAC1C;oBACA,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;iBAC5C;gBAED,QAAQ,KAAK,CAAC,SAAS,EAAE;oBACvB,KAAK,2BAAc,CAAC,gBAAgB;wBAClC,MAAM,IAAI,yBAAe,CACvB,gBAAgB,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,OAAO,yDAAyD,CAC/F,CAAC;oBACJ,KAAK,2BAAc,CAAC,eAAe;wBACjC,MAAM,IAAI,yBAAe,CACvB,gBAAgB,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,OAAO,uDAAuD,CAC7F,CAAC;oBACJ,aAAa;iBACd;aACF;YAED,kCAAkC;YAClC,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IAEO,aAAa,CAAW,OAAe,EAAE,OAAwB;QACvE,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE;YACjC,OAAO,OAAO,CAAC,MAAM,CACnB,IAAI,yBAAe,CAAC,+EAA+E,CAAC,CACrG,CAAC;SACH;QAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,IAAI;gBACF,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,GAAU,EAAE,QAAkB,EAAE,EAAE;oBACpE,IAAI,GAAG,EAAE;wBACP,MAAM,CAAC,GAAG,CAAC,CAAC;qBACb;yBAAM;wBACL,OAAO,CAAC,QAAQ,CAAC,CAAC;qBACnB;gBACH,CAAC,CAAC,CAAC;aACJ;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,CAAC,KAAK,CAAC,CAAC;aACf;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAhED,8BAgEC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TCancelDelegationTokenReq, TCancelDelegationTokenResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'CancelDelegationToken'>;
|
|
5
|
+
export default class CancelDelegationTokenCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TCancelDelegationTokenReq): Promise<TCancelDelegationTokenResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CancelDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CancelDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA0G;
|
|
1
|
+
{"version":3,"file":"CancelDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CancelDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA0G;AAK1G,MAAqB,4BAA6B,SAAQ,qBAAmB;IAC3E,OAAO,CAAC,IAA+B;QACrC,MAAM,OAAO,GAAG,IAAI,6CAAyB,CAAC,IAAI,CAAC,CAAC;QAEpD,OAAO,IAAI,CAAC,cAAc,CAA6B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IACrG,CAAC;CACF;AAND,+CAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TCancelOperationReq, TCancelOperationResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'CancelOperation'>;
|
|
5
|
+
export default class CancelOperationCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TCancelOperationReq): Promise<TCancelOperationResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CancelOperationCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CancelOperationCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA8F;
|
|
1
|
+
{"version":3,"file":"CancelOperationCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CancelOperationCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA8F;AAK9F,MAAqB,sBAAuB,SAAQ,qBAAmB;IACrE,OAAO,CAAC,IAAyB;QAC/B,MAAM,OAAO,GAAG,IAAI,uCAAmB,CAAC,IAAI,CAAC,CAAC;QAE9C,OAAO,IAAI,CAAC,cAAc,CAAuB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACzF,CAAC;CACF;AAND,yCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TCloseOperationReq, TCloseOperationResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'CloseOperation'>;
|
|
5
|
+
export default class CloseOperationCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TCloseOperationReq): Promise<TCloseOperationResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseOperationCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CloseOperationCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA4F;
|
|
1
|
+
{"version":3,"file":"CloseOperationCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CloseOperationCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA4F;AAK5F,MAAqB,qBAAsB,SAAQ,qBAAmB;IACpE,OAAO,CAAC,IAAwB;QAC9B,MAAM,OAAO,GAAG,IAAI,sCAAkB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,CAAC,cAAc,CAAsB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACvF,CAAC;CACF;AAND,wCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TCloseSessionReq, TCloseSessionResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'CloseSession'>;
|
|
5
|
+
export default class CloseSessionCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(openSessionRequest: TCloseSessionReq): Promise<TCloseSessionResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseSessionCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CloseSessionCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwF;
|
|
1
|
+
{"version":3,"file":"CloseSessionCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/CloseSessionCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwF;AAKxF,MAAqB,mBAAoB,SAAQ,qBAAmB;IAClE,OAAO,CAAC,kBAAoC;QAC1C,MAAM,OAAO,GAAG,IAAI,oCAAgB,CAAC,kBAAkB,CAAC,CAAC;QAEzD,OAAO,IAAI,CAAC,cAAc,CAAoB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACnF,CAAC;CACF;AAND,sCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TExecuteStatementReq, TExecuteStatementResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'ExecuteStatement'>;
|
|
5
|
+
export default class ExecuteStatementCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(executeStatementRequest: TExecuteStatementReq): Promise<TExecuteStatementResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecuteStatementCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/ExecuteStatementCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAgG;
|
|
1
|
+
{"version":3,"file":"ExecuteStatementCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/ExecuteStatementCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAgG;AAKhG,MAAqB,uBAAwB,SAAQ,qBAAmB;IACtE,OAAO,CAAC,uBAA6C;QACnD,MAAM,OAAO,GAAG,IAAI,wCAAoB,CAAC,uBAAuB,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,cAAc,CAAwB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAC3F,CAAC;CACF;AAND,0CAMC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TFetchResultsReq, TFetchResultsResp } from '../../../thrift/TCLIService_types';
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'FetchResults'>;
|
|
3
5
|
/**
|
|
4
6
|
* TFetchResultsReq.fetchType - 0 represents Query output. 1 represents Log
|
|
5
7
|
*/
|
|
6
|
-
export default class FetchResultsCommand extends BaseCommand {
|
|
8
|
+
export default class FetchResultsCommand extends BaseCommand<Client> {
|
|
7
9
|
execute(data: TFetchResultsReq): Promise<TFetchResultsResp>;
|
|
8
10
|
}
|
|
11
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchResultsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/FetchResultsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwF;
|
|
1
|
+
{"version":3,"file":"FetchResultsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/FetchResultsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwF;AAKxF;;GAEG;AACH,MAAqB,mBAAoB,SAAQ,qBAAmB;IAClE,OAAO,CAAC,IAAsB;QAC5B,MAAM,OAAO,GAAG,IAAI,oCAAgB,CAAC,IAAI,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,cAAc,CAAoB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACnF,CAAC;CACF;AAND,sCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetCatalogsReq, TGetCatalogsResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetCatalogs'>;
|
|
5
|
+
export default class GetCatalogsCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetCatalogsReq): Promise<TGetCatalogsResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetCatalogsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCatalogsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAsF;
|
|
1
|
+
{"version":3,"file":"GetCatalogsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCatalogsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAsF;AAKtF,MAAqB,kBAAmB,SAAQ,qBAAmB;IACjE,OAAO,CAAC,IAAqB;QAC3B,MAAM,OAAO,GAAG,IAAI,mCAAe,CAAC,IAAI,CAAC,CAAC;QAE1C,OAAO,IAAI,CAAC,cAAc,CAAmB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACjF,CAAC;CACF;AAND,qCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetColumnsReq, TGetColumnsResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetColumns'>;
|
|
5
|
+
export default class GetColumnsCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetColumnsReq): Promise<TGetColumnsResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetColumnsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetColumnsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoF;
|
|
1
|
+
{"version":3,"file":"GetColumnsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetColumnsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoF;AAKpF,MAAqB,iBAAkB,SAAQ,qBAAmB;IAChE,OAAO,CAAC,IAAoB;QAC1B,MAAM,OAAO,GAAG,IAAI,kCAAc,CAAC,IAAI,CAAC,CAAC;QAEzC,OAAO,IAAI,CAAC,cAAc,CAAkB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC/E,CAAC;CACF;AAND,oCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetCrossReferenceReq, TGetCrossReferenceResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetCrossReference'>;
|
|
5
|
+
export default class GetCrossReferenceCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetCrossReferenceReq): Promise<TGetCrossReferenceResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetCrossReferenceCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCrossReferenceCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAkG;
|
|
1
|
+
{"version":3,"file":"GetCrossReferenceCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCrossReferenceCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAkG;AAKlG,MAAqB,wBAAyB,SAAQ,qBAAmB;IACvE,OAAO,CAAC,IAA2B;QACjC,MAAM,OAAO,GAAG,IAAI,yCAAqB,CAAC,IAAI,CAAC,CAAC;QAEhD,OAAO,IAAI,CAAC,cAAc,CAAyB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC7F,CAAC;CACF;AAND,2CAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetDelegationTokenReq, TGetDelegationTokenResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetDelegationToken'>;
|
|
5
|
+
export default class GetDelegationTokenCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetDelegationTokenReq): Promise<TGetDelegationTokenResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoG;
|
|
1
|
+
{"version":3,"file":"GetDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoG;AAKpG,MAAqB,yBAA0B,SAAQ,qBAAmB;IACxE,OAAO,CAAC,IAA4B;QAClC,MAAM,OAAO,GAAG,IAAI,0CAAsB,CAAC,IAAI,CAAC,CAAC;QAEjD,OAAO,IAAI,CAAC,cAAc,CAA0B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/F,CAAC;CACF;AAND,4CAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetFunctionsReq, TGetFunctionsResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetFunctions'>;
|
|
5
|
+
export default class GetFunctionsCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetFunctionsReq): Promise<TGetFunctionsResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetFunctionsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetFunctionsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwF;
|
|
1
|
+
{"version":3,"file":"GetFunctionsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetFunctionsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwF;AAKxF,MAAqB,mBAAoB,SAAQ,qBAAmB;IAClE,OAAO,CAAC,IAAsB;QAC5B,MAAM,OAAO,GAAG,IAAI,oCAAgB,CAAC,IAAI,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,cAAc,CAAoB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACnF,CAAC;CACF;AAND,sCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetInfoReq, TGetInfoResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetInfo'>;
|
|
5
|
+
export default class GetInfoCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetInfoReq): Promise<TGetInfoResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetInfoCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetInfoCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA8E;
|
|
1
|
+
{"version":3,"file":"GetInfoCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetInfoCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA8E;AAK9E,MAAqB,cAAe,SAAQ,qBAAmB;IAC7D,OAAO,CAAC,IAAiB;QACvB,MAAM,OAAO,GAAG,IAAI,+BAAW,CAAC,IAAI,CAAC,CAAC;QAEtC,OAAO,IAAI,CAAC,cAAc,CAAe,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAND,iCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetOperationStatusReq, TGetOperationStatusResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetOperationStatus'>;
|
|
5
|
+
export default class GetOperationStatusCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetOperationStatusReq): Promise<TGetOperationStatusResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetOperationStatusCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetOperationStatusCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoG;
|
|
1
|
+
{"version":3,"file":"GetOperationStatusCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetOperationStatusCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoG;AAKpG,MAAqB,yBAA0B,SAAQ,qBAAmB;IACxE,OAAO,CAAC,IAA4B;QAClC,MAAM,OAAO,GAAG,IAAI,0CAAsB,CAAC,IAAI,CAAC,CAAC;QAEjD,OAAO,IAAI,CAAC,cAAc,CAA0B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC/F,CAAC;CACF;AAND,4CAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetPrimaryKeysReq, TGetPrimaryKeysResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetPrimaryKeys'>;
|
|
5
|
+
export default class GetPrimaryKeysCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetPrimaryKeysReq): Promise<TGetPrimaryKeysResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetPrimaryKeysCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetPrimaryKeysCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA4F;
|
|
1
|
+
{"version":3,"file":"GetPrimaryKeysCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetPrimaryKeysCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA4F;AAK5F,MAAqB,qBAAsB,SAAQ,qBAAmB;IACpE,OAAO,CAAC,IAAwB;QAC9B,MAAM,OAAO,GAAG,IAAI,sCAAkB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,CAAC,cAAc,CAAsB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACvF,CAAC;CACF;AAND,wCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetResultSetMetadataReq, TGetResultSetMetadataResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetResultSetMetadata'>;
|
|
5
|
+
export default class GetResultSetMetadataCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(getResultSetMetadataRequest: TGetResultSetMetadataReq): Promise<TGetResultSetMetadataResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetResultSetMetadataCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetResultSetMetadataCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwG;
|
|
1
|
+
{"version":3,"file":"GetResultSetMetadataCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetResultSetMetadataCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwG;AAKxG,MAAqB,2BAA4B,SAAQ,qBAAmB;IAC1E,OAAO,CAAC,2BAAqD;QAC3D,MAAM,OAAO,GAAG,IAAI,4CAAwB,CAAC,2BAA2B,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAC,cAAc,CAA4B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACnG,CAAC;CACF;AAND,8CAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetSchemasReq, TGetSchemasResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetSchemas'>;
|
|
5
|
+
export default class GetSchemasCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetSchemasReq): Promise<TGetSchemasResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetSchemasCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetSchemasCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoF;
|
|
1
|
+
{"version":3,"file":"GetSchemasCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetSchemasCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoF;AAKpF,MAAqB,iBAAkB,SAAQ,qBAAmB;IAChE,OAAO,CAAC,IAAoB;QAC1B,MAAM,OAAO,GAAG,IAAI,kCAAc,CAAC,IAAI,CAAC,CAAC;QAEzC,OAAO,IAAI,CAAC,cAAc,CAAkB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC/E,CAAC;CACF;AAND,oCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetTableTypesReq, TGetTableTypesResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetTableTypes'>;
|
|
5
|
+
export default class GetTableTypesCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetTableTypesReq): Promise<TGetTableTypesResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetTableTypesCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetTableTypesCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA0F;
|
|
1
|
+
{"version":3,"file":"GetTableTypesCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetTableTypesCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA0F;AAK1F,MAAqB,oBAAqB,SAAQ,qBAAmB;IACnE,OAAO,CAAC,IAAuB;QAC7B,MAAM,OAAO,GAAG,IAAI,qCAAiB,CAAC,IAAI,CAAC,CAAC;QAE5C,OAAO,IAAI,CAAC,cAAc,CAAqB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACrF,CAAC;CACF;AAND,uCAMC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BaseCommand from './BaseCommand';
|
|
2
2
|
import { TGetTablesReq, TGetTablesResp } from '../../../thrift/TCLIService_types';
|
|
3
|
-
|
|
3
|
+
import IThriftClient from '../../contracts/IThriftClient';
|
|
4
|
+
type Client = Pick<IThriftClient, 'GetTables'>;
|
|
5
|
+
export default class GetTablesCommand extends BaseCommand<Client> {
|
|
4
6
|
execute(data: TGetTablesReq): Promise<TGetTablesResp>;
|
|
5
7
|
}
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetTablesCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetTablesCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAkF;
|
|
1
|
+
{"version":3,"file":"GetTablesCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetTablesCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAkF;AAKlF,MAAqB,gBAAiB,SAAQ,qBAAmB;IAC/D,OAAO,CAAC,IAAmB;QACzB,MAAM,OAAO,GAAG,IAAI,iCAAa,CAAC,IAAI,CAAC,CAAC;QAExC,OAAO,IAAI,CAAC,cAAc,CAAiB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC7E,CAAC;CACF;AAND,mCAMC"}
|