@databricks/sql 0.1.8-beta.1 → 0.1.8-beta.2

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.
Files changed (248) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/NOTICE +35 -0
  3. package/README.md +42 -19
  4. package/dist/DBSQLClient.d.ts +23 -39
  5. package/dist/DBSQLClient.js +110 -98
  6. package/dist/DBSQLClient.js.map +1 -1
  7. package/dist/DBSQLOperation/CompleteOperationHelper.d.ts +13 -0
  8. package/dist/DBSQLOperation/CompleteOperationHelper.js +61 -0
  9. package/dist/DBSQLOperation/CompleteOperationHelper.js.map +1 -0
  10. package/dist/DBSQLOperation/FetchResultsHelper.d.ts +14 -0
  11. package/dist/DBSQLOperation/FetchResultsHelper.js +79 -0
  12. package/dist/DBSQLOperation/FetchResultsHelper.js.map +1 -0
  13. package/dist/DBSQLOperation/OperationStatusHelper.d.ts +17 -0
  14. package/dist/DBSQLOperation/OperationStatusHelper.js +115 -0
  15. package/dist/DBSQLOperation/OperationStatusHelper.js.map +1 -0
  16. package/dist/DBSQLOperation/SchemaHelper.d.ts +10 -0
  17. package/dist/DBSQLOperation/SchemaHelper.js +39 -0
  18. package/dist/DBSQLOperation/SchemaHelper.js.map +1 -0
  19. package/dist/DBSQLOperation/getResult.d.ts +2 -0
  20. package/dist/DBSQLOperation/getResult.js +19 -0
  21. package/dist/DBSQLOperation/getResult.js.map +1 -0
  22. package/dist/DBSQLOperation/index.d.ts +34 -0
  23. package/dist/DBSQLOperation/index.js +100 -0
  24. package/dist/DBSQLOperation/index.js.map +1 -0
  25. package/dist/{HiveSession.d.ts → DBSQLSession.d.ts} +8 -9
  26. package/dist/DBSQLSession.js +185 -0
  27. package/dist/DBSQLSession.js.map +1 -0
  28. package/dist/connection/auth/NoSaslAuthentication.d.ts +2 -2
  29. package/dist/connection/auth/NoSaslAuthentication.js +9 -9
  30. package/dist/connection/auth/NoSaslAuthentication.js.map +1 -1
  31. package/dist/connection/auth/PlainHttpAuthentication.d.ts +2 -2
  32. package/dist/connection/auth/PlainHttpAuthentication.js +9 -21
  33. package/dist/connection/auth/PlainHttpAuthentication.js.map +1 -1
  34. package/dist/connection/auth/helpers/SaslPackageFactory.js +5 -9
  35. package/dist/connection/auth/helpers/SaslPackageFactory.js.map +1 -1
  36. package/dist/connection/connections/HttpConnection.d.ts +4 -4
  37. package/dist/connection/connections/HttpConnection.js +39 -47
  38. package/dist/connection/connections/HttpConnection.js.map +1 -1
  39. package/dist/connection/contracts/IAuthentication.d.ts +1 -1
  40. package/dist/connection/transports/HttpTransport.d.ts +1 -1
  41. package/dist/connection/transports/HttpTransport.js +16 -31
  42. package/dist/connection/transports/HttpTransport.js.map +1 -1
  43. package/dist/contracts/IDBSQLClient.d.ts +14 -0
  44. package/dist/contracts/{IHiveClient.js → IDBSQLClient.js} +1 -1
  45. package/dist/contracts/IDBSQLClient.js.map +1 -0
  46. package/dist/contracts/{IHiveSession.d.ts → IDBSQLSession.d.ts} +9 -7
  47. package/dist/contracts/{IHiveSession.js → IDBSQLSession.js} +1 -1
  48. package/dist/contracts/IDBSQLSession.js.map +1 -0
  49. package/dist/contracts/IOperation.d.ts +21 -21
  50. package/dist/contracts/IOperation.js +4 -0
  51. package/dist/contracts/IOperation.js.map +1 -1
  52. package/dist/dto/InfoValue.d.ts +5 -3
  53. package/dist/dto/InfoValue.js +11 -14
  54. package/dist/dto/InfoValue.js.map +1 -1
  55. package/dist/dto/Status.js +9 -10
  56. package/dist/dto/Status.js.map +1 -1
  57. package/dist/errors/AuthenticationError.d.ts +1 -1
  58. package/dist/errors/AuthenticationError.js +3 -23
  59. package/dist/errors/AuthenticationError.js.map +1 -1
  60. package/dist/errors/HiveDriverError.js +2 -22
  61. package/dist/errors/HiveDriverError.js.map +1 -1
  62. package/dist/errors/OperationStateError.d.ts +4 -4
  63. package/dist/errors/OperationStateError.js +6 -24
  64. package/dist/errors/OperationStateError.js.map +1 -1
  65. package/dist/errors/StatusError.d.ts +2 -2
  66. package/dist/errors/StatusError.js +3 -4
  67. package/dist/errors/StatusError.js.map +1 -1
  68. package/dist/factory/StatusFactory.d.ts +2 -4
  69. package/dist/factory/StatusFactory.js +16 -21
  70. package/dist/factory/StatusFactory.js.map +1 -1
  71. package/dist/hive/Commands/BaseCommand.d.ts +3 -4
  72. package/dist/hive/Commands/BaseCommand.js +10 -12
  73. package/dist/hive/Commands/BaseCommand.js.map +1 -1
  74. package/dist/hive/Commands/CancelDelegationTokenCommand.d.ts +3 -10
  75. package/dist/hive/Commands/CancelDelegationTokenCommand.js +7 -26
  76. package/dist/hive/Commands/CancelDelegationTokenCommand.js.map +1 -1
  77. package/dist/hive/Commands/CancelOperationCommand.d.ts +3 -9
  78. package/dist/hive/Commands/CancelOperationCommand.js +7 -26
  79. package/dist/hive/Commands/CancelOperationCommand.js.map +1 -1
  80. package/dist/hive/Commands/CloseOperationCommand.d.ts +3 -9
  81. package/dist/hive/Commands/CloseOperationCommand.js +7 -26
  82. package/dist/hive/Commands/CloseOperationCommand.js.map +1 -1
  83. package/dist/hive/Commands/CloseSessionCommand.d.ts +3 -9
  84. package/dist/hive/Commands/CloseSessionCommand.js +7 -26
  85. package/dist/hive/Commands/CloseSessionCommand.js.map +1 -1
  86. package/dist/hive/Commands/ExecuteStatementCommand.d.ts +3 -15
  87. package/dist/hive/Commands/ExecuteStatementCommand.js +7 -26
  88. package/dist/hive/Commands/ExecuteStatementCommand.js.map +1 -1
  89. package/dist/hive/Commands/FetchResultsCommand.d.ts +4 -16
  90. package/dist/hive/Commands/FetchResultsCommand.js +10 -26
  91. package/dist/hive/Commands/FetchResultsCommand.js.map +1 -1
  92. package/dist/hive/Commands/GetCatalogsCommand.d.ts +3 -10
  93. package/dist/hive/Commands/GetCatalogsCommand.js +7 -26
  94. package/dist/hive/Commands/GetCatalogsCommand.js.map +1 -1
  95. package/dist/hive/Commands/GetColumnsCommand.d.ts +3 -14
  96. package/dist/hive/Commands/GetColumnsCommand.js +7 -26
  97. package/dist/hive/Commands/GetColumnsCommand.js.map +1 -1
  98. package/dist/hive/Commands/GetCrossReferenceCommand.d.ts +3 -16
  99. package/dist/hive/Commands/GetCrossReferenceCommand.js +7 -26
  100. package/dist/hive/Commands/GetCrossReferenceCommand.js.map +1 -1
  101. package/dist/hive/Commands/GetDelegationTokenCommand.d.ts +3 -12
  102. package/dist/hive/Commands/GetDelegationTokenCommand.js +7 -26
  103. package/dist/hive/Commands/GetDelegationTokenCommand.js.map +1 -1
  104. package/dist/hive/Commands/GetFunctionsCommand.d.ts +3 -13
  105. package/dist/hive/Commands/GetFunctionsCommand.js +7 -26
  106. package/dist/hive/Commands/GetFunctionsCommand.js.map +1 -1
  107. package/dist/hive/Commands/GetInfoCommand.d.ts +3 -14
  108. package/dist/hive/Commands/GetInfoCommand.js +7 -26
  109. package/dist/hive/Commands/GetInfoCommand.js.map +1 -1
  110. package/dist/hive/Commands/GetOperationStatusCommand.d.ts +3 -21
  111. package/dist/hive/Commands/GetOperationStatusCommand.js +7 -26
  112. package/dist/hive/Commands/GetOperationStatusCommand.js.map +1 -1
  113. package/dist/hive/Commands/GetPrimaryKeysCommand.d.ts +3 -13
  114. package/dist/hive/Commands/GetPrimaryKeysCommand.js +7 -26
  115. package/dist/hive/Commands/GetPrimaryKeysCommand.js.map +1 -1
  116. package/dist/hive/Commands/GetResultSetMetadataCommand.d.ts +3 -10
  117. package/dist/hive/Commands/GetResultSetMetadataCommand.js +7 -26
  118. package/dist/hive/Commands/GetResultSetMetadataCommand.js.map +1 -1
  119. package/dist/hive/Commands/GetSchemasCommand.d.ts +3 -12
  120. package/dist/hive/Commands/GetSchemasCommand.js +7 -26
  121. package/dist/hive/Commands/GetSchemasCommand.js.map +1 -1
  122. package/dist/hive/Commands/GetTableTypesCommand.d.ts +3 -10
  123. package/dist/hive/Commands/GetTableTypesCommand.js +7 -26
  124. package/dist/hive/Commands/GetTableTypesCommand.js.map +1 -1
  125. package/dist/hive/Commands/GetTablesCommand.d.ts +3 -14
  126. package/dist/hive/Commands/GetTablesCommand.js +7 -26
  127. package/dist/hive/Commands/GetTablesCommand.js.map +1 -1
  128. package/dist/hive/Commands/GetTypeInfoCommand.d.ts +3 -10
  129. package/dist/hive/Commands/GetTypeInfoCommand.js +7 -26
  130. package/dist/hive/Commands/GetTypeInfoCommand.js.map +1 -1
  131. package/dist/hive/Commands/OpenSessionCommand.d.ts +9 -28
  132. package/dist/hive/Commands/OpenSessionCommand.js +16 -26
  133. package/dist/hive/Commands/OpenSessionCommand.js.map +1 -1
  134. package/dist/hive/Commands/RenewDelegationTokenCommand.d.ts +3 -10
  135. package/dist/hive/Commands/RenewDelegationTokenCommand.js +7 -26
  136. package/dist/hive/Commands/RenewDelegationTokenCommand.js.map +1 -1
  137. package/dist/hive/HiveDriver.d.ts +24 -49
  138. package/dist/hive/HiveDriver.js +87 -99
  139. package/dist/hive/HiveDriver.js.map +1 -1
  140. package/dist/hive/Types/index.d.ts +7 -218
  141. package/dist/hive/Types/index.js +11 -2
  142. package/dist/hive/Types/index.js.map +1 -1
  143. package/dist/index.d.ts +14 -16
  144. package/dist/index.js +15 -51
  145. package/dist/index.js.map +1 -1
  146. package/dist/result/IOperationResult.d.ts +0 -2
  147. package/dist/result/JsonResult.d.ts +5 -8
  148. package/dist/result/JsonResult.js +81 -99
  149. package/dist/result/JsonResult.js.map +1 -1
  150. package/dist/result/NullResult.d.ts +1 -3
  151. package/dist/result/NullResult.js +4 -8
  152. package/dist/result/NullResult.js.map +1 -1
  153. package/dist/utils/buildUserAgentString.d.ts +1 -0
  154. package/dist/utils/buildUserAgentString.js +25 -0
  155. package/dist/utils/buildUserAgentString.js.map +1 -0
  156. package/dist/utils/definedOrError.d.ts +1 -0
  157. package/dist/utils/definedOrError.js +10 -0
  158. package/dist/utils/definedOrError.js.map +1 -0
  159. package/dist/utils/formatProgress.d.ts +9 -0
  160. package/dist/utils/formatProgress.js +24 -0
  161. package/dist/utils/formatProgress.js.map +1 -0
  162. package/dist/utils/index.d.ts +4 -0
  163. package/dist/utils/index.js +37 -0
  164. package/dist/utils/index.js.map +1 -0
  165. package/package.json +24 -6
  166. package/thrift/TCLIService.d.ts +196 -0
  167. package/thrift/{gen-nodejs/TCLIService.js → TCLIService.js} +1 -397
  168. package/thrift/TCLIService_types.d.ts +947 -0
  169. package/thrift/{gen-nodejs/TCLIService_types.js → TCLIService_types.js} +2830 -516
  170. package/.gitattributes +0 -32
  171. package/CONTRIBUTING.md +0 -55
  172. package/dist/HiveClient.d.ts +0 -35
  173. package/dist/HiveClient.js +0 -156
  174. package/dist/HiveClient.js.map +0 -1
  175. package/dist/HiveOperation.d.ts +0 -65
  176. package/dist/HiveOperation.js +0 -190
  177. package/dist/HiveOperation.js.map +0 -1
  178. package/dist/HiveSession.js +0 -197
  179. package/dist/HiveSession.js.map +0 -1
  180. package/dist/contracts/IHiveClient.d.ts +0 -10
  181. package/dist/contracts/IHiveClient.js.map +0 -1
  182. package/dist/contracts/IHiveSession.js.map +0 -1
  183. package/dist/hive/Commands/GetQueryIdCommand.d.ts +0 -11
  184. package/dist/hive/Commands/GetQueryIdCommand.js +0 -34
  185. package/dist/hive/Commands/GetQueryIdCommand.js.map +0 -1
  186. package/dist/hive/Commands/SetClientInfoCommand.d.ts +0 -12
  187. package/dist/hive/Commands/SetClientInfoCommand.js +0 -34
  188. package/dist/hive/Commands/SetClientInfoCommand.js.map +0 -1
  189. package/dist/utils/GetResult.d.ts +0 -16
  190. package/dist/utils/GetResult.js +0 -38
  191. package/dist/utils/GetResult.js.map +0 -1
  192. package/dist/utils/HiveUtils.d.ts +0 -11
  193. package/dist/utils/HiveUtils.js +0 -39
  194. package/dist/utils/HiveUtils.js.map +0 -1
  195. package/dist/utils/ProgressUpdateTransformer.d.ts +0 -8
  196. package/dist/utils/ProgressUpdateTransformer.js +0 -33
  197. package/dist/utils/ProgressUpdateTransformer.js.map +0 -1
  198. package/dist/utils/WaitUntilReady.d.ts +0 -16
  199. package/dist/utils/WaitUntilReady.js +0 -120
  200. package/dist/utils/WaitUntilReady.js.map +0 -1
  201. package/docs/readme.md +0 -227
  202. package/docs/troubleshooting.md +0 -84
  203. package/examples/data_types.js +0 -173
  204. package/examples/repl +0 -106
  205. package/examples/session.js +0 -55
  206. package/examples/usage.js +0 -18
  207. package/nyc.config.js +0 -8
  208. package/tests/e2e/data_types.test.js +0 -353
  209. package/tests/e2e/utils/config.js +0 -20
  210. package/tests/e2e/utils/logger.js +0 -22
  211. package/tests/unit/HiveClient.test.js +0 -153
  212. package/tests/unit/HiveOperation.test.js +0 -340
  213. package/tests/unit/HiveSession.test.js +0 -146
  214. package/tests/unit/connection/auth/PlainHttpAuthentication.test.js +0 -44
  215. package/tests/unit/connection/connections/HttpConnection.test.js +0 -141
  216. package/tests/unit/dto/InfoValue.test.js +0 -50
  217. package/tests/unit/factory/StatusFactory.test.js +0 -62
  218. package/tests/unit/hive/HiveDriver.test.js +0 -115
  219. package/tests/unit/hive/commands/CancelDelegationTokenCommand.test.js +0 -43
  220. package/tests/unit/hive/commands/CancelOperationCommand.test.js +0 -45
  221. package/tests/unit/hive/commands/CloseOperationCommand.test.js +0 -45
  222. package/tests/unit/hive/commands/CloseSessionCommand.test.js +0 -38
  223. package/tests/unit/hive/commands/ExecuteStatementCommand.test.js +0 -54
  224. package/tests/unit/hive/commands/FetchResultsCommand.test.js +0 -59
  225. package/tests/unit/hive/commands/GetCatalogsCommand.test.js +0 -50
  226. package/tests/unit/hive/commands/GetColumnsCommand.test.js +0 -50
  227. package/tests/unit/hive/commands/GetCrossReferenceCommand.test.js +0 -56
  228. package/tests/unit/hive/commands/GetDelegationTokenCommand.test.js +0 -45
  229. package/tests/unit/hive/commands/GetFunctionsCommand.test.js +0 -50
  230. package/tests/unit/hive/commands/GetInfoCommand.test.js +0 -51
  231. package/tests/unit/hive/commands/GetOperationStatusCommand.test.js +0 -63
  232. package/tests/unit/hive/commands/GetPrimaryKeysCommand.test.js +0 -50
  233. package/tests/unit/hive/commands/GetQueryIdCommand.test.js +0 -42
  234. package/tests/unit/hive/commands/GetResultSetMetadataCommand.test.js +0 -54
  235. package/tests/unit/hive/commands/GetSchemasCommand.test.js +0 -52
  236. package/tests/unit/hive/commands/GetTableTypesCommand.test.js +0 -50
  237. package/tests/unit/hive/commands/GetTablesCommand.test.js +0 -54
  238. package/tests/unit/hive/commands/GetTypeInfoCommand.test.js +0 -50
  239. package/tests/unit/hive/commands/OpenSessionCommand.test.js +0 -43
  240. package/tests/unit/hive/commands/RenewDelegationTokenCommand.test.js +0 -43
  241. package/tests/unit/hive/commands/SetClientInfoCommand.test.js +0 -45
  242. package/tests/unit/result/JsonResult.test.js +0 -295
  243. package/tests/unit/utils/GetResult.test.js +0 -30
  244. package/tests/unit/utils/HiveUtils.test.js +0 -60
  245. package/tests/unit/utils/ProgressUpdateTransformer.test.js +0 -28
  246. package/tests/unit/utils/WaitUntilReady.test.js +0 -105
  247. package/thrift/TCLIService.thrift +0 -1299
  248. package/tsconfig.json +0 -13
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var BaseCommand_1 = __importDefault(require("./BaseCommand"));
22
- var ExecuteStatementCommand = /** @class */ (function (_super) {
23
- __extends(ExecuteStatementCommand, _super);
24
- function ExecuteStatementCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- ExecuteStatementCommand.prototype.execute = function (executeStatementRequest) {
28
- var request = new this.TCLIService_types.TExecuteStatementReq(executeStatementRequest);
6
+ const BaseCommand_1 = __importDefault(require("./BaseCommand"));
7
+ const TCLIService_types_1 = require("../../../thrift/TCLIService_types");
8
+ class ExecuteStatementCommand extends BaseCommand_1.default {
9
+ execute(executeStatementRequest) {
10
+ const request = new TCLIService_types_1.TExecuteStatementReq(executeStatementRequest);
29
11
  return this.executeCommand(request, this.client.ExecuteStatement);
30
- };
31
- return ExecuteStatementCommand;
32
- }(BaseCommand_1.default));
12
+ }
13
+ }
33
14
  exports.default = ExecuteStatementCommand;
34
15
  //# sourceMappingURL=ExecuteStatementCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExecuteStatementCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/ExecuteStatementCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,8DAAwC;AAexC;IAAqD,2CAAW;IAAhE;;IAMA,CAAC;IALG,yCAAO,GAAP,UAAQ,uBAAgD;QACpD,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,CAAC;QAEzF,OAAO,IAAI,CAAC,cAAc,CAA2B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAChG,CAAC;IACL,8BAAC;AAAD,CAAC,AAND,CAAqD,qBAAW,GAM/D"}
1
+ {"version":3,"file":"ExecuteStatementCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/ExecuteStatementCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAgG;AAEhG,MAAqB,uBAAwB,SAAQ,qBAAW;IAC9D,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,20 +1,8 @@
1
- import BaseCommand from "./BaseCommand";
2
- import { OperationHandle, Status, RowSet } from "../Types";
1
+ import BaseCommand from './BaseCommand';
2
+ import { TFetchResultsReq, TFetchResultsResp } from '../../../thrift/TCLIService_types';
3
3
  /**
4
- * @param orientation - TCLIService_types.TFetchOrientation
5
- * @param fetchType - 0 represents Query output. 1 represents Log
4
+ * TFetchResultsReq.fetchType - 0 represents Query output. 1 represents Log
6
5
  */
7
- export declare type FetchResultsRequest = {
8
- operationHandle: OperationHandle;
9
- orientation: number;
10
- maxRows: number;
11
- fetchType?: number;
12
- };
13
- export declare type FetchResultsResponse = {
14
- status: Status;
15
- hasMoreRows?: boolean;
16
- results?: RowSet;
17
- };
18
6
  export default class FetchResultsCommand extends BaseCommand {
19
- execute(data: FetchResultsRequest): Promise<FetchResultsResponse>;
7
+ execute(data: TFetchResultsReq): Promise<TFetchResultsResp>;
20
8
  }
@@ -1,34 +1,18 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var BaseCommand_1 = __importDefault(require("./BaseCommand"));
22
- var FetchResultsCommand = /** @class */ (function (_super) {
23
- __extends(FetchResultsCommand, _super);
24
- function FetchResultsCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- FetchResultsCommand.prototype.execute = function (data) {
28
- var request = new this.TCLIService_types.TFetchResultsReq(data);
6
+ const BaseCommand_1 = __importDefault(require("./BaseCommand"));
7
+ const TCLIService_types_1 = require("../../../thrift/TCLIService_types");
8
+ /**
9
+ * TFetchResultsReq.fetchType - 0 represents Query output. 1 represents Log
10
+ */
11
+ class FetchResultsCommand extends BaseCommand_1.default {
12
+ execute(data) {
13
+ const request = new TCLIService_types_1.TFetchResultsReq(data);
29
14
  return this.executeCommand(request, this.client.FetchResults);
30
- };
31
- return FetchResultsCommand;
32
- }(BaseCommand_1.default));
15
+ }
16
+ }
33
17
  exports.default = FetchResultsCommand;
34
18
  //# sourceMappingURL=FetchResultsCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FetchResultsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/FetchResultsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAoBxC;IAAiD,uCAAW;IAA5D;;IAMA,CAAC;IALG,qCAAO,GAAP,UAAQ,IAAyB;QAC7B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,cAAc,CAAuB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACxF,CAAC;IACL,0BAAC;AAAD,CAAC,AAND,CAAiD,qBAAW,GAM3D"}
1
+ {"version":3,"file":"FetchResultsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/FetchResultsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwF;AAExF;;GAEG;AACH,MAAqB,mBAAoB,SAAQ,qBAAW;IAC1D,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,12 +1,5 @@
1
- import BaseCommand from "./BaseCommand";
2
- import { Status, SessionHandle, OperationHandle } from "../Types";
3
- export declare type GetCatalogsRequest = {
4
- sessionHandle: SessionHandle;
5
- };
6
- export declare type GetCatalogsResponse = {
7
- status: Status;
8
- operationHandle: OperationHandle;
9
- };
1
+ import BaseCommand from './BaseCommand';
2
+ import { TGetCatalogsReq, TGetCatalogsResp } from '../../../thrift/TCLIService_types';
10
3
  export default class GetCatalogsCommand extends BaseCommand {
11
- execute(data: GetCatalogsRequest): Promise<GetCatalogsResponse>;
4
+ execute(data: TGetCatalogsReq): Promise<TGetCatalogsResp>;
12
5
  }
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var BaseCommand_1 = __importDefault(require("./BaseCommand"));
22
- var GetCatalogsCommand = /** @class */ (function (_super) {
23
- __extends(GetCatalogsCommand, _super);
24
- function GetCatalogsCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- GetCatalogsCommand.prototype.execute = function (data) {
28
- var request = new this.TCLIService_types.TGetCatalogsReq(data);
6
+ const BaseCommand_1 = __importDefault(require("./BaseCommand"));
7
+ const TCLIService_types_1 = require("../../../thrift/TCLIService_types");
8
+ class GetCatalogsCommand extends BaseCommand_1.default {
9
+ execute(data) {
10
+ const request = new TCLIService_types_1.TGetCatalogsReq(data);
29
11
  return this.executeCommand(request, this.client.GetCatalogs);
30
- };
31
- return GetCatalogsCommand;
32
- }(BaseCommand_1.default));
12
+ }
13
+ }
33
14
  exports.default = GetCatalogsCommand;
34
15
  //# sourceMappingURL=GetCatalogsCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetCatalogsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCatalogsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAYxC;IAAgD,sCAAW;IAA3D;;IAMA,CAAC;IALG,oCAAO,GAAP,UAAQ,IAAwB;QAC5B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAEjE,OAAO,IAAI,CAAC,cAAc,CAAsB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACtF,CAAC;IACL,yBAAC;AAAD,CAAC,AAND,CAAgD,qBAAW,GAM1D"}
1
+ {"version":3,"file":"GetCatalogsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCatalogsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAsF;AAEtF,MAAqB,kBAAmB,SAAQ,qBAAW;IACzD,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,16 +1,5 @@
1
- import BaseCommand from "./BaseCommand";
2
- import { Status, SessionHandle, OperationHandle } from "../Types";
3
- export declare type GetColumnsRequest = {
4
- sessionHandle: SessionHandle;
5
- catalogName?: string;
6
- schemaName?: string;
7
- tableName?: string;
8
- columnName?: string;
9
- };
10
- export declare type GetColumnsResponse = {
11
- status: Status;
12
- operationHandle: OperationHandle;
13
- };
1
+ import BaseCommand from './BaseCommand';
2
+ import { TGetColumnsReq, TGetColumnsResp } from '../../../thrift/TCLIService_types';
14
3
  export default class GetColumnsCommand extends BaseCommand {
15
- execute(data: GetColumnsRequest): Promise<GetColumnsResponse>;
4
+ execute(data: TGetColumnsReq): Promise<TGetColumnsResp>;
16
5
  }
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var BaseCommand_1 = __importDefault(require("./BaseCommand"));
22
- var GetColumnsCommand = /** @class */ (function (_super) {
23
- __extends(GetColumnsCommand, _super);
24
- function GetColumnsCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- GetColumnsCommand.prototype.execute = function (data) {
28
- var request = new this.TCLIService_types.TGetColumnsReq(data);
6
+ const BaseCommand_1 = __importDefault(require("./BaseCommand"));
7
+ const TCLIService_types_1 = require("../../../thrift/TCLIService_types");
8
+ class GetColumnsCommand extends BaseCommand_1.default {
9
+ execute(data) {
10
+ const request = new TCLIService_types_1.TGetColumnsReq(data);
29
11
  return this.executeCommand(request, this.client.GetColumns);
30
- };
31
- return GetColumnsCommand;
32
- }(BaseCommand_1.default));
12
+ }
13
+ }
33
14
  exports.default = GetColumnsCommand;
34
15
  //# sourceMappingURL=GetColumnsCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetColumnsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetColumnsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAgBxC;IAA+C,qCAAW;IAA1D;;IAMA,CAAC;IALG,mCAAO,GAAP,UAAQ,IAAuB;QAC3B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,cAAc,CAAqB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACpF,CAAC;IACL,wBAAC;AAAD,CAAC,AAND,CAA+C,qBAAW,GAMzD"}
1
+ {"version":3,"file":"GetColumnsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetColumnsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoF;AAEpF,MAAqB,iBAAkB,SAAQ,qBAAW;IACxD,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,18 +1,5 @@
1
- import BaseCommand from "./BaseCommand";
2
- import { Status, SessionHandle, OperationHandle } from "../Types";
3
- export declare type GetCrossReferenceRequest = {
4
- sessionHandle: SessionHandle;
5
- parentCatalogName?: string;
6
- parentSchemaName: string;
7
- parentTableName: string;
8
- foreignCatalogName?: string;
9
- foreignSchemaName: string;
10
- foreignTableName: string;
11
- };
12
- export declare type GetCrossReferenceResponse = {
13
- status: Status;
14
- operationHandle: OperationHandle;
15
- };
1
+ import BaseCommand from './BaseCommand';
2
+ import { TGetCrossReferenceReq, TGetCrossReferenceResp } from '../../../thrift/TCLIService_types';
16
3
  export default class GetCrossReferenceCommand extends BaseCommand {
17
- execute(data: GetCrossReferenceRequest): Promise<GetCrossReferenceResponse>;
4
+ execute(data: TGetCrossReferenceReq): Promise<TGetCrossReferenceResp>;
18
5
  }
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var BaseCommand_1 = __importDefault(require("./BaseCommand"));
22
- var GetCrossReferenceCommand = /** @class */ (function (_super) {
23
- __extends(GetCrossReferenceCommand, _super);
24
- function GetCrossReferenceCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- GetCrossReferenceCommand.prototype.execute = function (data) {
28
- var request = new this.TCLIService_types.TGetCrossReferenceReq(data);
6
+ const BaseCommand_1 = __importDefault(require("./BaseCommand"));
7
+ const TCLIService_types_1 = require("../../../thrift/TCLIService_types");
8
+ class GetCrossReferenceCommand extends BaseCommand_1.default {
9
+ execute(data) {
10
+ const request = new TCLIService_types_1.TGetCrossReferenceReq(data);
29
11
  return this.executeCommand(request, this.client.GetCrossReference);
30
- };
31
- return GetCrossReferenceCommand;
32
- }(BaseCommand_1.default));
12
+ }
13
+ }
33
14
  exports.default = GetCrossReferenceCommand;
34
15
  //# sourceMappingURL=GetCrossReferenceCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetCrossReferenceCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCrossReferenceCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAkBxC;IAAsD,4CAAW;IAAjE;;IAMA,CAAC;IALG,0CAAO,GAAP,UAAQ,IAA8B;QAClC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC,cAAc,CAA4B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAClG,CAAC;IACL,+BAAC;AAAD,CAAC,AAND,CAAsD,qBAAW,GAMhE"}
1
+ {"version":3,"file":"GetCrossReferenceCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCrossReferenceCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAkG;AAElG,MAAqB,wBAAyB,SAAQ,qBAAW;IAC/D,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,14 +1,5 @@
1
- import BaseCommand from "./BaseCommand";
2
- import { Status, SessionHandle } from "../Types";
3
- export declare type GetDelegationTokenRequest = {
4
- sessionHandle: SessionHandle;
5
- owner: string;
6
- renewer: string;
7
- };
8
- export declare type GetDelegationTokenResponse = {
9
- status: Status;
10
- delegationToken?: string;
11
- };
1
+ import BaseCommand from './BaseCommand';
2
+ import { TGetDelegationTokenReq, TGetDelegationTokenResp } from '../../../thrift/TCLIService_types';
12
3
  export default class GetDelegationTokenCommand extends BaseCommand {
13
- execute(data: GetDelegationTokenRequest): Promise<GetDelegationTokenResponse>;
4
+ execute(data: TGetDelegationTokenReq): Promise<TGetDelegationTokenResp>;
14
5
  }
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var BaseCommand_1 = __importDefault(require("./BaseCommand"));
22
- var GetDelegationTokenCommand = /** @class */ (function (_super) {
23
- __extends(GetDelegationTokenCommand, _super);
24
- function GetDelegationTokenCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- GetDelegationTokenCommand.prototype.execute = function (data) {
28
- var request = new this.TCLIService_types.TGetDelegationTokenReq(data);
6
+ const BaseCommand_1 = __importDefault(require("./BaseCommand"));
7
+ const TCLIService_types_1 = require("../../../thrift/TCLIService_types");
8
+ class GetDelegationTokenCommand extends BaseCommand_1.default {
9
+ execute(data) {
10
+ const request = new TCLIService_types_1.TGetDelegationTokenReq(data);
29
11
  return this.executeCommand(request, this.client.GetDelegationToken);
30
- };
31
- return GetDelegationTokenCommand;
32
- }(BaseCommand_1.default));
12
+ }
13
+ }
33
14
  exports.default = GetDelegationTokenCommand;
34
15
  //# sourceMappingURL=GetDelegationTokenCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAcxC;IAAuD,6CAAW;IAAlE;;IAMA,CAAC;IALG,2CAAO,GAAP,UAAQ,IAA+B;QACnC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAExE,OAAO,IAAI,CAAC,cAAc,CAA6B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACpG,CAAC;IACL,gCAAC;AAAD,CAAC,AAND,CAAuD,qBAAW,GAMjE"}
1
+ {"version":3,"file":"GetDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoG;AAEpG,MAAqB,yBAA0B,SAAQ,qBAAW;IAChE,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,15 +1,5 @@
1
- import BaseCommand from "./BaseCommand";
2
- import { Status, SessionHandle, OperationHandle } from "../Types";
3
- export declare type GetFunctionsRequest = {
4
- sessionHandle: SessionHandle;
5
- catalogName?: string;
6
- schemaName?: string;
7
- functionName: string;
8
- };
9
- export declare type GetFunctionsResponse = {
10
- status: Status;
11
- operationHandle: OperationHandle;
12
- };
1
+ import BaseCommand from './BaseCommand';
2
+ import { TGetFunctionsReq, TGetFunctionsResp } from '../../../thrift/TCLIService_types';
13
3
  export default class GetFunctionsCommand extends BaseCommand {
14
- execute(data: GetFunctionsRequest): Promise<GetFunctionsResponse>;
4
+ execute(data: TGetFunctionsReq): Promise<TGetFunctionsResp>;
15
5
  }
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var BaseCommand_1 = __importDefault(require("./BaseCommand"));
22
- var GetFunctionsCommand = /** @class */ (function (_super) {
23
- __extends(GetFunctionsCommand, _super);
24
- function GetFunctionsCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- GetFunctionsCommand.prototype.execute = function (data) {
28
- var request = new this.TCLIService_types.TGetFunctionsReq(data);
6
+ const BaseCommand_1 = __importDefault(require("./BaseCommand"));
7
+ const TCLIService_types_1 = require("../../../thrift/TCLIService_types");
8
+ class GetFunctionsCommand extends BaseCommand_1.default {
9
+ execute(data) {
10
+ const request = new TCLIService_types_1.TGetFunctionsReq(data);
29
11
  return this.executeCommand(request, this.client.GetFunctions);
30
- };
31
- return GetFunctionsCommand;
32
- }(BaseCommand_1.default));
12
+ }
13
+ }
33
14
  exports.default = GetFunctionsCommand;
34
15
  //# sourceMappingURL=GetFunctionsCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetFunctionsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetFunctionsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAexC;IAAiD,uCAAW;IAA5D;;IAMA,CAAC;IALG,qCAAO,GAAP,UAAQ,IAAyB;QAC7B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,cAAc,CAAuB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACxF,CAAC;IACL,0BAAC;AAAD,CAAC,AAND,CAAiD,qBAAW,GAM3D"}
1
+ {"version":3,"file":"GetFunctionsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetFunctionsCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAwF;AAExF,MAAqB,mBAAoB,SAAQ,qBAAW;IAC1D,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,16 +1,5 @@
1
- import BaseCommand from "./BaseCommand";
2
- import { Status, GetInfoValue, SessionHandle } from "../Types";
3
- /**
4
- * @param infoType TCLISErvice_types.TGetInfoType
5
- */
6
- export declare type GetInfoRequest = {
7
- sessionHandle: SessionHandle;
8
- infoType: number;
9
- };
10
- export declare type GetInfoResponse = {
11
- status: Status;
12
- infoValue: GetInfoValue;
13
- };
1
+ import BaseCommand from './BaseCommand';
2
+ import { TGetInfoReq, TGetInfoResp } from '../../../thrift/TCLIService_types';
14
3
  export default class GetInfoCommand extends BaseCommand {
15
- execute(data: GetInfoRequest): Promise<GetInfoResponse>;
4
+ execute(data: TGetInfoReq): Promise<TGetInfoResp>;
16
5
  }
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var BaseCommand_1 = __importDefault(require("./BaseCommand"));
22
- var GetInfoCommand = /** @class */ (function (_super) {
23
- __extends(GetInfoCommand, _super);
24
- function GetInfoCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- GetInfoCommand.prototype.execute = function (data) {
28
- var request = new this.TCLIService_types.TGetInfoReq(data);
6
+ const BaseCommand_1 = __importDefault(require("./BaseCommand"));
7
+ const TCLIService_types_1 = require("../../../thrift/TCLIService_types");
8
+ class GetInfoCommand extends BaseCommand_1.default {
9
+ execute(data) {
10
+ const request = new TCLIService_types_1.TGetInfoReq(data);
29
11
  return this.executeCommand(request, this.client.GetInfo);
30
- };
31
- return GetInfoCommand;
32
- }(BaseCommand_1.default));
12
+ }
13
+ }
33
14
  exports.default = GetInfoCommand;
34
15
  //# sourceMappingURL=GetInfoCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetInfoCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetInfoCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAgBxC;IAA4C,kCAAW;IAAvD;;IAMA,CAAC;IALG,gCAAO,GAAP,UAAQ,IAAoB;QACxB,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAE7D,OAAO,IAAI,CAAC,cAAc,CAAkB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9E,CAAC;IACL,qBAAC;AAAD,CAAC,AAND,CAA4C,qBAAW,GAMtD"}
1
+ {"version":3,"file":"GetInfoCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetInfoCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAA8E;AAE9E,MAAqB,cAAe,SAAQ,qBAAW;IACrD,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,23 +1,5 @@
1
- /// <reference types="node" />
2
- import BaseCommand from "./BaseCommand";
3
- import { Status, OperationHandle, ProgressUpdateResponse } from "../Types";
4
- export declare type GetOperationStatusRequest = {
5
- operationHandle: OperationHandle;
6
- getProgressUpdate?: boolean;
7
- };
8
- export declare type GetOperationStatusResponse = {
9
- status: Status;
10
- operationState?: number;
11
- sqlState?: string;
12
- errorCode?: number;
13
- errorMessage?: string;
14
- taskStatus?: string;
15
- operationStarted?: Buffer;
16
- operationCompleted?: Buffer;
17
- hasResultSet?: boolean;
18
- progressUpdateResponse?: ProgressUpdateResponse;
19
- numModifiedRows?: Buffer;
20
- };
1
+ import BaseCommand from './BaseCommand';
2
+ import { TGetOperationStatusReq, TGetOperationStatusResp } from '../../../thrift/TCLIService_types';
21
3
  export default class GetOperationStatusCommand extends BaseCommand {
22
- execute(data: GetOperationStatusRequest): Promise<GetOperationStatusResponse>;
4
+ execute(data: TGetOperationStatusReq): Promise<TGetOperationStatusResp>;
23
5
  }
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var BaseCommand_1 = __importDefault(require("./BaseCommand"));
22
- var GetOperationStatusCommand = /** @class */ (function (_super) {
23
- __extends(GetOperationStatusCommand, _super);
24
- function GetOperationStatusCommand() {
25
- return _super !== null && _super.apply(this, arguments) || this;
26
- }
27
- GetOperationStatusCommand.prototype.execute = function (data) {
28
- var request = new this.TCLIService_types.TGetOperationStatusReq(data);
6
+ const BaseCommand_1 = __importDefault(require("./BaseCommand"));
7
+ const TCLIService_types_1 = require("../../../thrift/TCLIService_types");
8
+ class GetOperationStatusCommand extends BaseCommand_1.default {
9
+ execute(data) {
10
+ const request = new TCLIService_types_1.TGetOperationStatusReq(data);
29
11
  return this.executeCommand(request, this.client.GetOperationStatus);
30
- };
31
- return GetOperationStatusCommand;
32
- }(BaseCommand_1.default));
12
+ }
13
+ }
33
14
  exports.default = GetOperationStatusCommand;
34
15
  //# sourceMappingURL=GetOperationStatusCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetOperationStatusCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetOperationStatusCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAsBxC;IAAuD,6CAAW;IAAlE;;IAMA,CAAC;IALG,2CAAO,GAAP,UAAQ,IAA+B;QACnC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAExE,OAAO,IAAI,CAAC,cAAc,CAA6B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACpG,CAAC;IACL,gCAAC;AAAD,CAAC,AAND,CAAuD,qBAAW,GAMjE"}
1
+ {"version":3,"file":"GetOperationStatusCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetOperationStatusCommand.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,yEAAoG;AAEpG,MAAqB,yBAA0B,SAAQ,qBAAW;IAChE,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"}