@databricks/sql 0.1.8-beta.1 → 1.0.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/CHANGELOG.md +45 -1
- package/NOTICE +35 -0
- package/README.md +41 -20
- package/dist/DBSQLClient.d.ts +34 -39
- package/dist/DBSQLClient.js +137 -98
- package/dist/DBSQLClient.js.map +1 -1
- package/dist/DBSQLLogger.d.ts +12 -0
- package/dist/DBSQLLogger.js +43 -0
- package/dist/DBSQLLogger.js.map +1 -0
- package/dist/DBSQLOperation/CompleteOperationHelper.d.ts +13 -0
- package/dist/DBSQLOperation/CompleteOperationHelper.js +61 -0
- package/dist/DBSQLOperation/CompleteOperationHelper.js.map +1 -0
- package/dist/DBSQLOperation/FetchResultsHelper.d.ts +14 -0
- package/dist/DBSQLOperation/FetchResultsHelper.js +79 -0
- package/dist/DBSQLOperation/FetchResultsHelper.js.map +1 -0
- package/dist/DBSQLOperation/OperationStatusHelper.d.ts +17 -0
- package/dist/DBSQLOperation/OperationStatusHelper.js +115 -0
- package/dist/DBSQLOperation/OperationStatusHelper.js.map +1 -0
- package/dist/DBSQLOperation/SchemaHelper.d.ts +10 -0
- package/dist/DBSQLOperation/SchemaHelper.js +39 -0
- package/dist/DBSQLOperation/SchemaHelper.js.map +1 -0
- package/dist/DBSQLOperation/getResult.d.ts +2 -0
- package/dist/DBSQLOperation/getResult.js +19 -0
- package/dist/DBSQLOperation/getResult.js.map +1 -0
- package/dist/DBSQLOperation/index.d.ts +55 -0
- package/dist/DBSQLOperation/index.js +139 -0
- package/dist/DBSQLOperation/index.js.map +1 -0
- package/dist/DBSQLSession.d.ts +99 -0
- package/dist/DBSQLSession.js +187 -0
- package/dist/DBSQLSession.js.map +1 -0
- package/dist/connection/auth/NoSaslAuthentication.d.ts +2 -2
- package/dist/connection/auth/NoSaslAuthentication.js +9 -9
- package/dist/connection/auth/NoSaslAuthentication.js.map +1 -1
- package/dist/connection/auth/PlainHttpAuthentication.d.ts +2 -2
- package/dist/connection/auth/PlainHttpAuthentication.js +9 -21
- package/dist/connection/auth/PlainHttpAuthentication.js.map +1 -1
- package/dist/connection/auth/helpers/SaslPackageFactory.js +5 -9
- package/dist/connection/auth/helpers/SaslPackageFactory.js.map +1 -1
- package/dist/connection/connections/HttpConnection.d.ts +4 -4
- package/dist/connection/connections/HttpConnection.js +42 -47
- package/dist/connection/connections/HttpConnection.js.map +1 -1
- package/dist/connection/contracts/IAuthentication.d.ts +1 -1
- package/dist/connection/transports/HttpTransport.d.ts +1 -1
- package/dist/connection/transports/HttpTransport.js +16 -31
- package/dist/connection/transports/HttpTransport.js.map +1 -1
- package/dist/contracts/IDBSQLClient.d.ts +21 -0
- package/dist/contracts/{IHiveClient.js → IDBSQLClient.js} +1 -1
- package/dist/contracts/IDBSQLClient.js.map +1 -0
- package/dist/contracts/IDBSQLLogger.d.ts +13 -0
- package/dist/contracts/IDBSQLLogger.js +11 -0
- package/dist/contracts/IDBSQLLogger.js.map +1 -0
- package/dist/contracts/{IHiveSession.d.ts → IDBSQLSession.d.ts} +59 -45
- package/dist/contracts/{IHiveSession.js → IDBSQLSession.js} +1 -1
- package/dist/contracts/IDBSQLSession.js.map +1 -0
- package/dist/contracts/IOperation.d.ts +26 -23
- package/dist/dto/InfoValue.d.ts +5 -3
- package/dist/dto/InfoValue.js +11 -14
- package/dist/dto/InfoValue.js.map +1 -1
- package/dist/dto/Status.js +9 -10
- package/dist/dto/Status.js.map +1 -1
- package/dist/errors/AuthenticationError.d.ts +1 -1
- package/dist/errors/AuthenticationError.js +3 -23
- package/dist/errors/AuthenticationError.js.map +1 -1
- package/dist/errors/HiveDriverError.js +2 -22
- package/dist/errors/HiveDriverError.js.map +1 -1
- package/dist/errors/OperationStateError.d.ts +4 -4
- package/dist/errors/OperationStateError.js +6 -24
- package/dist/errors/OperationStateError.js.map +1 -1
- package/dist/errors/StatusError.d.ts +2 -2
- package/dist/errors/StatusError.js +3 -4
- package/dist/errors/StatusError.js.map +1 -1
- package/dist/factory/StatusFactory.d.ts +2 -4
- package/dist/factory/StatusFactory.js +16 -21
- package/dist/factory/StatusFactory.js.map +1 -1
- package/dist/hive/Commands/BaseCommand.d.ts +3 -4
- package/dist/hive/Commands/BaseCommand.js +10 -12
- package/dist/hive/Commands/BaseCommand.js.map +1 -1
- package/dist/hive/Commands/CancelDelegationTokenCommand.d.ts +3 -10
- package/dist/hive/Commands/CancelDelegationTokenCommand.js +7 -26
- package/dist/hive/Commands/CancelDelegationTokenCommand.js.map +1 -1
- package/dist/hive/Commands/CancelOperationCommand.d.ts +3 -9
- package/dist/hive/Commands/CancelOperationCommand.js +7 -26
- package/dist/hive/Commands/CancelOperationCommand.js.map +1 -1
- package/dist/hive/Commands/CloseOperationCommand.d.ts +3 -9
- package/dist/hive/Commands/CloseOperationCommand.js +7 -26
- package/dist/hive/Commands/CloseOperationCommand.js.map +1 -1
- package/dist/hive/Commands/CloseSessionCommand.d.ts +3 -9
- package/dist/hive/Commands/CloseSessionCommand.js +7 -26
- package/dist/hive/Commands/CloseSessionCommand.js.map +1 -1
- package/dist/hive/Commands/ExecuteStatementCommand.d.ts +3 -15
- package/dist/hive/Commands/ExecuteStatementCommand.js +7 -26
- package/dist/hive/Commands/ExecuteStatementCommand.js.map +1 -1
- package/dist/hive/Commands/FetchResultsCommand.d.ts +4 -16
- package/dist/hive/Commands/FetchResultsCommand.js +10 -26
- package/dist/hive/Commands/FetchResultsCommand.js.map +1 -1
- package/dist/hive/Commands/GetCatalogsCommand.d.ts +3 -10
- package/dist/hive/Commands/GetCatalogsCommand.js +7 -26
- package/dist/hive/Commands/GetCatalogsCommand.js.map +1 -1
- package/dist/hive/Commands/GetColumnsCommand.d.ts +3 -14
- package/dist/hive/Commands/GetColumnsCommand.js +7 -26
- package/dist/hive/Commands/GetColumnsCommand.js.map +1 -1
- package/dist/hive/Commands/GetCrossReferenceCommand.d.ts +3 -16
- package/dist/hive/Commands/GetCrossReferenceCommand.js +7 -26
- package/dist/hive/Commands/GetCrossReferenceCommand.js.map +1 -1
- package/dist/hive/Commands/GetDelegationTokenCommand.d.ts +3 -12
- package/dist/hive/Commands/GetDelegationTokenCommand.js +7 -26
- package/dist/hive/Commands/GetDelegationTokenCommand.js.map +1 -1
- package/dist/hive/Commands/GetFunctionsCommand.d.ts +3 -13
- package/dist/hive/Commands/GetFunctionsCommand.js +7 -26
- package/dist/hive/Commands/GetFunctionsCommand.js.map +1 -1
- package/dist/hive/Commands/GetInfoCommand.d.ts +3 -14
- package/dist/hive/Commands/GetInfoCommand.js +7 -26
- package/dist/hive/Commands/GetInfoCommand.js.map +1 -1
- package/dist/hive/Commands/GetOperationStatusCommand.d.ts +3 -21
- package/dist/hive/Commands/GetOperationStatusCommand.js +7 -26
- package/dist/hive/Commands/GetOperationStatusCommand.js.map +1 -1
- package/dist/hive/Commands/GetPrimaryKeysCommand.d.ts +3 -13
- package/dist/hive/Commands/GetPrimaryKeysCommand.js +7 -26
- package/dist/hive/Commands/GetPrimaryKeysCommand.js.map +1 -1
- package/dist/hive/Commands/GetResultSetMetadataCommand.d.ts +3 -10
- package/dist/hive/Commands/GetResultSetMetadataCommand.js +7 -26
- package/dist/hive/Commands/GetResultSetMetadataCommand.js.map +1 -1
- package/dist/hive/Commands/GetSchemasCommand.d.ts +3 -12
- package/dist/hive/Commands/GetSchemasCommand.js +7 -26
- package/dist/hive/Commands/GetSchemasCommand.js.map +1 -1
- package/dist/hive/Commands/GetTableTypesCommand.d.ts +3 -10
- package/dist/hive/Commands/GetTableTypesCommand.js +7 -26
- package/dist/hive/Commands/GetTableTypesCommand.js.map +1 -1
- package/dist/hive/Commands/GetTablesCommand.d.ts +3 -14
- package/dist/hive/Commands/GetTablesCommand.js +7 -26
- package/dist/hive/Commands/GetTablesCommand.js.map +1 -1
- package/dist/hive/Commands/GetTypeInfoCommand.d.ts +3 -10
- package/dist/hive/Commands/GetTypeInfoCommand.js +7 -26
- package/dist/hive/Commands/GetTypeInfoCommand.js.map +1 -1
- package/dist/hive/Commands/OpenSessionCommand.d.ts +9 -28
- package/dist/hive/Commands/OpenSessionCommand.js +16 -26
- package/dist/hive/Commands/OpenSessionCommand.js.map +1 -1
- package/dist/hive/Commands/RenewDelegationTokenCommand.d.ts +3 -10
- package/dist/hive/Commands/RenewDelegationTokenCommand.js +7 -26
- package/dist/hive/Commands/RenewDelegationTokenCommand.js.map +1 -1
- package/dist/hive/HiveDriver.d.ts +24 -49
- package/dist/hive/HiveDriver.js +87 -99
- package/dist/hive/HiveDriver.js.map +1 -1
- package/dist/hive/Types/index.d.ts +7 -218
- package/dist/hive/Types/index.js +11 -2
- package/dist/hive/Types/index.js.map +1 -1
- package/dist/index.d.ts +16 -16
- package/dist/index.js +19 -51
- package/dist/index.js.map +1 -1
- package/dist/result/IOperationResult.d.ts +0 -2
- package/dist/result/JsonResult.d.ts +5 -8
- package/dist/result/JsonResult.js +81 -99
- package/dist/result/JsonResult.js.map +1 -1
- package/dist/result/NullResult.d.ts +1 -3
- package/dist/result/NullResult.js +4 -8
- package/dist/result/NullResult.js.map +1 -1
- package/dist/utils/buildUserAgentString.d.ts +1 -0
- package/dist/utils/buildUserAgentString.js +25 -0
- package/dist/utils/buildUserAgentString.js.map +1 -0
- package/dist/utils/definedOrError.d.ts +1 -0
- package/dist/utils/definedOrError.js +10 -0
- package/dist/utils/definedOrError.js.map +1 -0
- package/dist/utils/formatProgress.d.ts +9 -0
- package/dist/utils/formatProgress.js +24 -0
- package/dist/utils/formatProgress.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +37 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +28 -7
- package/thrift/TCLIService.d.ts +196 -0
- package/thrift/{gen-nodejs/TCLIService.js → TCLIService.js} +1 -397
- package/thrift/TCLIService_types.d.ts +947 -0
- package/thrift/{gen-nodejs/TCLIService_types.js → TCLIService_types.js} +2830 -516
- package/.gitattributes +0 -32
- package/CONTRIBUTING.md +0 -55
- package/dist/HiveClient.d.ts +0 -35
- package/dist/HiveClient.js +0 -156
- package/dist/HiveClient.js.map +0 -1
- package/dist/HiveOperation.d.ts +0 -65
- package/dist/HiveOperation.js +0 -190
- package/dist/HiveOperation.js.map +0 -1
- package/dist/HiveSession.d.ts +0 -30
- package/dist/HiveSession.js +0 -197
- package/dist/HiveSession.js.map +0 -1
- package/dist/contracts/IHiveClient.d.ts +0 -10
- package/dist/contracts/IHiveClient.js.map +0 -1
- package/dist/contracts/IHiveSession.js.map +0 -1
- package/dist/hive/Commands/GetQueryIdCommand.d.ts +0 -11
- package/dist/hive/Commands/GetQueryIdCommand.js +0 -34
- package/dist/hive/Commands/GetQueryIdCommand.js.map +0 -1
- package/dist/hive/Commands/SetClientInfoCommand.d.ts +0 -12
- package/dist/hive/Commands/SetClientInfoCommand.js +0 -34
- package/dist/hive/Commands/SetClientInfoCommand.js.map +0 -1
- package/dist/utils/GetResult.d.ts +0 -16
- package/dist/utils/GetResult.js +0 -38
- package/dist/utils/GetResult.js.map +0 -1
- package/dist/utils/HiveUtils.d.ts +0 -11
- package/dist/utils/HiveUtils.js +0 -39
- package/dist/utils/HiveUtils.js.map +0 -1
- package/dist/utils/ProgressUpdateTransformer.d.ts +0 -8
- package/dist/utils/ProgressUpdateTransformer.js +0 -33
- package/dist/utils/ProgressUpdateTransformer.js.map +0 -1
- package/dist/utils/WaitUntilReady.d.ts +0 -16
- package/dist/utils/WaitUntilReady.js +0 -120
- package/dist/utils/WaitUntilReady.js.map +0 -1
- package/docs/readme.md +0 -227
- package/docs/troubleshooting.md +0 -84
- package/examples/data_types.js +0 -173
- package/examples/repl +0 -106
- package/examples/session.js +0 -55
- package/examples/usage.js +0 -18
- package/nyc.config.js +0 -8
- package/tests/e2e/data_types.test.js +0 -353
- package/tests/e2e/utils/config.js +0 -20
- package/tests/e2e/utils/logger.js +0 -22
- package/tests/unit/HiveClient.test.js +0 -153
- package/tests/unit/HiveOperation.test.js +0 -340
- package/tests/unit/HiveSession.test.js +0 -146
- package/tests/unit/connection/auth/PlainHttpAuthentication.test.js +0 -44
- package/tests/unit/connection/connections/HttpConnection.test.js +0 -141
- package/tests/unit/dto/InfoValue.test.js +0 -50
- package/tests/unit/factory/StatusFactory.test.js +0 -62
- package/tests/unit/hive/HiveDriver.test.js +0 -115
- package/tests/unit/hive/commands/CancelDelegationTokenCommand.test.js +0 -43
- package/tests/unit/hive/commands/CancelOperationCommand.test.js +0 -45
- package/tests/unit/hive/commands/CloseOperationCommand.test.js +0 -45
- package/tests/unit/hive/commands/CloseSessionCommand.test.js +0 -38
- package/tests/unit/hive/commands/ExecuteStatementCommand.test.js +0 -54
- package/tests/unit/hive/commands/FetchResultsCommand.test.js +0 -59
- package/tests/unit/hive/commands/GetCatalogsCommand.test.js +0 -50
- package/tests/unit/hive/commands/GetColumnsCommand.test.js +0 -50
- package/tests/unit/hive/commands/GetCrossReferenceCommand.test.js +0 -56
- package/tests/unit/hive/commands/GetDelegationTokenCommand.test.js +0 -45
- package/tests/unit/hive/commands/GetFunctionsCommand.test.js +0 -50
- package/tests/unit/hive/commands/GetInfoCommand.test.js +0 -51
- package/tests/unit/hive/commands/GetOperationStatusCommand.test.js +0 -63
- package/tests/unit/hive/commands/GetPrimaryKeysCommand.test.js +0 -50
- package/tests/unit/hive/commands/GetQueryIdCommand.test.js +0 -42
- package/tests/unit/hive/commands/GetResultSetMetadataCommand.test.js +0 -54
- package/tests/unit/hive/commands/GetSchemasCommand.test.js +0 -52
- package/tests/unit/hive/commands/GetTableTypesCommand.test.js +0 -50
- package/tests/unit/hive/commands/GetTablesCommand.test.js +0 -54
- package/tests/unit/hive/commands/GetTypeInfoCommand.test.js +0 -50
- package/tests/unit/hive/commands/OpenSessionCommand.test.js +0 -43
- package/tests/unit/hive/commands/RenewDelegationTokenCommand.test.js +0 -43
- package/tests/unit/hive/commands/SetClientInfoCommand.test.js +0 -45
- package/tests/unit/result/JsonResult.test.js +0 -295
- package/tests/unit/utils/GetResult.test.js +0 -30
- package/tests/unit/utils/HiveUtils.test.js +0 -60
- package/tests/unit/utils/ProgressUpdateTransformer.test.js +0 -28
- package/tests/unit/utils/WaitUntilReady.test.js +0 -105
- package/thrift/TCLIService.thrift +0 -1299
- package/tsconfig.json +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Autogenerated by Thrift Compiler (0.
|
|
2
|
+
// Autogenerated by Thrift Compiler (0.16.0)
|
|
3
3
|
//
|
|
4
4
|
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
5
|
//
|
|
@@ -13,133 +13,285 @@ var Int64 = require('node-int64');
|
|
|
13
13
|
|
|
14
14
|
var ttypes = module.exports = {};
|
|
15
15
|
ttypes.TProtocolVersion = {
|
|
16
|
+
'-7' : '__HIVE_JDBC_WORKAROUND',
|
|
17
|
+
'__HIVE_JDBC_WORKAROUND' : -7,
|
|
18
|
+
'65281' : '__TEST_PROTOCOL_VERSION',
|
|
19
|
+
'__TEST_PROTOCOL_VERSION' : 65281,
|
|
20
|
+
'0' : 'HIVE_CLI_SERVICE_PROTOCOL_V1',
|
|
16
21
|
'HIVE_CLI_SERVICE_PROTOCOL_V1' : 0,
|
|
22
|
+
'1' : 'HIVE_CLI_SERVICE_PROTOCOL_V2',
|
|
17
23
|
'HIVE_CLI_SERVICE_PROTOCOL_V2' : 1,
|
|
24
|
+
'2' : 'HIVE_CLI_SERVICE_PROTOCOL_V3',
|
|
18
25
|
'HIVE_CLI_SERVICE_PROTOCOL_V3' : 2,
|
|
26
|
+
'3' : 'HIVE_CLI_SERVICE_PROTOCOL_V4',
|
|
19
27
|
'HIVE_CLI_SERVICE_PROTOCOL_V4' : 3,
|
|
28
|
+
'4' : 'HIVE_CLI_SERVICE_PROTOCOL_V5',
|
|
20
29
|
'HIVE_CLI_SERVICE_PROTOCOL_V5' : 4,
|
|
30
|
+
'5' : 'HIVE_CLI_SERVICE_PROTOCOL_V6',
|
|
21
31
|
'HIVE_CLI_SERVICE_PROTOCOL_V6' : 5,
|
|
32
|
+
'6' : 'HIVE_CLI_SERVICE_PROTOCOL_V7',
|
|
22
33
|
'HIVE_CLI_SERVICE_PROTOCOL_V7' : 6,
|
|
34
|
+
'7' : 'HIVE_CLI_SERVICE_PROTOCOL_V8',
|
|
23
35
|
'HIVE_CLI_SERVICE_PROTOCOL_V8' : 7,
|
|
36
|
+
'8' : 'HIVE_CLI_SERVICE_PROTOCOL_V9',
|
|
24
37
|
'HIVE_CLI_SERVICE_PROTOCOL_V9' : 8,
|
|
38
|
+
'9' : 'HIVE_CLI_SERVICE_PROTOCOL_V10',
|
|
25
39
|
'HIVE_CLI_SERVICE_PROTOCOL_V10' : 9,
|
|
26
|
-
'
|
|
40
|
+
'42241' : 'SPARK_CLI_SERVICE_PROTOCOL_V1',
|
|
41
|
+
'SPARK_CLI_SERVICE_PROTOCOL_V1' : 42241,
|
|
42
|
+
'42242' : 'SPARK_CLI_SERVICE_PROTOCOL_V2',
|
|
43
|
+
'SPARK_CLI_SERVICE_PROTOCOL_V2' : 42242,
|
|
44
|
+
'42243' : 'SPARK_CLI_SERVICE_PROTOCOL_V3',
|
|
45
|
+
'SPARK_CLI_SERVICE_PROTOCOL_V3' : 42243,
|
|
46
|
+
'42244' : 'SPARK_CLI_SERVICE_PROTOCOL_V4',
|
|
47
|
+
'SPARK_CLI_SERVICE_PROTOCOL_V4' : 42244,
|
|
48
|
+
'42245' : 'SPARK_CLI_SERVICE_PROTOCOL_V5',
|
|
49
|
+
'SPARK_CLI_SERVICE_PROTOCOL_V5' : 42245,
|
|
50
|
+
'42246' : 'SPARK_CLI_SERVICE_PROTOCOL_V6',
|
|
51
|
+
'SPARK_CLI_SERVICE_PROTOCOL_V6' : 42246
|
|
27
52
|
};
|
|
28
53
|
ttypes.TTypeId = {
|
|
54
|
+
'0' : 'BOOLEAN_TYPE',
|
|
29
55
|
'BOOLEAN_TYPE' : 0,
|
|
56
|
+
'1' : 'TINYINT_TYPE',
|
|
30
57
|
'TINYINT_TYPE' : 1,
|
|
58
|
+
'2' : 'SMALLINT_TYPE',
|
|
31
59
|
'SMALLINT_TYPE' : 2,
|
|
60
|
+
'3' : 'INT_TYPE',
|
|
32
61
|
'INT_TYPE' : 3,
|
|
62
|
+
'4' : 'BIGINT_TYPE',
|
|
33
63
|
'BIGINT_TYPE' : 4,
|
|
64
|
+
'5' : 'FLOAT_TYPE',
|
|
34
65
|
'FLOAT_TYPE' : 5,
|
|
66
|
+
'6' : 'DOUBLE_TYPE',
|
|
35
67
|
'DOUBLE_TYPE' : 6,
|
|
68
|
+
'7' : 'STRING_TYPE',
|
|
36
69
|
'STRING_TYPE' : 7,
|
|
70
|
+
'8' : 'TIMESTAMP_TYPE',
|
|
37
71
|
'TIMESTAMP_TYPE' : 8,
|
|
72
|
+
'9' : 'BINARY_TYPE',
|
|
38
73
|
'BINARY_TYPE' : 9,
|
|
74
|
+
'10' : 'ARRAY_TYPE',
|
|
39
75
|
'ARRAY_TYPE' : 10,
|
|
76
|
+
'11' : 'MAP_TYPE',
|
|
40
77
|
'MAP_TYPE' : 11,
|
|
78
|
+
'12' : 'STRUCT_TYPE',
|
|
41
79
|
'STRUCT_TYPE' : 12,
|
|
80
|
+
'13' : 'UNION_TYPE',
|
|
42
81
|
'UNION_TYPE' : 13,
|
|
82
|
+
'14' : 'USER_DEFINED_TYPE',
|
|
43
83
|
'USER_DEFINED_TYPE' : 14,
|
|
84
|
+
'15' : 'DECIMAL_TYPE',
|
|
44
85
|
'DECIMAL_TYPE' : 15,
|
|
86
|
+
'16' : 'NULL_TYPE',
|
|
45
87
|
'NULL_TYPE' : 16,
|
|
88
|
+
'17' : 'DATE_TYPE',
|
|
46
89
|
'DATE_TYPE' : 17,
|
|
90
|
+
'18' : 'VARCHAR_TYPE',
|
|
47
91
|
'VARCHAR_TYPE' : 18,
|
|
92
|
+
'19' : 'CHAR_TYPE',
|
|
48
93
|
'CHAR_TYPE' : 19,
|
|
94
|
+
'20' : 'INTERVAL_YEAR_MONTH_TYPE',
|
|
49
95
|
'INTERVAL_YEAR_MONTH_TYPE' : 20,
|
|
50
|
-
'
|
|
51
|
-
'
|
|
96
|
+
'21' : 'INTERVAL_DAY_TIME_TYPE',
|
|
97
|
+
'INTERVAL_DAY_TIME_TYPE' : 21
|
|
98
|
+
};
|
|
99
|
+
ttypes.TSparkRowSetType = {
|
|
100
|
+
'0' : 'ARROW_BASED_SET',
|
|
101
|
+
'ARROW_BASED_SET' : 0,
|
|
102
|
+
'1' : 'COLUMN_BASED_SET',
|
|
103
|
+
'COLUMN_BASED_SET' : 1,
|
|
104
|
+
'2' : 'ROW_BASED_SET',
|
|
105
|
+
'ROW_BASED_SET' : 2,
|
|
106
|
+
'3' : 'URL_BASED_SET',
|
|
107
|
+
'URL_BASED_SET' : 3
|
|
108
|
+
};
|
|
109
|
+
ttypes.TOperationIdempotencyType = {
|
|
110
|
+
'0' : 'UNKNOWN',
|
|
111
|
+
'UNKNOWN' : 0,
|
|
112
|
+
'1' : 'NON_IDEMPOTENT',
|
|
113
|
+
'NON_IDEMPOTENT' : 1,
|
|
114
|
+
'2' : 'IDEMPOTENT',
|
|
115
|
+
'IDEMPOTENT' : 2
|
|
52
116
|
};
|
|
53
117
|
ttypes.TStatusCode = {
|
|
118
|
+
'0' : 'SUCCESS_STATUS',
|
|
54
119
|
'SUCCESS_STATUS' : 0,
|
|
120
|
+
'1' : 'SUCCESS_WITH_INFO_STATUS',
|
|
55
121
|
'SUCCESS_WITH_INFO_STATUS' : 1,
|
|
122
|
+
'2' : 'STILL_EXECUTING_STATUS',
|
|
56
123
|
'STILL_EXECUTING_STATUS' : 2,
|
|
124
|
+
'3' : 'ERROR_STATUS',
|
|
57
125
|
'ERROR_STATUS' : 3,
|
|
126
|
+
'4' : 'INVALID_HANDLE_STATUS',
|
|
58
127
|
'INVALID_HANDLE_STATUS' : 4
|
|
59
128
|
};
|
|
60
129
|
ttypes.TOperationState = {
|
|
130
|
+
'0' : 'INITIALIZED_STATE',
|
|
61
131
|
'INITIALIZED_STATE' : 0,
|
|
132
|
+
'1' : 'RUNNING_STATE',
|
|
62
133
|
'RUNNING_STATE' : 1,
|
|
134
|
+
'2' : 'FINISHED_STATE',
|
|
63
135
|
'FINISHED_STATE' : 2,
|
|
136
|
+
'3' : 'CANCELED_STATE',
|
|
64
137
|
'CANCELED_STATE' : 3,
|
|
138
|
+
'4' : 'CLOSED_STATE',
|
|
65
139
|
'CLOSED_STATE' : 4,
|
|
140
|
+
'5' : 'ERROR_STATE',
|
|
66
141
|
'ERROR_STATE' : 5,
|
|
142
|
+
'6' : 'UKNOWN_STATE',
|
|
67
143
|
'UKNOWN_STATE' : 6,
|
|
144
|
+
'7' : 'PENDING_STATE',
|
|
68
145
|
'PENDING_STATE' : 7,
|
|
146
|
+
'8' : 'TIMEDOUT_STATE',
|
|
69
147
|
'TIMEDOUT_STATE' : 8
|
|
70
148
|
};
|
|
71
149
|
ttypes.TOperationType = {
|
|
150
|
+
'0' : 'EXECUTE_STATEMENT',
|
|
72
151
|
'EXECUTE_STATEMENT' : 0,
|
|
152
|
+
'1' : 'GET_TYPE_INFO',
|
|
73
153
|
'GET_TYPE_INFO' : 1,
|
|
154
|
+
'2' : 'GET_CATALOGS',
|
|
74
155
|
'GET_CATALOGS' : 2,
|
|
156
|
+
'3' : 'GET_SCHEMAS',
|
|
75
157
|
'GET_SCHEMAS' : 3,
|
|
158
|
+
'4' : 'GET_TABLES',
|
|
76
159
|
'GET_TABLES' : 4,
|
|
160
|
+
'5' : 'GET_TABLE_TYPES',
|
|
77
161
|
'GET_TABLE_TYPES' : 5,
|
|
162
|
+
'6' : 'GET_COLUMNS',
|
|
78
163
|
'GET_COLUMNS' : 6,
|
|
164
|
+
'7' : 'GET_FUNCTIONS',
|
|
79
165
|
'GET_FUNCTIONS' : 7,
|
|
166
|
+
'8' : 'UNKNOWN',
|
|
80
167
|
'UNKNOWN' : 8
|
|
81
168
|
};
|
|
82
169
|
ttypes.TGetInfoType = {
|
|
170
|
+
'0' : 'CLI_MAX_DRIVER_CONNECTIONS',
|
|
83
171
|
'CLI_MAX_DRIVER_CONNECTIONS' : 0,
|
|
172
|
+
'1' : 'CLI_MAX_CONCURRENT_ACTIVITIES',
|
|
84
173
|
'CLI_MAX_CONCURRENT_ACTIVITIES' : 1,
|
|
174
|
+
'2' : 'CLI_DATA_SOURCE_NAME',
|
|
85
175
|
'CLI_DATA_SOURCE_NAME' : 2,
|
|
176
|
+
'8' : 'CLI_FETCH_DIRECTION',
|
|
86
177
|
'CLI_FETCH_DIRECTION' : 8,
|
|
178
|
+
'13' : 'CLI_SERVER_NAME',
|
|
87
179
|
'CLI_SERVER_NAME' : 13,
|
|
180
|
+
'14' : 'CLI_SEARCH_PATTERN_ESCAPE',
|
|
88
181
|
'CLI_SEARCH_PATTERN_ESCAPE' : 14,
|
|
182
|
+
'17' : 'CLI_DBMS_NAME',
|
|
89
183
|
'CLI_DBMS_NAME' : 17,
|
|
184
|
+
'18' : 'CLI_DBMS_VER',
|
|
90
185
|
'CLI_DBMS_VER' : 18,
|
|
186
|
+
'19' : 'CLI_ACCESSIBLE_TABLES',
|
|
91
187
|
'CLI_ACCESSIBLE_TABLES' : 19,
|
|
188
|
+
'20' : 'CLI_ACCESSIBLE_PROCEDURES',
|
|
92
189
|
'CLI_ACCESSIBLE_PROCEDURES' : 20,
|
|
190
|
+
'23' : 'CLI_CURSOR_COMMIT_BEHAVIOR',
|
|
93
191
|
'CLI_CURSOR_COMMIT_BEHAVIOR' : 23,
|
|
192
|
+
'25' : 'CLI_DATA_SOURCE_READ_ONLY',
|
|
94
193
|
'CLI_DATA_SOURCE_READ_ONLY' : 25,
|
|
194
|
+
'26' : 'CLI_DEFAULT_TXN_ISOLATION',
|
|
95
195
|
'CLI_DEFAULT_TXN_ISOLATION' : 26,
|
|
196
|
+
'28' : 'CLI_IDENTIFIER_CASE',
|
|
96
197
|
'CLI_IDENTIFIER_CASE' : 28,
|
|
198
|
+
'29' : 'CLI_IDENTIFIER_QUOTE_CHAR',
|
|
97
199
|
'CLI_IDENTIFIER_QUOTE_CHAR' : 29,
|
|
200
|
+
'30' : 'CLI_MAX_COLUMN_NAME_LEN',
|
|
98
201
|
'CLI_MAX_COLUMN_NAME_LEN' : 30,
|
|
202
|
+
'31' : 'CLI_MAX_CURSOR_NAME_LEN',
|
|
99
203
|
'CLI_MAX_CURSOR_NAME_LEN' : 31,
|
|
204
|
+
'32' : 'CLI_MAX_SCHEMA_NAME_LEN',
|
|
100
205
|
'CLI_MAX_SCHEMA_NAME_LEN' : 32,
|
|
206
|
+
'34' : 'CLI_MAX_CATALOG_NAME_LEN',
|
|
101
207
|
'CLI_MAX_CATALOG_NAME_LEN' : 34,
|
|
208
|
+
'35' : 'CLI_MAX_TABLE_NAME_LEN',
|
|
102
209
|
'CLI_MAX_TABLE_NAME_LEN' : 35,
|
|
210
|
+
'43' : 'CLI_SCROLL_CONCURRENCY',
|
|
103
211
|
'CLI_SCROLL_CONCURRENCY' : 43,
|
|
212
|
+
'46' : 'CLI_TXN_CAPABLE',
|
|
104
213
|
'CLI_TXN_CAPABLE' : 46,
|
|
214
|
+
'47' : 'CLI_USER_NAME',
|
|
105
215
|
'CLI_USER_NAME' : 47,
|
|
216
|
+
'72' : 'CLI_TXN_ISOLATION_OPTION',
|
|
106
217
|
'CLI_TXN_ISOLATION_OPTION' : 72,
|
|
218
|
+
'73' : 'CLI_INTEGRITY',
|
|
107
219
|
'CLI_INTEGRITY' : 73,
|
|
220
|
+
'81' : 'CLI_GETDATA_EXTENSIONS',
|
|
108
221
|
'CLI_GETDATA_EXTENSIONS' : 81,
|
|
222
|
+
'85' : 'CLI_NULL_COLLATION',
|
|
109
223
|
'CLI_NULL_COLLATION' : 85,
|
|
224
|
+
'86' : 'CLI_ALTER_TABLE',
|
|
110
225
|
'CLI_ALTER_TABLE' : 86,
|
|
226
|
+
'90' : 'CLI_ORDER_BY_COLUMNS_IN_SELECT',
|
|
111
227
|
'CLI_ORDER_BY_COLUMNS_IN_SELECT' : 90,
|
|
228
|
+
'94' : 'CLI_SPECIAL_CHARACTERS',
|
|
112
229
|
'CLI_SPECIAL_CHARACTERS' : 94,
|
|
230
|
+
'97' : 'CLI_MAX_COLUMNS_IN_GROUP_BY',
|
|
113
231
|
'CLI_MAX_COLUMNS_IN_GROUP_BY' : 97,
|
|
232
|
+
'98' : 'CLI_MAX_COLUMNS_IN_INDEX',
|
|
114
233
|
'CLI_MAX_COLUMNS_IN_INDEX' : 98,
|
|
234
|
+
'99' : 'CLI_MAX_COLUMNS_IN_ORDER_BY',
|
|
115
235
|
'CLI_MAX_COLUMNS_IN_ORDER_BY' : 99,
|
|
236
|
+
'100' : 'CLI_MAX_COLUMNS_IN_SELECT',
|
|
116
237
|
'CLI_MAX_COLUMNS_IN_SELECT' : 100,
|
|
238
|
+
'101' : 'CLI_MAX_COLUMNS_IN_TABLE',
|
|
117
239
|
'CLI_MAX_COLUMNS_IN_TABLE' : 101,
|
|
240
|
+
'102' : 'CLI_MAX_INDEX_SIZE',
|
|
118
241
|
'CLI_MAX_INDEX_SIZE' : 102,
|
|
242
|
+
'104' : 'CLI_MAX_ROW_SIZE',
|
|
119
243
|
'CLI_MAX_ROW_SIZE' : 104,
|
|
244
|
+
'105' : 'CLI_MAX_STATEMENT_LEN',
|
|
120
245
|
'CLI_MAX_STATEMENT_LEN' : 105,
|
|
246
|
+
'106' : 'CLI_MAX_TABLES_IN_SELECT',
|
|
121
247
|
'CLI_MAX_TABLES_IN_SELECT' : 106,
|
|
248
|
+
'107' : 'CLI_MAX_USER_NAME_LEN',
|
|
122
249
|
'CLI_MAX_USER_NAME_LEN' : 107,
|
|
250
|
+
'115' : 'CLI_OJ_CAPABILITIES',
|
|
123
251
|
'CLI_OJ_CAPABILITIES' : 115,
|
|
252
|
+
'10000' : 'CLI_XOPEN_CLI_YEAR',
|
|
124
253
|
'CLI_XOPEN_CLI_YEAR' : 10000,
|
|
254
|
+
'10001' : 'CLI_CURSOR_SENSITIVITY',
|
|
125
255
|
'CLI_CURSOR_SENSITIVITY' : 10001,
|
|
256
|
+
'10002' : 'CLI_DESCRIBE_PARAMETER',
|
|
126
257
|
'CLI_DESCRIBE_PARAMETER' : 10002,
|
|
258
|
+
'10003' : 'CLI_CATALOG_NAME',
|
|
127
259
|
'CLI_CATALOG_NAME' : 10003,
|
|
260
|
+
'10004' : 'CLI_COLLATION_SEQ',
|
|
128
261
|
'CLI_COLLATION_SEQ' : 10004,
|
|
129
|
-
'
|
|
130
|
-
'
|
|
262
|
+
'10005' : 'CLI_MAX_IDENTIFIER_LEN',
|
|
263
|
+
'CLI_MAX_IDENTIFIER_LEN' : 10005
|
|
264
|
+
};
|
|
265
|
+
ttypes.TCacheLookupResult = {
|
|
266
|
+
'0' : 'CACHE_INELIGIBLE',
|
|
267
|
+
'CACHE_INELIGIBLE' : 0,
|
|
268
|
+
'1' : 'LOCAL_CACHE_HIT',
|
|
269
|
+
'LOCAL_CACHE_HIT' : 1,
|
|
270
|
+
'2' : 'REMOTE_CACHE_HIT',
|
|
271
|
+
'REMOTE_CACHE_HIT' : 2,
|
|
272
|
+
'3' : 'CACHE_MISS',
|
|
273
|
+
'CACHE_MISS' : 3
|
|
131
274
|
};
|
|
132
275
|
ttypes.TFetchOrientation = {
|
|
276
|
+
'0' : 'FETCH_NEXT',
|
|
133
277
|
'FETCH_NEXT' : 0,
|
|
278
|
+
'1' : 'FETCH_PRIOR',
|
|
134
279
|
'FETCH_PRIOR' : 1,
|
|
280
|
+
'2' : 'FETCH_RELATIVE',
|
|
135
281
|
'FETCH_RELATIVE' : 2,
|
|
282
|
+
'3' : 'FETCH_ABSOLUTE',
|
|
136
283
|
'FETCH_ABSOLUTE' : 3,
|
|
284
|
+
'4' : 'FETCH_FIRST',
|
|
137
285
|
'FETCH_FIRST' : 4,
|
|
286
|
+
'5' : 'FETCH_LAST',
|
|
138
287
|
'FETCH_LAST' : 5
|
|
139
288
|
};
|
|
140
289
|
ttypes.TJobExecutionStatus = {
|
|
290
|
+
'0' : 'IN_PROGRESS',
|
|
141
291
|
'IN_PROGRESS' : 0,
|
|
292
|
+
'1' : 'COMPLETE',
|
|
142
293
|
'COMPLETE' : 1,
|
|
294
|
+
'2' : 'NOT_AVAILABLE',
|
|
143
295
|
'NOT_AVAILABLE' : 2
|
|
144
296
|
};
|
|
145
297
|
var TTypeQualifierValue = module.exports.TTypeQualifierValue = function(args) {
|
|
@@ -2415,12 +2567,202 @@ TColumn.prototype.write = function(output) {
|
|
|
2415
2567
|
return;
|
|
2416
2568
|
};
|
|
2417
2569
|
|
|
2570
|
+
var TSparkArrowBatch = module.exports.TSparkArrowBatch = function(args) {
|
|
2571
|
+
this.batch = null;
|
|
2572
|
+
this.rowCount = null;
|
|
2573
|
+
if (args) {
|
|
2574
|
+
if (args.batch !== undefined && args.batch !== null) {
|
|
2575
|
+
this.batch = args.batch;
|
|
2576
|
+
} else {
|
|
2577
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field batch is unset!');
|
|
2578
|
+
}
|
|
2579
|
+
if (args.rowCount !== undefined && args.rowCount !== null) {
|
|
2580
|
+
this.rowCount = args.rowCount;
|
|
2581
|
+
} else {
|
|
2582
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field rowCount is unset!');
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
};
|
|
2586
|
+
TSparkArrowBatch.prototype = {};
|
|
2587
|
+
TSparkArrowBatch.prototype.read = function(input) {
|
|
2588
|
+
input.readStructBegin();
|
|
2589
|
+
while (true) {
|
|
2590
|
+
var ret = input.readFieldBegin();
|
|
2591
|
+
var ftype = ret.ftype;
|
|
2592
|
+
var fid = ret.fid;
|
|
2593
|
+
if (ftype == Thrift.Type.STOP) {
|
|
2594
|
+
break;
|
|
2595
|
+
}
|
|
2596
|
+
switch (fid) {
|
|
2597
|
+
case 1:
|
|
2598
|
+
if (ftype == Thrift.Type.STRING) {
|
|
2599
|
+
this.batch = input.readBinary();
|
|
2600
|
+
} else {
|
|
2601
|
+
input.skip(ftype);
|
|
2602
|
+
}
|
|
2603
|
+
break;
|
|
2604
|
+
case 2:
|
|
2605
|
+
if (ftype == Thrift.Type.I64) {
|
|
2606
|
+
this.rowCount = input.readI64();
|
|
2607
|
+
} else {
|
|
2608
|
+
input.skip(ftype);
|
|
2609
|
+
}
|
|
2610
|
+
break;
|
|
2611
|
+
default:
|
|
2612
|
+
input.skip(ftype);
|
|
2613
|
+
}
|
|
2614
|
+
input.readFieldEnd();
|
|
2615
|
+
}
|
|
2616
|
+
input.readStructEnd();
|
|
2617
|
+
return;
|
|
2618
|
+
};
|
|
2619
|
+
|
|
2620
|
+
TSparkArrowBatch.prototype.write = function(output) {
|
|
2621
|
+
output.writeStructBegin('TSparkArrowBatch');
|
|
2622
|
+
if (this.batch !== null && this.batch !== undefined) {
|
|
2623
|
+
output.writeFieldBegin('batch', Thrift.Type.STRING, 1);
|
|
2624
|
+
output.writeBinary(this.batch);
|
|
2625
|
+
output.writeFieldEnd();
|
|
2626
|
+
}
|
|
2627
|
+
if (this.rowCount !== null && this.rowCount !== undefined) {
|
|
2628
|
+
output.writeFieldBegin('rowCount', Thrift.Type.I64, 2);
|
|
2629
|
+
output.writeI64(this.rowCount);
|
|
2630
|
+
output.writeFieldEnd();
|
|
2631
|
+
}
|
|
2632
|
+
output.writeFieldStop();
|
|
2633
|
+
output.writeStructEnd();
|
|
2634
|
+
return;
|
|
2635
|
+
};
|
|
2636
|
+
|
|
2637
|
+
var TSparkArrowResultLink = module.exports.TSparkArrowResultLink = function(args) {
|
|
2638
|
+
this.fileLink = null;
|
|
2639
|
+
this.expiryTime = null;
|
|
2640
|
+
this.startRowOffset = null;
|
|
2641
|
+
this.rowCount = null;
|
|
2642
|
+
this.bytesNum = null;
|
|
2643
|
+
if (args) {
|
|
2644
|
+
if (args.fileLink !== undefined && args.fileLink !== null) {
|
|
2645
|
+
this.fileLink = args.fileLink;
|
|
2646
|
+
} else {
|
|
2647
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field fileLink is unset!');
|
|
2648
|
+
}
|
|
2649
|
+
if (args.expiryTime !== undefined && args.expiryTime !== null) {
|
|
2650
|
+
this.expiryTime = args.expiryTime;
|
|
2651
|
+
} else {
|
|
2652
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field expiryTime is unset!');
|
|
2653
|
+
}
|
|
2654
|
+
if (args.startRowOffset !== undefined && args.startRowOffset !== null) {
|
|
2655
|
+
this.startRowOffset = args.startRowOffset;
|
|
2656
|
+
} else {
|
|
2657
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field startRowOffset is unset!');
|
|
2658
|
+
}
|
|
2659
|
+
if (args.rowCount !== undefined && args.rowCount !== null) {
|
|
2660
|
+
this.rowCount = args.rowCount;
|
|
2661
|
+
} else {
|
|
2662
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field rowCount is unset!');
|
|
2663
|
+
}
|
|
2664
|
+
if (args.bytesNum !== undefined && args.bytesNum !== null) {
|
|
2665
|
+
this.bytesNum = args.bytesNum;
|
|
2666
|
+
} else {
|
|
2667
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field bytesNum is unset!');
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
};
|
|
2671
|
+
TSparkArrowResultLink.prototype = {};
|
|
2672
|
+
TSparkArrowResultLink.prototype.read = function(input) {
|
|
2673
|
+
input.readStructBegin();
|
|
2674
|
+
while (true) {
|
|
2675
|
+
var ret = input.readFieldBegin();
|
|
2676
|
+
var ftype = ret.ftype;
|
|
2677
|
+
var fid = ret.fid;
|
|
2678
|
+
if (ftype == Thrift.Type.STOP) {
|
|
2679
|
+
break;
|
|
2680
|
+
}
|
|
2681
|
+
switch (fid) {
|
|
2682
|
+
case 1:
|
|
2683
|
+
if (ftype == Thrift.Type.STRING) {
|
|
2684
|
+
this.fileLink = input.readString();
|
|
2685
|
+
} else {
|
|
2686
|
+
input.skip(ftype);
|
|
2687
|
+
}
|
|
2688
|
+
break;
|
|
2689
|
+
case 2:
|
|
2690
|
+
if (ftype == Thrift.Type.I64) {
|
|
2691
|
+
this.expiryTime = input.readI64();
|
|
2692
|
+
} else {
|
|
2693
|
+
input.skip(ftype);
|
|
2694
|
+
}
|
|
2695
|
+
break;
|
|
2696
|
+
case 3:
|
|
2697
|
+
if (ftype == Thrift.Type.I64) {
|
|
2698
|
+
this.startRowOffset = input.readI64();
|
|
2699
|
+
} else {
|
|
2700
|
+
input.skip(ftype);
|
|
2701
|
+
}
|
|
2702
|
+
break;
|
|
2703
|
+
case 4:
|
|
2704
|
+
if (ftype == Thrift.Type.I64) {
|
|
2705
|
+
this.rowCount = input.readI64();
|
|
2706
|
+
} else {
|
|
2707
|
+
input.skip(ftype);
|
|
2708
|
+
}
|
|
2709
|
+
break;
|
|
2710
|
+
case 5:
|
|
2711
|
+
if (ftype == Thrift.Type.I64) {
|
|
2712
|
+
this.bytesNum = input.readI64();
|
|
2713
|
+
} else {
|
|
2714
|
+
input.skip(ftype);
|
|
2715
|
+
}
|
|
2716
|
+
break;
|
|
2717
|
+
default:
|
|
2718
|
+
input.skip(ftype);
|
|
2719
|
+
}
|
|
2720
|
+
input.readFieldEnd();
|
|
2721
|
+
}
|
|
2722
|
+
input.readStructEnd();
|
|
2723
|
+
return;
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
TSparkArrowResultLink.prototype.write = function(output) {
|
|
2727
|
+
output.writeStructBegin('TSparkArrowResultLink');
|
|
2728
|
+
if (this.fileLink !== null && this.fileLink !== undefined) {
|
|
2729
|
+
output.writeFieldBegin('fileLink', Thrift.Type.STRING, 1);
|
|
2730
|
+
output.writeString(this.fileLink);
|
|
2731
|
+
output.writeFieldEnd();
|
|
2732
|
+
}
|
|
2733
|
+
if (this.expiryTime !== null && this.expiryTime !== undefined) {
|
|
2734
|
+
output.writeFieldBegin('expiryTime', Thrift.Type.I64, 2);
|
|
2735
|
+
output.writeI64(this.expiryTime);
|
|
2736
|
+
output.writeFieldEnd();
|
|
2737
|
+
}
|
|
2738
|
+
if (this.startRowOffset !== null && this.startRowOffset !== undefined) {
|
|
2739
|
+
output.writeFieldBegin('startRowOffset', Thrift.Type.I64, 3);
|
|
2740
|
+
output.writeI64(this.startRowOffset);
|
|
2741
|
+
output.writeFieldEnd();
|
|
2742
|
+
}
|
|
2743
|
+
if (this.rowCount !== null && this.rowCount !== undefined) {
|
|
2744
|
+
output.writeFieldBegin('rowCount', Thrift.Type.I64, 4);
|
|
2745
|
+
output.writeI64(this.rowCount);
|
|
2746
|
+
output.writeFieldEnd();
|
|
2747
|
+
}
|
|
2748
|
+
if (this.bytesNum !== null && this.bytesNum !== undefined) {
|
|
2749
|
+
output.writeFieldBegin('bytesNum', Thrift.Type.I64, 5);
|
|
2750
|
+
output.writeI64(this.bytesNum);
|
|
2751
|
+
output.writeFieldEnd();
|
|
2752
|
+
}
|
|
2753
|
+
output.writeFieldStop();
|
|
2754
|
+
output.writeStructEnd();
|
|
2755
|
+
return;
|
|
2756
|
+
};
|
|
2757
|
+
|
|
2418
2758
|
var TRowSet = module.exports.TRowSet = function(args) {
|
|
2419
2759
|
this.startRowOffset = null;
|
|
2420
2760
|
this.rows = null;
|
|
2421
2761
|
this.columns = null;
|
|
2422
2762
|
this.binaryColumns = null;
|
|
2423
2763
|
this.columnCount = null;
|
|
2764
|
+
this.arrowBatches = null;
|
|
2765
|
+
this.resultLinks = null;
|
|
2424
2766
|
if (args) {
|
|
2425
2767
|
if (args.startRowOffset !== undefined && args.startRowOffset !== null) {
|
|
2426
2768
|
this.startRowOffset = args.startRowOffset;
|
|
@@ -2441,6 +2783,12 @@ var TRowSet = module.exports.TRowSet = function(args) {
|
|
|
2441
2783
|
if (args.columnCount !== undefined && args.columnCount !== null) {
|
|
2442
2784
|
this.columnCount = args.columnCount;
|
|
2443
2785
|
}
|
|
2786
|
+
if (args.arrowBatches !== undefined && args.arrowBatches !== null) {
|
|
2787
|
+
this.arrowBatches = Thrift.copyList(args.arrowBatches, [ttypes.TSparkArrowBatch]);
|
|
2788
|
+
}
|
|
2789
|
+
if (args.resultLinks !== undefined && args.resultLinks !== null) {
|
|
2790
|
+
this.resultLinks = Thrift.copyList(args.resultLinks, [ttypes.TSparkArrowResultLink]);
|
|
2791
|
+
}
|
|
2444
2792
|
}
|
|
2445
2793
|
};
|
|
2446
2794
|
TRowSet.prototype = {};
|
|
@@ -2507,6 +2855,38 @@ TRowSet.prototype.read = function(input) {
|
|
|
2507
2855
|
input.skip(ftype);
|
|
2508
2856
|
}
|
|
2509
2857
|
break;
|
|
2858
|
+
case 1281:
|
|
2859
|
+
if (ftype == Thrift.Type.LIST) {
|
|
2860
|
+
this.arrowBatches = [];
|
|
2861
|
+
var _rtmp385 = input.readListBegin();
|
|
2862
|
+
var _size84 = _rtmp385.size || 0;
|
|
2863
|
+
for (var _i86 = 0; _i86 < _size84; ++_i86) {
|
|
2864
|
+
var elem87 = null;
|
|
2865
|
+
elem87 = new ttypes.TSparkArrowBatch();
|
|
2866
|
+
elem87.read(input);
|
|
2867
|
+
this.arrowBatches.push(elem87);
|
|
2868
|
+
}
|
|
2869
|
+
input.readListEnd();
|
|
2870
|
+
} else {
|
|
2871
|
+
input.skip(ftype);
|
|
2872
|
+
}
|
|
2873
|
+
break;
|
|
2874
|
+
case 1282:
|
|
2875
|
+
if (ftype == Thrift.Type.LIST) {
|
|
2876
|
+
this.resultLinks = [];
|
|
2877
|
+
var _rtmp389 = input.readListBegin();
|
|
2878
|
+
var _size88 = _rtmp389.size || 0;
|
|
2879
|
+
for (var _i90 = 0; _i90 < _size88; ++_i90) {
|
|
2880
|
+
var elem91 = null;
|
|
2881
|
+
elem91 = new ttypes.TSparkArrowResultLink();
|
|
2882
|
+
elem91.read(input);
|
|
2883
|
+
this.resultLinks.push(elem91);
|
|
2884
|
+
}
|
|
2885
|
+
input.readListEnd();
|
|
2886
|
+
} else {
|
|
2887
|
+
input.skip(ftype);
|
|
2888
|
+
}
|
|
2889
|
+
break;
|
|
2510
2890
|
default:
|
|
2511
2891
|
input.skip(ftype);
|
|
2512
2892
|
}
|
|
@@ -2526,10 +2906,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
2526
2906
|
if (this.rows !== null && this.rows !== undefined) {
|
|
2527
2907
|
output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
|
|
2528
2908
|
output.writeListBegin(Thrift.Type.STRUCT, this.rows.length);
|
|
2529
|
-
for (var
|
|
2530
|
-
if (this.rows.hasOwnProperty(
|
|
2531
|
-
|
|
2532
|
-
|
|
2909
|
+
for (var iter92 in this.rows) {
|
|
2910
|
+
if (this.rows.hasOwnProperty(iter92)) {
|
|
2911
|
+
iter92 = this.rows[iter92];
|
|
2912
|
+
iter92.write(output);
|
|
2533
2913
|
}
|
|
2534
2914
|
}
|
|
2535
2915
|
output.writeListEnd();
|
|
@@ -2538,10 +2918,10 @@ TRowSet.prototype.write = function(output) {
|
|
|
2538
2918
|
if (this.columns !== null && this.columns !== undefined) {
|
|
2539
2919
|
output.writeFieldBegin('columns', Thrift.Type.LIST, 3);
|
|
2540
2920
|
output.writeListBegin(Thrift.Type.STRUCT, this.columns.length);
|
|
2541
|
-
for (var
|
|
2542
|
-
if (this.columns.hasOwnProperty(
|
|
2543
|
-
|
|
2544
|
-
|
|
2921
|
+
for (var iter93 in this.columns) {
|
|
2922
|
+
if (this.columns.hasOwnProperty(iter93)) {
|
|
2923
|
+
iter93 = this.columns[iter93];
|
|
2924
|
+
iter93.write(output);
|
|
2545
2925
|
}
|
|
2546
2926
|
}
|
|
2547
2927
|
output.writeListEnd();
|
|
@@ -2557,39 +2937,57 @@ TRowSet.prototype.write = function(output) {
|
|
|
2557
2937
|
output.writeI32(this.columnCount);
|
|
2558
2938
|
output.writeFieldEnd();
|
|
2559
2939
|
}
|
|
2940
|
+
if (this.arrowBatches !== null && this.arrowBatches !== undefined) {
|
|
2941
|
+
output.writeFieldBegin('arrowBatches', Thrift.Type.LIST, 1281);
|
|
2942
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.arrowBatches.length);
|
|
2943
|
+
for (var iter94 in this.arrowBatches) {
|
|
2944
|
+
if (this.arrowBatches.hasOwnProperty(iter94)) {
|
|
2945
|
+
iter94 = this.arrowBatches[iter94];
|
|
2946
|
+
iter94.write(output);
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
output.writeListEnd();
|
|
2950
|
+
output.writeFieldEnd();
|
|
2951
|
+
}
|
|
2952
|
+
if (this.resultLinks !== null && this.resultLinks !== undefined) {
|
|
2953
|
+
output.writeFieldBegin('resultLinks', Thrift.Type.LIST, 1282);
|
|
2954
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.resultLinks.length);
|
|
2955
|
+
for (var iter95 in this.resultLinks) {
|
|
2956
|
+
if (this.resultLinks.hasOwnProperty(iter95)) {
|
|
2957
|
+
iter95 = this.resultLinks[iter95];
|
|
2958
|
+
iter95.write(output);
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
output.writeListEnd();
|
|
2962
|
+
output.writeFieldEnd();
|
|
2963
|
+
}
|
|
2560
2964
|
output.writeFieldStop();
|
|
2561
2965
|
output.writeStructEnd();
|
|
2562
2966
|
return;
|
|
2563
2967
|
};
|
|
2564
2968
|
|
|
2565
|
-
var
|
|
2566
|
-
this.
|
|
2567
|
-
this.
|
|
2568
|
-
this.
|
|
2569
|
-
this.
|
|
2570
|
-
this.errorMessage = null;
|
|
2969
|
+
var TDBSqlTempView = module.exports.TDBSqlTempView = function(args) {
|
|
2970
|
+
this.name = null;
|
|
2971
|
+
this.sqlStatement = null;
|
|
2972
|
+
this.properties = null;
|
|
2973
|
+
this.viewSchema = null;
|
|
2571
2974
|
if (args) {
|
|
2572
|
-
if (args.
|
|
2573
|
-
this.
|
|
2574
|
-
} else {
|
|
2575
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field statusCode is unset!');
|
|
2576
|
-
}
|
|
2577
|
-
if (args.infoMessages !== undefined && args.infoMessages !== null) {
|
|
2578
|
-
this.infoMessages = Thrift.copyList(args.infoMessages, [null]);
|
|
2975
|
+
if (args.name !== undefined && args.name !== null) {
|
|
2976
|
+
this.name = args.name;
|
|
2579
2977
|
}
|
|
2580
|
-
if (args.
|
|
2581
|
-
this.
|
|
2978
|
+
if (args.sqlStatement !== undefined && args.sqlStatement !== null) {
|
|
2979
|
+
this.sqlStatement = args.sqlStatement;
|
|
2582
2980
|
}
|
|
2583
|
-
if (args.
|
|
2584
|
-
this.
|
|
2981
|
+
if (args.properties !== undefined && args.properties !== null) {
|
|
2982
|
+
this.properties = Thrift.copyMap(args.properties, [null]);
|
|
2585
2983
|
}
|
|
2586
|
-
if (args.
|
|
2587
|
-
this.
|
|
2984
|
+
if (args.viewSchema !== undefined && args.viewSchema !== null) {
|
|
2985
|
+
this.viewSchema = args.viewSchema;
|
|
2588
2986
|
}
|
|
2589
2987
|
}
|
|
2590
2988
|
};
|
|
2591
|
-
|
|
2592
|
-
|
|
2989
|
+
TDBSqlTempView.prototype = {};
|
|
2990
|
+
TDBSqlTempView.prototype.read = function(input) {
|
|
2593
2991
|
input.readStructBegin();
|
|
2594
2992
|
while (true) {
|
|
2595
2993
|
var ret = input.readFieldBegin();
|
|
@@ -2600,44 +2998,39 @@ TStatus.prototype.read = function(input) {
|
|
|
2600
2998
|
}
|
|
2601
2999
|
switch (fid) {
|
|
2602
3000
|
case 1:
|
|
2603
|
-
if (ftype == Thrift.Type.
|
|
2604
|
-
this.
|
|
3001
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3002
|
+
this.name = input.readString();
|
|
2605
3003
|
} else {
|
|
2606
3004
|
input.skip(ftype);
|
|
2607
3005
|
}
|
|
2608
3006
|
break;
|
|
2609
3007
|
case 2:
|
|
2610
|
-
if (ftype == Thrift.Type.
|
|
2611
|
-
this.
|
|
2612
|
-
var _rtmp387 = input.readListBegin();
|
|
2613
|
-
var _size86 = _rtmp387.size || 0;
|
|
2614
|
-
for (var _i88 = 0; _i88 < _size86; ++_i88) {
|
|
2615
|
-
var elem89 = null;
|
|
2616
|
-
elem89 = input.readString();
|
|
2617
|
-
this.infoMessages.push(elem89);
|
|
2618
|
-
}
|
|
2619
|
-
input.readListEnd();
|
|
3008
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3009
|
+
this.sqlStatement = input.readString();
|
|
2620
3010
|
} else {
|
|
2621
3011
|
input.skip(ftype);
|
|
2622
3012
|
}
|
|
2623
3013
|
break;
|
|
2624
3014
|
case 3:
|
|
2625
|
-
if (ftype == Thrift.Type.
|
|
2626
|
-
this.
|
|
3015
|
+
if (ftype == Thrift.Type.MAP) {
|
|
3016
|
+
this.properties = {};
|
|
3017
|
+
var _rtmp397 = input.readMapBegin();
|
|
3018
|
+
var _size96 = _rtmp397.size || 0;
|
|
3019
|
+
for (var _i98 = 0; _i98 < _size96; ++_i98) {
|
|
3020
|
+
var key99 = null;
|
|
3021
|
+
var val100 = null;
|
|
3022
|
+
key99 = input.readString();
|
|
3023
|
+
val100 = input.readString();
|
|
3024
|
+
this.properties[key99] = val100;
|
|
3025
|
+
}
|
|
3026
|
+
input.readMapEnd();
|
|
2627
3027
|
} else {
|
|
2628
3028
|
input.skip(ftype);
|
|
2629
3029
|
}
|
|
2630
3030
|
break;
|
|
2631
3031
|
case 4:
|
|
2632
|
-
if (ftype == Thrift.Type.I32) {
|
|
2633
|
-
this.errorCode = input.readI32();
|
|
2634
|
-
} else {
|
|
2635
|
-
input.skip(ftype);
|
|
2636
|
-
}
|
|
2637
|
-
break;
|
|
2638
|
-
case 5:
|
|
2639
3032
|
if (ftype == Thrift.Type.STRING) {
|
|
2640
|
-
this.
|
|
3033
|
+
this.viewSchema = input.readString();
|
|
2641
3034
|
} else {
|
|
2642
3035
|
input.skip(ftype);
|
|
2643
3036
|
}
|
|
@@ -2651,38 +3044,34 @@ TStatus.prototype.read = function(input) {
|
|
|
2651
3044
|
return;
|
|
2652
3045
|
};
|
|
2653
3046
|
|
|
2654
|
-
|
|
2655
|
-
output.writeStructBegin('
|
|
2656
|
-
if (this.
|
|
2657
|
-
output.writeFieldBegin('
|
|
2658
|
-
output.
|
|
2659
|
-
output.writeFieldEnd();
|
|
2660
|
-
}
|
|
2661
|
-
if (this.infoMessages !== null && this.infoMessages !== undefined) {
|
|
2662
|
-
output.writeFieldBegin('infoMessages', Thrift.Type.LIST, 2);
|
|
2663
|
-
output.writeListBegin(Thrift.Type.STRING, this.infoMessages.length);
|
|
2664
|
-
for (var iter90 in this.infoMessages) {
|
|
2665
|
-
if (this.infoMessages.hasOwnProperty(iter90)) {
|
|
2666
|
-
iter90 = this.infoMessages[iter90];
|
|
2667
|
-
output.writeString(iter90);
|
|
2668
|
-
}
|
|
2669
|
-
}
|
|
2670
|
-
output.writeListEnd();
|
|
3047
|
+
TDBSqlTempView.prototype.write = function(output) {
|
|
3048
|
+
output.writeStructBegin('TDBSqlTempView');
|
|
3049
|
+
if (this.name !== null && this.name !== undefined) {
|
|
3050
|
+
output.writeFieldBegin('name', Thrift.Type.STRING, 1);
|
|
3051
|
+
output.writeString(this.name);
|
|
2671
3052
|
output.writeFieldEnd();
|
|
2672
3053
|
}
|
|
2673
|
-
if (this.
|
|
2674
|
-
output.writeFieldBegin('
|
|
2675
|
-
output.writeString(this.
|
|
3054
|
+
if (this.sqlStatement !== null && this.sqlStatement !== undefined) {
|
|
3055
|
+
output.writeFieldBegin('sqlStatement', Thrift.Type.STRING, 2);
|
|
3056
|
+
output.writeString(this.sqlStatement);
|
|
2676
3057
|
output.writeFieldEnd();
|
|
2677
3058
|
}
|
|
2678
|
-
if (this.
|
|
2679
|
-
output.writeFieldBegin('
|
|
2680
|
-
output.
|
|
3059
|
+
if (this.properties !== null && this.properties !== undefined) {
|
|
3060
|
+
output.writeFieldBegin('properties', Thrift.Type.MAP, 3);
|
|
3061
|
+
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.properties));
|
|
3062
|
+
for (var kiter101 in this.properties) {
|
|
3063
|
+
if (this.properties.hasOwnProperty(kiter101)) {
|
|
3064
|
+
var viter102 = this.properties[kiter101];
|
|
3065
|
+
output.writeString(kiter101);
|
|
3066
|
+
output.writeString(viter102);
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
output.writeMapEnd();
|
|
2681
3070
|
output.writeFieldEnd();
|
|
2682
3071
|
}
|
|
2683
|
-
if (this.
|
|
2684
|
-
output.writeFieldBegin('
|
|
2685
|
-
output.writeString(this.
|
|
3072
|
+
if (this.viewSchema !== null && this.viewSchema !== undefined) {
|
|
3073
|
+
output.writeFieldBegin('viewSchema', Thrift.Type.STRING, 4);
|
|
3074
|
+
output.writeString(this.viewSchema);
|
|
2686
3075
|
output.writeFieldEnd();
|
|
2687
3076
|
}
|
|
2688
3077
|
output.writeFieldStop();
|
|
@@ -2690,24 +3079,16 @@ TStatus.prototype.write = function(output) {
|
|
|
2690
3079
|
return;
|
|
2691
3080
|
};
|
|
2692
3081
|
|
|
2693
|
-
var
|
|
2694
|
-
this.
|
|
2695
|
-
this.secret = null;
|
|
3082
|
+
var TDBSqlSessionCapabilities = module.exports.TDBSqlSessionCapabilities = function(args) {
|
|
3083
|
+
this.supportsMultipleCatalogs = null;
|
|
2696
3084
|
if (args) {
|
|
2697
|
-
if (args.
|
|
2698
|
-
this.
|
|
2699
|
-
} else {
|
|
2700
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field guid is unset!');
|
|
2701
|
-
}
|
|
2702
|
-
if (args.secret !== undefined && args.secret !== null) {
|
|
2703
|
-
this.secret = args.secret;
|
|
2704
|
-
} else {
|
|
2705
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field secret is unset!');
|
|
3085
|
+
if (args.supportsMultipleCatalogs !== undefined && args.supportsMultipleCatalogs !== null) {
|
|
3086
|
+
this.supportsMultipleCatalogs = args.supportsMultipleCatalogs;
|
|
2706
3087
|
}
|
|
2707
3088
|
}
|
|
2708
3089
|
};
|
|
2709
|
-
|
|
2710
|
-
|
|
3090
|
+
TDBSqlSessionCapabilities.prototype = {};
|
|
3091
|
+
TDBSqlSessionCapabilities.prototype.read = function(input) {
|
|
2711
3092
|
input.readStructBegin();
|
|
2712
3093
|
while (true) {
|
|
2713
3094
|
var ret = input.readFieldBegin();
|
|
@@ -2718,19 +3099,15 @@ THandleIdentifier.prototype.read = function(input) {
|
|
|
2718
3099
|
}
|
|
2719
3100
|
switch (fid) {
|
|
2720
3101
|
case 1:
|
|
2721
|
-
if (ftype == Thrift.Type.
|
|
2722
|
-
this.
|
|
3102
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
3103
|
+
this.supportsMultipleCatalogs = input.readBool();
|
|
2723
3104
|
} else {
|
|
2724
3105
|
input.skip(ftype);
|
|
2725
3106
|
}
|
|
2726
3107
|
break;
|
|
2727
|
-
case
|
|
2728
|
-
if (ftype == Thrift.Type.STRING) {
|
|
2729
|
-
this.secret = input.readBinary();
|
|
2730
|
-
} else {
|
|
3108
|
+
case 0:
|
|
2731
3109
|
input.skip(ftype);
|
|
2732
|
-
|
|
2733
|
-
break;
|
|
3110
|
+
break;
|
|
2734
3111
|
default:
|
|
2735
3112
|
input.skip(ftype);
|
|
2736
3113
|
}
|
|
@@ -2740,17 +3117,416 @@ THandleIdentifier.prototype.read = function(input) {
|
|
|
2740
3117
|
return;
|
|
2741
3118
|
};
|
|
2742
3119
|
|
|
2743
|
-
|
|
2744
|
-
output.writeStructBegin('
|
|
2745
|
-
if (this.
|
|
2746
|
-
output.writeFieldBegin('
|
|
2747
|
-
output.
|
|
3120
|
+
TDBSqlSessionCapabilities.prototype.write = function(output) {
|
|
3121
|
+
output.writeStructBegin('TDBSqlSessionCapabilities');
|
|
3122
|
+
if (this.supportsMultipleCatalogs !== null && this.supportsMultipleCatalogs !== undefined) {
|
|
3123
|
+
output.writeFieldBegin('supportsMultipleCatalogs', Thrift.Type.BOOL, 1);
|
|
3124
|
+
output.writeBool(this.supportsMultipleCatalogs);
|
|
2748
3125
|
output.writeFieldEnd();
|
|
2749
3126
|
}
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
3127
|
+
output.writeFieldStop();
|
|
3128
|
+
output.writeStructEnd();
|
|
3129
|
+
return;
|
|
3130
|
+
};
|
|
3131
|
+
|
|
3132
|
+
var TDBSqlSessionConf = module.exports.TDBSqlSessionConf = function(args) {
|
|
3133
|
+
this.confs = null;
|
|
3134
|
+
this.tempViews = null;
|
|
3135
|
+
this.currentDatabase = null;
|
|
3136
|
+
this.currentCatalog = null;
|
|
3137
|
+
this.sessionCapabilities = null;
|
|
3138
|
+
if (args) {
|
|
3139
|
+
if (args.confs !== undefined && args.confs !== null) {
|
|
3140
|
+
this.confs = Thrift.copyMap(args.confs, [null]);
|
|
3141
|
+
}
|
|
3142
|
+
if (args.tempViews !== undefined && args.tempViews !== null) {
|
|
3143
|
+
this.tempViews = Thrift.copyList(args.tempViews, [ttypes.TDBSqlTempView]);
|
|
3144
|
+
}
|
|
3145
|
+
if (args.currentDatabase !== undefined && args.currentDatabase !== null) {
|
|
3146
|
+
this.currentDatabase = args.currentDatabase;
|
|
3147
|
+
}
|
|
3148
|
+
if (args.currentCatalog !== undefined && args.currentCatalog !== null) {
|
|
3149
|
+
this.currentCatalog = args.currentCatalog;
|
|
3150
|
+
}
|
|
3151
|
+
if (args.sessionCapabilities !== undefined && args.sessionCapabilities !== null) {
|
|
3152
|
+
this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities(args.sessionCapabilities);
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
};
|
|
3156
|
+
TDBSqlSessionConf.prototype = {};
|
|
3157
|
+
TDBSqlSessionConf.prototype.read = function(input) {
|
|
3158
|
+
input.readStructBegin();
|
|
3159
|
+
while (true) {
|
|
3160
|
+
var ret = input.readFieldBegin();
|
|
3161
|
+
var ftype = ret.ftype;
|
|
3162
|
+
var fid = ret.fid;
|
|
3163
|
+
if (ftype == Thrift.Type.STOP) {
|
|
3164
|
+
break;
|
|
3165
|
+
}
|
|
3166
|
+
switch (fid) {
|
|
3167
|
+
case 1:
|
|
3168
|
+
if (ftype == Thrift.Type.MAP) {
|
|
3169
|
+
this.confs = {};
|
|
3170
|
+
var _rtmp3104 = input.readMapBegin();
|
|
3171
|
+
var _size103 = _rtmp3104.size || 0;
|
|
3172
|
+
for (var _i105 = 0; _i105 < _size103; ++_i105) {
|
|
3173
|
+
var key106 = null;
|
|
3174
|
+
var val107 = null;
|
|
3175
|
+
key106 = input.readString();
|
|
3176
|
+
val107 = input.readString();
|
|
3177
|
+
this.confs[key106] = val107;
|
|
3178
|
+
}
|
|
3179
|
+
input.readMapEnd();
|
|
3180
|
+
} else {
|
|
3181
|
+
input.skip(ftype);
|
|
3182
|
+
}
|
|
3183
|
+
break;
|
|
3184
|
+
case 2:
|
|
3185
|
+
if (ftype == Thrift.Type.LIST) {
|
|
3186
|
+
this.tempViews = [];
|
|
3187
|
+
var _rtmp3109 = input.readListBegin();
|
|
3188
|
+
var _size108 = _rtmp3109.size || 0;
|
|
3189
|
+
for (var _i110 = 0; _i110 < _size108; ++_i110) {
|
|
3190
|
+
var elem111 = null;
|
|
3191
|
+
elem111 = new ttypes.TDBSqlTempView();
|
|
3192
|
+
elem111.read(input);
|
|
3193
|
+
this.tempViews.push(elem111);
|
|
3194
|
+
}
|
|
3195
|
+
input.readListEnd();
|
|
3196
|
+
} else {
|
|
3197
|
+
input.skip(ftype);
|
|
3198
|
+
}
|
|
3199
|
+
break;
|
|
3200
|
+
case 3:
|
|
3201
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3202
|
+
this.currentDatabase = input.readString();
|
|
3203
|
+
} else {
|
|
3204
|
+
input.skip(ftype);
|
|
3205
|
+
}
|
|
3206
|
+
break;
|
|
3207
|
+
case 4:
|
|
3208
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3209
|
+
this.currentCatalog = input.readString();
|
|
3210
|
+
} else {
|
|
3211
|
+
input.skip(ftype);
|
|
3212
|
+
}
|
|
3213
|
+
break;
|
|
3214
|
+
case 5:
|
|
3215
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
3216
|
+
this.sessionCapabilities = new ttypes.TDBSqlSessionCapabilities();
|
|
3217
|
+
this.sessionCapabilities.read(input);
|
|
3218
|
+
} else {
|
|
3219
|
+
input.skip(ftype);
|
|
3220
|
+
}
|
|
3221
|
+
break;
|
|
3222
|
+
default:
|
|
3223
|
+
input.skip(ftype);
|
|
3224
|
+
}
|
|
3225
|
+
input.readFieldEnd();
|
|
3226
|
+
}
|
|
3227
|
+
input.readStructEnd();
|
|
3228
|
+
return;
|
|
3229
|
+
};
|
|
3230
|
+
|
|
3231
|
+
TDBSqlSessionConf.prototype.write = function(output) {
|
|
3232
|
+
output.writeStructBegin('TDBSqlSessionConf');
|
|
3233
|
+
if (this.confs !== null && this.confs !== undefined) {
|
|
3234
|
+
output.writeFieldBegin('confs', Thrift.Type.MAP, 1);
|
|
3235
|
+
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confs));
|
|
3236
|
+
for (var kiter112 in this.confs) {
|
|
3237
|
+
if (this.confs.hasOwnProperty(kiter112)) {
|
|
3238
|
+
var viter113 = this.confs[kiter112];
|
|
3239
|
+
output.writeString(kiter112);
|
|
3240
|
+
output.writeString(viter113);
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
output.writeMapEnd();
|
|
3244
|
+
output.writeFieldEnd();
|
|
3245
|
+
}
|
|
3246
|
+
if (this.tempViews !== null && this.tempViews !== undefined) {
|
|
3247
|
+
output.writeFieldBegin('tempViews', Thrift.Type.LIST, 2);
|
|
3248
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.tempViews.length);
|
|
3249
|
+
for (var iter114 in this.tempViews) {
|
|
3250
|
+
if (this.tempViews.hasOwnProperty(iter114)) {
|
|
3251
|
+
iter114 = this.tempViews[iter114];
|
|
3252
|
+
iter114.write(output);
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
output.writeListEnd();
|
|
3256
|
+
output.writeFieldEnd();
|
|
3257
|
+
}
|
|
3258
|
+
if (this.currentDatabase !== null && this.currentDatabase !== undefined) {
|
|
3259
|
+
output.writeFieldBegin('currentDatabase', Thrift.Type.STRING, 3);
|
|
3260
|
+
output.writeString(this.currentDatabase);
|
|
3261
|
+
output.writeFieldEnd();
|
|
3262
|
+
}
|
|
3263
|
+
if (this.currentCatalog !== null && this.currentCatalog !== undefined) {
|
|
3264
|
+
output.writeFieldBegin('currentCatalog', Thrift.Type.STRING, 4);
|
|
3265
|
+
output.writeString(this.currentCatalog);
|
|
3266
|
+
output.writeFieldEnd();
|
|
3267
|
+
}
|
|
3268
|
+
if (this.sessionCapabilities !== null && this.sessionCapabilities !== undefined) {
|
|
3269
|
+
output.writeFieldBegin('sessionCapabilities', Thrift.Type.STRUCT, 5);
|
|
3270
|
+
this.sessionCapabilities.write(output);
|
|
3271
|
+
output.writeFieldEnd();
|
|
3272
|
+
}
|
|
3273
|
+
output.writeFieldStop();
|
|
3274
|
+
output.writeStructEnd();
|
|
3275
|
+
return;
|
|
3276
|
+
};
|
|
3277
|
+
|
|
3278
|
+
var TStatus = module.exports.TStatus = function(args) {
|
|
3279
|
+
this.statusCode = null;
|
|
3280
|
+
this.infoMessages = null;
|
|
3281
|
+
this.sqlState = null;
|
|
3282
|
+
this.errorCode = null;
|
|
3283
|
+
this.errorMessage = null;
|
|
3284
|
+
if (args) {
|
|
3285
|
+
if (args.statusCode !== undefined && args.statusCode !== null) {
|
|
3286
|
+
this.statusCode = args.statusCode;
|
|
3287
|
+
} else {
|
|
3288
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field statusCode is unset!');
|
|
3289
|
+
}
|
|
3290
|
+
if (args.infoMessages !== undefined && args.infoMessages !== null) {
|
|
3291
|
+
this.infoMessages = Thrift.copyList(args.infoMessages, [null]);
|
|
3292
|
+
}
|
|
3293
|
+
if (args.sqlState !== undefined && args.sqlState !== null) {
|
|
3294
|
+
this.sqlState = args.sqlState;
|
|
3295
|
+
}
|
|
3296
|
+
if (args.errorCode !== undefined && args.errorCode !== null) {
|
|
3297
|
+
this.errorCode = args.errorCode;
|
|
3298
|
+
}
|
|
3299
|
+
if (args.errorMessage !== undefined && args.errorMessage !== null) {
|
|
3300
|
+
this.errorMessage = args.errorMessage;
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
};
|
|
3304
|
+
TStatus.prototype = {};
|
|
3305
|
+
TStatus.prototype.read = function(input) {
|
|
3306
|
+
input.readStructBegin();
|
|
3307
|
+
while (true) {
|
|
3308
|
+
var ret = input.readFieldBegin();
|
|
3309
|
+
var ftype = ret.ftype;
|
|
3310
|
+
var fid = ret.fid;
|
|
3311
|
+
if (ftype == Thrift.Type.STOP) {
|
|
3312
|
+
break;
|
|
3313
|
+
}
|
|
3314
|
+
switch (fid) {
|
|
3315
|
+
case 1:
|
|
3316
|
+
if (ftype == Thrift.Type.I32) {
|
|
3317
|
+
this.statusCode = input.readI32();
|
|
3318
|
+
} else {
|
|
3319
|
+
input.skip(ftype);
|
|
3320
|
+
}
|
|
3321
|
+
break;
|
|
3322
|
+
case 2:
|
|
3323
|
+
if (ftype == Thrift.Type.LIST) {
|
|
3324
|
+
this.infoMessages = [];
|
|
3325
|
+
var _rtmp3116 = input.readListBegin();
|
|
3326
|
+
var _size115 = _rtmp3116.size || 0;
|
|
3327
|
+
for (var _i117 = 0; _i117 < _size115; ++_i117) {
|
|
3328
|
+
var elem118 = null;
|
|
3329
|
+
elem118 = input.readString();
|
|
3330
|
+
this.infoMessages.push(elem118);
|
|
3331
|
+
}
|
|
3332
|
+
input.readListEnd();
|
|
3333
|
+
} else {
|
|
3334
|
+
input.skip(ftype);
|
|
3335
|
+
}
|
|
3336
|
+
break;
|
|
3337
|
+
case 3:
|
|
3338
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3339
|
+
this.sqlState = input.readString();
|
|
3340
|
+
} else {
|
|
3341
|
+
input.skip(ftype);
|
|
3342
|
+
}
|
|
3343
|
+
break;
|
|
3344
|
+
case 4:
|
|
3345
|
+
if (ftype == Thrift.Type.I32) {
|
|
3346
|
+
this.errorCode = input.readI32();
|
|
3347
|
+
} else {
|
|
3348
|
+
input.skip(ftype);
|
|
3349
|
+
}
|
|
3350
|
+
break;
|
|
3351
|
+
case 5:
|
|
3352
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3353
|
+
this.errorMessage = input.readString();
|
|
3354
|
+
} else {
|
|
3355
|
+
input.skip(ftype);
|
|
3356
|
+
}
|
|
3357
|
+
break;
|
|
3358
|
+
default:
|
|
3359
|
+
input.skip(ftype);
|
|
3360
|
+
}
|
|
3361
|
+
input.readFieldEnd();
|
|
3362
|
+
}
|
|
3363
|
+
input.readStructEnd();
|
|
3364
|
+
return;
|
|
3365
|
+
};
|
|
3366
|
+
|
|
3367
|
+
TStatus.prototype.write = function(output) {
|
|
3368
|
+
output.writeStructBegin('TStatus');
|
|
3369
|
+
if (this.statusCode !== null && this.statusCode !== undefined) {
|
|
3370
|
+
output.writeFieldBegin('statusCode', Thrift.Type.I32, 1);
|
|
3371
|
+
output.writeI32(this.statusCode);
|
|
3372
|
+
output.writeFieldEnd();
|
|
3373
|
+
}
|
|
3374
|
+
if (this.infoMessages !== null && this.infoMessages !== undefined) {
|
|
3375
|
+
output.writeFieldBegin('infoMessages', Thrift.Type.LIST, 2);
|
|
3376
|
+
output.writeListBegin(Thrift.Type.STRING, this.infoMessages.length);
|
|
3377
|
+
for (var iter119 in this.infoMessages) {
|
|
3378
|
+
if (this.infoMessages.hasOwnProperty(iter119)) {
|
|
3379
|
+
iter119 = this.infoMessages[iter119];
|
|
3380
|
+
output.writeString(iter119);
|
|
3381
|
+
}
|
|
3382
|
+
}
|
|
3383
|
+
output.writeListEnd();
|
|
3384
|
+
output.writeFieldEnd();
|
|
3385
|
+
}
|
|
3386
|
+
if (this.sqlState !== null && this.sqlState !== undefined) {
|
|
3387
|
+
output.writeFieldBegin('sqlState', Thrift.Type.STRING, 3);
|
|
3388
|
+
output.writeString(this.sqlState);
|
|
3389
|
+
output.writeFieldEnd();
|
|
3390
|
+
}
|
|
3391
|
+
if (this.errorCode !== null && this.errorCode !== undefined) {
|
|
3392
|
+
output.writeFieldBegin('errorCode', Thrift.Type.I32, 4);
|
|
3393
|
+
output.writeI32(this.errorCode);
|
|
3394
|
+
output.writeFieldEnd();
|
|
3395
|
+
}
|
|
3396
|
+
if (this.errorMessage !== null && this.errorMessage !== undefined) {
|
|
3397
|
+
output.writeFieldBegin('errorMessage', Thrift.Type.STRING, 5);
|
|
3398
|
+
output.writeString(this.errorMessage);
|
|
3399
|
+
output.writeFieldEnd();
|
|
3400
|
+
}
|
|
3401
|
+
output.writeFieldStop();
|
|
3402
|
+
output.writeStructEnd();
|
|
3403
|
+
return;
|
|
3404
|
+
};
|
|
3405
|
+
|
|
3406
|
+
var TNamespace = module.exports.TNamespace = function(args) {
|
|
3407
|
+
this.catalogName = null;
|
|
3408
|
+
this.schemaName = null;
|
|
3409
|
+
if (args) {
|
|
3410
|
+
if (args.catalogName !== undefined && args.catalogName !== null) {
|
|
3411
|
+
this.catalogName = args.catalogName;
|
|
3412
|
+
}
|
|
3413
|
+
if (args.schemaName !== undefined && args.schemaName !== null) {
|
|
3414
|
+
this.schemaName = args.schemaName;
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
};
|
|
3418
|
+
TNamespace.prototype = {};
|
|
3419
|
+
TNamespace.prototype.read = function(input) {
|
|
3420
|
+
input.readStructBegin();
|
|
3421
|
+
while (true) {
|
|
3422
|
+
var ret = input.readFieldBegin();
|
|
3423
|
+
var ftype = ret.ftype;
|
|
3424
|
+
var fid = ret.fid;
|
|
3425
|
+
if (ftype == Thrift.Type.STOP) {
|
|
3426
|
+
break;
|
|
3427
|
+
}
|
|
3428
|
+
switch (fid) {
|
|
3429
|
+
case 1:
|
|
3430
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3431
|
+
this.catalogName = input.readString();
|
|
3432
|
+
} else {
|
|
3433
|
+
input.skip(ftype);
|
|
3434
|
+
}
|
|
3435
|
+
break;
|
|
3436
|
+
case 2:
|
|
3437
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3438
|
+
this.schemaName = input.readString();
|
|
3439
|
+
} else {
|
|
3440
|
+
input.skip(ftype);
|
|
3441
|
+
}
|
|
3442
|
+
break;
|
|
3443
|
+
default:
|
|
3444
|
+
input.skip(ftype);
|
|
3445
|
+
}
|
|
3446
|
+
input.readFieldEnd();
|
|
3447
|
+
}
|
|
3448
|
+
input.readStructEnd();
|
|
3449
|
+
return;
|
|
3450
|
+
};
|
|
3451
|
+
|
|
3452
|
+
TNamespace.prototype.write = function(output) {
|
|
3453
|
+
output.writeStructBegin('TNamespace');
|
|
3454
|
+
if (this.catalogName !== null && this.catalogName !== undefined) {
|
|
3455
|
+
output.writeFieldBegin('catalogName', Thrift.Type.STRING, 1);
|
|
3456
|
+
output.writeString(this.catalogName);
|
|
3457
|
+
output.writeFieldEnd();
|
|
3458
|
+
}
|
|
3459
|
+
if (this.schemaName !== null && this.schemaName !== undefined) {
|
|
3460
|
+
output.writeFieldBegin('schemaName', Thrift.Type.STRING, 2);
|
|
3461
|
+
output.writeString(this.schemaName);
|
|
3462
|
+
output.writeFieldEnd();
|
|
3463
|
+
}
|
|
3464
|
+
output.writeFieldStop();
|
|
3465
|
+
output.writeStructEnd();
|
|
3466
|
+
return;
|
|
3467
|
+
};
|
|
3468
|
+
|
|
3469
|
+
var THandleIdentifier = module.exports.THandleIdentifier = function(args) {
|
|
3470
|
+
this.guid = null;
|
|
3471
|
+
this.secret = null;
|
|
3472
|
+
if (args) {
|
|
3473
|
+
if (args.guid !== undefined && args.guid !== null) {
|
|
3474
|
+
this.guid = args.guid;
|
|
3475
|
+
} else {
|
|
3476
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field guid is unset!');
|
|
3477
|
+
}
|
|
3478
|
+
if (args.secret !== undefined && args.secret !== null) {
|
|
3479
|
+
this.secret = args.secret;
|
|
3480
|
+
} else {
|
|
3481
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field secret is unset!');
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
};
|
|
3485
|
+
THandleIdentifier.prototype = {};
|
|
3486
|
+
THandleIdentifier.prototype.read = function(input) {
|
|
3487
|
+
input.readStructBegin();
|
|
3488
|
+
while (true) {
|
|
3489
|
+
var ret = input.readFieldBegin();
|
|
3490
|
+
var ftype = ret.ftype;
|
|
3491
|
+
var fid = ret.fid;
|
|
3492
|
+
if (ftype == Thrift.Type.STOP) {
|
|
3493
|
+
break;
|
|
3494
|
+
}
|
|
3495
|
+
switch (fid) {
|
|
3496
|
+
case 1:
|
|
3497
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3498
|
+
this.guid = input.readBinary();
|
|
3499
|
+
} else {
|
|
3500
|
+
input.skip(ftype);
|
|
3501
|
+
}
|
|
3502
|
+
break;
|
|
3503
|
+
case 2:
|
|
3504
|
+
if (ftype == Thrift.Type.STRING) {
|
|
3505
|
+
this.secret = input.readBinary();
|
|
3506
|
+
} else {
|
|
3507
|
+
input.skip(ftype);
|
|
3508
|
+
}
|
|
3509
|
+
break;
|
|
3510
|
+
default:
|
|
3511
|
+
input.skip(ftype);
|
|
3512
|
+
}
|
|
3513
|
+
input.readFieldEnd();
|
|
3514
|
+
}
|
|
3515
|
+
input.readStructEnd();
|
|
3516
|
+
return;
|
|
3517
|
+
};
|
|
3518
|
+
|
|
3519
|
+
THandleIdentifier.prototype.write = function(output) {
|
|
3520
|
+
output.writeStructBegin('THandleIdentifier');
|
|
3521
|
+
if (this.guid !== null && this.guid !== undefined) {
|
|
3522
|
+
output.writeFieldBegin('guid', Thrift.Type.STRING, 1);
|
|
3523
|
+
output.writeBinary(this.guid);
|
|
3524
|
+
output.writeFieldEnd();
|
|
3525
|
+
}
|
|
3526
|
+
if (this.secret !== null && this.secret !== undefined) {
|
|
3527
|
+
output.writeFieldBegin('secret', Thrift.Type.STRING, 2);
|
|
3528
|
+
output.writeBinary(this.secret);
|
|
3529
|
+
output.writeFieldEnd();
|
|
2754
3530
|
}
|
|
2755
3531
|
output.writeFieldStop();
|
|
2756
3532
|
output.writeStructEnd();
|
|
@@ -2759,12 +3535,16 @@ THandleIdentifier.prototype.write = function(output) {
|
|
|
2759
3535
|
|
|
2760
3536
|
var TSessionHandle = module.exports.TSessionHandle = function(args) {
|
|
2761
3537
|
this.sessionId = null;
|
|
3538
|
+
this.serverProtocolVersion = null;
|
|
2762
3539
|
if (args) {
|
|
2763
3540
|
if (args.sessionId !== undefined && args.sessionId !== null) {
|
|
2764
3541
|
this.sessionId = new ttypes.THandleIdentifier(args.sessionId);
|
|
2765
3542
|
} else {
|
|
2766
3543
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field sessionId is unset!');
|
|
2767
3544
|
}
|
|
3545
|
+
if (args.serverProtocolVersion !== undefined && args.serverProtocolVersion !== null) {
|
|
3546
|
+
this.serverProtocolVersion = args.serverProtocolVersion;
|
|
3547
|
+
}
|
|
2768
3548
|
}
|
|
2769
3549
|
};
|
|
2770
3550
|
TSessionHandle.prototype = {};
|
|
@@ -2786,9 +3566,13 @@ TSessionHandle.prototype.read = function(input) {
|
|
|
2786
3566
|
input.skip(ftype);
|
|
2787
3567
|
}
|
|
2788
3568
|
break;
|
|
2789
|
-
case
|
|
3569
|
+
case 3329:
|
|
3570
|
+
if (ftype == Thrift.Type.I32) {
|
|
3571
|
+
this.serverProtocolVersion = input.readI32();
|
|
3572
|
+
} else {
|
|
2790
3573
|
input.skip(ftype);
|
|
2791
|
-
|
|
3574
|
+
}
|
|
3575
|
+
break;
|
|
2792
3576
|
default:
|
|
2793
3577
|
input.skip(ftype);
|
|
2794
3578
|
}
|
|
@@ -2805,6 +3589,11 @@ TSessionHandle.prototype.write = function(output) {
|
|
|
2805
3589
|
this.sessionId.write(output);
|
|
2806
3590
|
output.writeFieldEnd();
|
|
2807
3591
|
}
|
|
3592
|
+
if (this.serverProtocolVersion !== null && this.serverProtocolVersion !== undefined) {
|
|
3593
|
+
output.writeFieldBegin('serverProtocolVersion', Thrift.Type.I32, 3329);
|
|
3594
|
+
output.writeI32(this.serverProtocolVersion);
|
|
3595
|
+
output.writeFieldEnd();
|
|
3596
|
+
}
|
|
2808
3597
|
output.writeFieldStop();
|
|
2809
3598
|
output.writeStructEnd();
|
|
2810
3599
|
return;
|
|
@@ -2913,15 +3702,19 @@ TOperationHandle.prototype.write = function(output) {
|
|
|
2913
3702
|
};
|
|
2914
3703
|
|
|
2915
3704
|
var TOpenSessionReq = module.exports.TOpenSessionReq = function(args) {
|
|
2916
|
-
this.client_protocol =
|
|
3705
|
+
this.client_protocol = -7;
|
|
2917
3706
|
this.username = null;
|
|
2918
3707
|
this.password = null;
|
|
2919
3708
|
this.configuration = null;
|
|
3709
|
+
this.getInfos = null;
|
|
3710
|
+
this.client_protocol_i64 = null;
|
|
3711
|
+
this.connectionProperties = null;
|
|
3712
|
+
this.initialNamespace = null;
|
|
3713
|
+
this.canUseMultipleCatalogs = null;
|
|
3714
|
+
this.sessionId = null;
|
|
2920
3715
|
if (args) {
|
|
2921
3716
|
if (args.client_protocol !== undefined && args.client_protocol !== null) {
|
|
2922
3717
|
this.client_protocol = args.client_protocol;
|
|
2923
|
-
} else {
|
|
2924
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field client_protocol is unset!');
|
|
2925
3718
|
}
|
|
2926
3719
|
if (args.username !== undefined && args.username !== null) {
|
|
2927
3720
|
this.username = args.username;
|
|
@@ -2932,6 +3725,24 @@ var TOpenSessionReq = module.exports.TOpenSessionReq = function(args) {
|
|
|
2932
3725
|
if (args.configuration !== undefined && args.configuration !== null) {
|
|
2933
3726
|
this.configuration = Thrift.copyMap(args.configuration, [null]);
|
|
2934
3727
|
}
|
|
3728
|
+
if (args.getInfos !== undefined && args.getInfos !== null) {
|
|
3729
|
+
this.getInfos = Thrift.copyList(args.getInfos, [null]);
|
|
3730
|
+
}
|
|
3731
|
+
if (args.client_protocol_i64 !== undefined && args.client_protocol_i64 !== null) {
|
|
3732
|
+
this.client_protocol_i64 = args.client_protocol_i64;
|
|
3733
|
+
}
|
|
3734
|
+
if (args.connectionProperties !== undefined && args.connectionProperties !== null) {
|
|
3735
|
+
this.connectionProperties = Thrift.copyMap(args.connectionProperties, [null]);
|
|
3736
|
+
}
|
|
3737
|
+
if (args.initialNamespace !== undefined && args.initialNamespace !== null) {
|
|
3738
|
+
this.initialNamespace = new ttypes.TNamespace(args.initialNamespace);
|
|
3739
|
+
}
|
|
3740
|
+
if (args.canUseMultipleCatalogs !== undefined && args.canUseMultipleCatalogs !== null) {
|
|
3741
|
+
this.canUseMultipleCatalogs = args.canUseMultipleCatalogs;
|
|
3742
|
+
}
|
|
3743
|
+
if (args.sessionId !== undefined && args.sessionId !== null) {
|
|
3744
|
+
this.sessionId = new ttypes.THandleIdentifier(args.sessionId);
|
|
3745
|
+
}
|
|
2935
3746
|
}
|
|
2936
3747
|
};
|
|
2937
3748
|
TOpenSessionReq.prototype = {};
|
|
@@ -2969,20 +3780,82 @@ TOpenSessionReq.prototype.read = function(input) {
|
|
|
2969
3780
|
case 4:
|
|
2970
3781
|
if (ftype == Thrift.Type.MAP) {
|
|
2971
3782
|
this.configuration = {};
|
|
2972
|
-
var
|
|
2973
|
-
var
|
|
2974
|
-
for (var
|
|
2975
|
-
var
|
|
2976
|
-
var
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
this.configuration[
|
|
3783
|
+
var _rtmp3121 = input.readMapBegin();
|
|
3784
|
+
var _size120 = _rtmp3121.size || 0;
|
|
3785
|
+
for (var _i122 = 0; _i122 < _size120; ++_i122) {
|
|
3786
|
+
var key123 = null;
|
|
3787
|
+
var val124 = null;
|
|
3788
|
+
key123 = input.readString();
|
|
3789
|
+
val124 = input.readString();
|
|
3790
|
+
this.configuration[key123] = val124;
|
|
3791
|
+
}
|
|
3792
|
+
input.readMapEnd();
|
|
3793
|
+
} else {
|
|
3794
|
+
input.skip(ftype);
|
|
3795
|
+
}
|
|
3796
|
+
break;
|
|
3797
|
+
case 1281:
|
|
3798
|
+
if (ftype == Thrift.Type.LIST) {
|
|
3799
|
+
this.getInfos = [];
|
|
3800
|
+
var _rtmp3126 = input.readListBegin();
|
|
3801
|
+
var _size125 = _rtmp3126.size || 0;
|
|
3802
|
+
for (var _i127 = 0; _i127 < _size125; ++_i127) {
|
|
3803
|
+
var elem128 = null;
|
|
3804
|
+
elem128 = input.readI32();
|
|
3805
|
+
this.getInfos.push(elem128);
|
|
3806
|
+
}
|
|
3807
|
+
input.readListEnd();
|
|
3808
|
+
} else {
|
|
3809
|
+
input.skip(ftype);
|
|
3810
|
+
}
|
|
3811
|
+
break;
|
|
3812
|
+
case 1282:
|
|
3813
|
+
if (ftype == Thrift.Type.I64) {
|
|
3814
|
+
this.client_protocol_i64 = input.readI64();
|
|
3815
|
+
} else {
|
|
3816
|
+
input.skip(ftype);
|
|
3817
|
+
}
|
|
3818
|
+
break;
|
|
3819
|
+
case 1283:
|
|
3820
|
+
if (ftype == Thrift.Type.MAP) {
|
|
3821
|
+
this.connectionProperties = {};
|
|
3822
|
+
var _rtmp3130 = input.readMapBegin();
|
|
3823
|
+
var _size129 = _rtmp3130.size || 0;
|
|
3824
|
+
for (var _i131 = 0; _i131 < _size129; ++_i131) {
|
|
3825
|
+
var key132 = null;
|
|
3826
|
+
var val133 = null;
|
|
3827
|
+
key132 = input.readString();
|
|
3828
|
+
val133 = input.readString();
|
|
3829
|
+
this.connectionProperties[key132] = val133;
|
|
2980
3830
|
}
|
|
2981
3831
|
input.readMapEnd();
|
|
2982
3832
|
} else {
|
|
2983
3833
|
input.skip(ftype);
|
|
2984
3834
|
}
|
|
2985
3835
|
break;
|
|
3836
|
+
case 1284:
|
|
3837
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
3838
|
+
this.initialNamespace = new ttypes.TNamespace();
|
|
3839
|
+
this.initialNamespace.read(input);
|
|
3840
|
+
} else {
|
|
3841
|
+
input.skip(ftype);
|
|
3842
|
+
}
|
|
3843
|
+
break;
|
|
3844
|
+
case 1285:
|
|
3845
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
3846
|
+
this.canUseMultipleCatalogs = input.readBool();
|
|
3847
|
+
} else {
|
|
3848
|
+
input.skip(ftype);
|
|
3849
|
+
}
|
|
3850
|
+
break;
|
|
3851
|
+
case 3329:
|
|
3852
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
3853
|
+
this.sessionId = new ttypes.THandleIdentifier();
|
|
3854
|
+
this.sessionId.read(input);
|
|
3855
|
+
} else {
|
|
3856
|
+
input.skip(ftype);
|
|
3857
|
+
}
|
|
3858
|
+
break;
|
|
2986
3859
|
default:
|
|
2987
3860
|
input.skip(ftype);
|
|
2988
3861
|
}
|
|
@@ -3012,16 +3885,61 @@ TOpenSessionReq.prototype.write = function(output) {
|
|
|
3012
3885
|
if (this.configuration !== null && this.configuration !== undefined) {
|
|
3013
3886
|
output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
|
|
3014
3887
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
|
|
3015
|
-
for (var
|
|
3016
|
-
if (this.configuration.hasOwnProperty(
|
|
3017
|
-
var
|
|
3018
|
-
output.writeString(
|
|
3019
|
-
output.writeString(
|
|
3888
|
+
for (var kiter134 in this.configuration) {
|
|
3889
|
+
if (this.configuration.hasOwnProperty(kiter134)) {
|
|
3890
|
+
var viter135 = this.configuration[kiter134];
|
|
3891
|
+
output.writeString(kiter134);
|
|
3892
|
+
output.writeString(viter135);
|
|
3020
3893
|
}
|
|
3021
3894
|
}
|
|
3022
3895
|
output.writeMapEnd();
|
|
3023
3896
|
output.writeFieldEnd();
|
|
3024
3897
|
}
|
|
3898
|
+
if (this.getInfos !== null && this.getInfos !== undefined) {
|
|
3899
|
+
output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
|
|
3900
|
+
output.writeListBegin(Thrift.Type.I32, this.getInfos.length);
|
|
3901
|
+
for (var iter136 in this.getInfos) {
|
|
3902
|
+
if (this.getInfos.hasOwnProperty(iter136)) {
|
|
3903
|
+
iter136 = this.getInfos[iter136];
|
|
3904
|
+
output.writeI32(iter136);
|
|
3905
|
+
}
|
|
3906
|
+
}
|
|
3907
|
+
output.writeListEnd();
|
|
3908
|
+
output.writeFieldEnd();
|
|
3909
|
+
}
|
|
3910
|
+
if (this.client_protocol_i64 !== null && this.client_protocol_i64 !== undefined) {
|
|
3911
|
+
output.writeFieldBegin('client_protocol_i64', Thrift.Type.I64, 1282);
|
|
3912
|
+
output.writeI64(this.client_protocol_i64);
|
|
3913
|
+
output.writeFieldEnd();
|
|
3914
|
+
}
|
|
3915
|
+
if (this.connectionProperties !== null && this.connectionProperties !== undefined) {
|
|
3916
|
+
output.writeFieldBegin('connectionProperties', Thrift.Type.MAP, 1283);
|
|
3917
|
+
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.connectionProperties));
|
|
3918
|
+
for (var kiter137 in this.connectionProperties) {
|
|
3919
|
+
if (this.connectionProperties.hasOwnProperty(kiter137)) {
|
|
3920
|
+
var viter138 = this.connectionProperties[kiter137];
|
|
3921
|
+
output.writeString(kiter137);
|
|
3922
|
+
output.writeString(viter138);
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
output.writeMapEnd();
|
|
3926
|
+
output.writeFieldEnd();
|
|
3927
|
+
}
|
|
3928
|
+
if (this.initialNamespace !== null && this.initialNamespace !== undefined) {
|
|
3929
|
+
output.writeFieldBegin('initialNamespace', Thrift.Type.STRUCT, 1284);
|
|
3930
|
+
this.initialNamespace.write(output);
|
|
3931
|
+
output.writeFieldEnd();
|
|
3932
|
+
}
|
|
3933
|
+
if (this.canUseMultipleCatalogs !== null && this.canUseMultipleCatalogs !== undefined) {
|
|
3934
|
+
output.writeFieldBegin('canUseMultipleCatalogs', Thrift.Type.BOOL, 1285);
|
|
3935
|
+
output.writeBool(this.canUseMultipleCatalogs);
|
|
3936
|
+
output.writeFieldEnd();
|
|
3937
|
+
}
|
|
3938
|
+
if (this.sessionId !== null && this.sessionId !== undefined) {
|
|
3939
|
+
output.writeFieldBegin('sessionId', Thrift.Type.STRUCT, 3329);
|
|
3940
|
+
this.sessionId.write(output);
|
|
3941
|
+
output.writeFieldEnd();
|
|
3942
|
+
}
|
|
3025
3943
|
output.writeFieldStop();
|
|
3026
3944
|
output.writeStructEnd();
|
|
3027
3945
|
return;
|
|
@@ -3029,9 +3947,12 @@ TOpenSessionReq.prototype.write = function(output) {
|
|
|
3029
3947
|
|
|
3030
3948
|
var TOpenSessionResp = module.exports.TOpenSessionResp = function(args) {
|
|
3031
3949
|
this.status = null;
|
|
3032
|
-
this.serverProtocolVersion =
|
|
3950
|
+
this.serverProtocolVersion = null;
|
|
3033
3951
|
this.sessionHandle = null;
|
|
3034
3952
|
this.configuration = null;
|
|
3953
|
+
this.initialNamespace = null;
|
|
3954
|
+
this.canUseMultipleCatalogs = null;
|
|
3955
|
+
this.getInfos = null;
|
|
3035
3956
|
if (args) {
|
|
3036
3957
|
if (args.status !== undefined && args.status !== null) {
|
|
3037
3958
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -3049,6 +3970,15 @@ var TOpenSessionResp = module.exports.TOpenSessionResp = function(args) {
|
|
|
3049
3970
|
if (args.configuration !== undefined && args.configuration !== null) {
|
|
3050
3971
|
this.configuration = Thrift.copyMap(args.configuration, [null]);
|
|
3051
3972
|
}
|
|
3973
|
+
if (args.initialNamespace !== undefined && args.initialNamespace !== null) {
|
|
3974
|
+
this.initialNamespace = new ttypes.TNamespace(args.initialNamespace);
|
|
3975
|
+
}
|
|
3976
|
+
if (args.canUseMultipleCatalogs !== undefined && args.canUseMultipleCatalogs !== null) {
|
|
3977
|
+
this.canUseMultipleCatalogs = args.canUseMultipleCatalogs;
|
|
3978
|
+
}
|
|
3979
|
+
if (args.getInfos !== undefined && args.getInfos !== null) {
|
|
3980
|
+
this.getInfos = Thrift.copyList(args.getInfos, [null]);
|
|
3981
|
+
}
|
|
3052
3982
|
}
|
|
3053
3983
|
};
|
|
3054
3984
|
TOpenSessionResp.prototype = {};
|
|
@@ -3088,20 +4018,51 @@ TOpenSessionResp.prototype.read = function(input) {
|
|
|
3088
4018
|
case 4:
|
|
3089
4019
|
if (ftype == Thrift.Type.MAP) {
|
|
3090
4020
|
this.configuration = {};
|
|
3091
|
-
var
|
|
3092
|
-
var
|
|
3093
|
-
for (var
|
|
3094
|
-
var
|
|
3095
|
-
var
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
this.configuration[
|
|
4021
|
+
var _rtmp3140 = input.readMapBegin();
|
|
4022
|
+
var _size139 = _rtmp3140.size || 0;
|
|
4023
|
+
for (var _i141 = 0; _i141 < _size139; ++_i141) {
|
|
4024
|
+
var key142 = null;
|
|
4025
|
+
var val143 = null;
|
|
4026
|
+
key142 = input.readString();
|
|
4027
|
+
val143 = input.readString();
|
|
4028
|
+
this.configuration[key142] = val143;
|
|
3099
4029
|
}
|
|
3100
4030
|
input.readMapEnd();
|
|
3101
4031
|
} else {
|
|
3102
4032
|
input.skip(ftype);
|
|
3103
4033
|
}
|
|
3104
4034
|
break;
|
|
4035
|
+
case 1284:
|
|
4036
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4037
|
+
this.initialNamespace = new ttypes.TNamespace();
|
|
4038
|
+
this.initialNamespace.read(input);
|
|
4039
|
+
} else {
|
|
4040
|
+
input.skip(ftype);
|
|
4041
|
+
}
|
|
4042
|
+
break;
|
|
4043
|
+
case 1285:
|
|
4044
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
4045
|
+
this.canUseMultipleCatalogs = input.readBool();
|
|
4046
|
+
} else {
|
|
4047
|
+
input.skip(ftype);
|
|
4048
|
+
}
|
|
4049
|
+
break;
|
|
4050
|
+
case 1281:
|
|
4051
|
+
if (ftype == Thrift.Type.LIST) {
|
|
4052
|
+
this.getInfos = [];
|
|
4053
|
+
var _rtmp3145 = input.readListBegin();
|
|
4054
|
+
var _size144 = _rtmp3145.size || 0;
|
|
4055
|
+
for (var _i146 = 0; _i146 < _size144; ++_i146) {
|
|
4056
|
+
var elem147 = null;
|
|
4057
|
+
elem147 = new ttypes.TGetInfoValue();
|
|
4058
|
+
elem147.read(input);
|
|
4059
|
+
this.getInfos.push(elem147);
|
|
4060
|
+
}
|
|
4061
|
+
input.readListEnd();
|
|
4062
|
+
} else {
|
|
4063
|
+
input.skip(ftype);
|
|
4064
|
+
}
|
|
4065
|
+
break;
|
|
3105
4066
|
default:
|
|
3106
4067
|
input.skip(ftype);
|
|
3107
4068
|
}
|
|
@@ -3131,37 +4092,55 @@ TOpenSessionResp.prototype.write = function(output) {
|
|
|
3131
4092
|
if (this.configuration !== null && this.configuration !== undefined) {
|
|
3132
4093
|
output.writeFieldBegin('configuration', Thrift.Type.MAP, 4);
|
|
3133
4094
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
|
|
3134
|
-
for (var
|
|
3135
|
-
if (this.configuration.hasOwnProperty(
|
|
3136
|
-
var
|
|
3137
|
-
output.writeString(
|
|
3138
|
-
output.writeString(
|
|
4095
|
+
for (var kiter148 in this.configuration) {
|
|
4096
|
+
if (this.configuration.hasOwnProperty(kiter148)) {
|
|
4097
|
+
var viter149 = this.configuration[kiter148];
|
|
4098
|
+
output.writeString(kiter148);
|
|
4099
|
+
output.writeString(viter149);
|
|
3139
4100
|
}
|
|
3140
4101
|
}
|
|
3141
4102
|
output.writeMapEnd();
|
|
3142
4103
|
output.writeFieldEnd();
|
|
3143
4104
|
}
|
|
4105
|
+
if (this.initialNamespace !== null && this.initialNamespace !== undefined) {
|
|
4106
|
+
output.writeFieldBegin('initialNamespace', Thrift.Type.STRUCT, 1284);
|
|
4107
|
+
this.initialNamespace.write(output);
|
|
4108
|
+
output.writeFieldEnd();
|
|
4109
|
+
}
|
|
4110
|
+
if (this.canUseMultipleCatalogs !== null && this.canUseMultipleCatalogs !== undefined) {
|
|
4111
|
+
output.writeFieldBegin('canUseMultipleCatalogs', Thrift.Type.BOOL, 1285);
|
|
4112
|
+
output.writeBool(this.canUseMultipleCatalogs);
|
|
4113
|
+
output.writeFieldEnd();
|
|
4114
|
+
}
|
|
4115
|
+
if (this.getInfos !== null && this.getInfos !== undefined) {
|
|
4116
|
+
output.writeFieldBegin('getInfos', Thrift.Type.LIST, 1281);
|
|
4117
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.getInfos.length);
|
|
4118
|
+
for (var iter150 in this.getInfos) {
|
|
4119
|
+
if (this.getInfos.hasOwnProperty(iter150)) {
|
|
4120
|
+
iter150 = this.getInfos[iter150];
|
|
4121
|
+
iter150.write(output);
|
|
4122
|
+
}
|
|
4123
|
+
}
|
|
4124
|
+
output.writeListEnd();
|
|
4125
|
+
output.writeFieldEnd();
|
|
4126
|
+
}
|
|
3144
4127
|
output.writeFieldStop();
|
|
3145
4128
|
output.writeStructEnd();
|
|
3146
4129
|
return;
|
|
3147
4130
|
};
|
|
3148
4131
|
|
|
3149
|
-
var
|
|
4132
|
+
var TCloseSessionReq = module.exports.TCloseSessionReq = function(args) {
|
|
3150
4133
|
this.sessionHandle = null;
|
|
3151
|
-
this.configuration = null;
|
|
3152
4134
|
if (args) {
|
|
3153
4135
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
3154
4136
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
3155
4137
|
} else {
|
|
3156
4138
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field sessionHandle is unset!');
|
|
3157
4139
|
}
|
|
3158
|
-
if (args.configuration !== undefined && args.configuration !== null) {
|
|
3159
|
-
this.configuration = Thrift.copyMap(args.configuration, [null]);
|
|
3160
|
-
}
|
|
3161
4140
|
}
|
|
3162
4141
|
};
|
|
3163
|
-
|
|
3164
|
-
|
|
4142
|
+
TCloseSessionReq.prototype = {};
|
|
4143
|
+
TCloseSessionReq.prototype.read = function(input) {
|
|
3165
4144
|
input.readStructBegin();
|
|
3166
4145
|
while (true) {
|
|
3167
4146
|
var ret = input.readFieldBegin();
|
|
@@ -3179,23 +4158,9 @@ TSetClientInfoReq.prototype.read = function(input) {
|
|
|
3179
4158
|
input.skip(ftype);
|
|
3180
4159
|
}
|
|
3181
4160
|
break;
|
|
3182
|
-
case
|
|
3183
|
-
if (ftype == Thrift.Type.MAP) {
|
|
3184
|
-
this.configuration = {};
|
|
3185
|
-
var _rtmp3106 = input.readMapBegin();
|
|
3186
|
-
var _size105 = _rtmp3106.size || 0;
|
|
3187
|
-
for (var _i107 = 0; _i107 < _size105; ++_i107) {
|
|
3188
|
-
var key108 = null;
|
|
3189
|
-
var val109 = null;
|
|
3190
|
-
key108 = input.readString();
|
|
3191
|
-
val109 = input.readString();
|
|
3192
|
-
this.configuration[key108] = val109;
|
|
3193
|
-
}
|
|
3194
|
-
input.readMapEnd();
|
|
3195
|
-
} else {
|
|
4161
|
+
case 0:
|
|
3196
4162
|
input.skip(ftype);
|
|
3197
|
-
|
|
3198
|
-
break;
|
|
4163
|
+
break;
|
|
3199
4164
|
default:
|
|
3200
4165
|
input.skip(ftype);
|
|
3201
4166
|
}
|
|
@@ -3205,32 +4170,19 @@ TSetClientInfoReq.prototype.read = function(input) {
|
|
|
3205
4170
|
return;
|
|
3206
4171
|
};
|
|
3207
4172
|
|
|
3208
|
-
|
|
3209
|
-
output.writeStructBegin('
|
|
4173
|
+
TCloseSessionReq.prototype.write = function(output) {
|
|
4174
|
+
output.writeStructBegin('TCloseSessionReq');
|
|
3210
4175
|
if (this.sessionHandle !== null && this.sessionHandle !== undefined) {
|
|
3211
4176
|
output.writeFieldBegin('sessionHandle', Thrift.Type.STRUCT, 1);
|
|
3212
4177
|
this.sessionHandle.write(output);
|
|
3213
4178
|
output.writeFieldEnd();
|
|
3214
4179
|
}
|
|
3215
|
-
if (this.configuration !== null && this.configuration !== undefined) {
|
|
3216
|
-
output.writeFieldBegin('configuration', Thrift.Type.MAP, 2);
|
|
3217
|
-
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.configuration));
|
|
3218
|
-
for (var kiter110 in this.configuration) {
|
|
3219
|
-
if (this.configuration.hasOwnProperty(kiter110)) {
|
|
3220
|
-
var viter111 = this.configuration[kiter110];
|
|
3221
|
-
output.writeString(kiter110);
|
|
3222
|
-
output.writeString(viter111);
|
|
3223
|
-
}
|
|
3224
|
-
}
|
|
3225
|
-
output.writeMapEnd();
|
|
3226
|
-
output.writeFieldEnd();
|
|
3227
|
-
}
|
|
3228
4180
|
output.writeFieldStop();
|
|
3229
4181
|
output.writeStructEnd();
|
|
3230
4182
|
return;
|
|
3231
4183
|
};
|
|
3232
4184
|
|
|
3233
|
-
var
|
|
4185
|
+
var TCloseSessionResp = module.exports.TCloseSessionResp = function(args) {
|
|
3234
4186
|
this.status = null;
|
|
3235
4187
|
if (args) {
|
|
3236
4188
|
if (args.status !== undefined && args.status !== null) {
|
|
@@ -3240,8 +4192,8 @@ var TSetClientInfoResp = module.exports.TSetClientInfoResp = function(args) {
|
|
|
3240
4192
|
}
|
|
3241
4193
|
}
|
|
3242
4194
|
};
|
|
3243
|
-
|
|
3244
|
-
|
|
4195
|
+
TCloseSessionResp.prototype = {};
|
|
4196
|
+
TCloseSessionResp.prototype.read = function(input) {
|
|
3245
4197
|
input.readStructBegin();
|
|
3246
4198
|
while (true) {
|
|
3247
4199
|
var ret = input.readFieldBegin();
|
|
@@ -3271,8 +4223,8 @@ TSetClientInfoResp.prototype.read = function(input) {
|
|
|
3271
4223
|
return;
|
|
3272
4224
|
};
|
|
3273
4225
|
|
|
3274
|
-
|
|
3275
|
-
output.writeStructBegin('
|
|
4226
|
+
TCloseSessionResp.prototype.write = function(output) {
|
|
4227
|
+
output.writeStructBegin('TCloseSessionResp');
|
|
3276
4228
|
if (this.status !== null && this.status !== undefined) {
|
|
3277
4229
|
output.writeFieldBegin('status', Thrift.Type.STRUCT, 1);
|
|
3278
4230
|
this.status.write(output);
|
|
@@ -3283,18 +4235,155 @@ TSetClientInfoResp.prototype.write = function(output) {
|
|
|
3283
4235
|
return;
|
|
3284
4236
|
};
|
|
3285
4237
|
|
|
3286
|
-
var
|
|
4238
|
+
var TGetInfoValue = module.exports.TGetInfoValue = function(args) {
|
|
4239
|
+
this.stringValue = null;
|
|
4240
|
+
this.smallIntValue = null;
|
|
4241
|
+
this.integerBitmask = null;
|
|
4242
|
+
this.integerFlag = null;
|
|
4243
|
+
this.binaryValue = null;
|
|
4244
|
+
this.lenValue = null;
|
|
4245
|
+
if (args) {
|
|
4246
|
+
if (args.stringValue !== undefined && args.stringValue !== null) {
|
|
4247
|
+
this.stringValue = args.stringValue;
|
|
4248
|
+
}
|
|
4249
|
+
if (args.smallIntValue !== undefined && args.smallIntValue !== null) {
|
|
4250
|
+
this.smallIntValue = args.smallIntValue;
|
|
4251
|
+
}
|
|
4252
|
+
if (args.integerBitmask !== undefined && args.integerBitmask !== null) {
|
|
4253
|
+
this.integerBitmask = args.integerBitmask;
|
|
4254
|
+
}
|
|
4255
|
+
if (args.integerFlag !== undefined && args.integerFlag !== null) {
|
|
4256
|
+
this.integerFlag = args.integerFlag;
|
|
4257
|
+
}
|
|
4258
|
+
if (args.binaryValue !== undefined && args.binaryValue !== null) {
|
|
4259
|
+
this.binaryValue = args.binaryValue;
|
|
4260
|
+
}
|
|
4261
|
+
if (args.lenValue !== undefined && args.lenValue !== null) {
|
|
4262
|
+
this.lenValue = args.lenValue;
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4265
|
+
};
|
|
4266
|
+
TGetInfoValue.prototype = {};
|
|
4267
|
+
TGetInfoValue.prototype.read = function(input) {
|
|
4268
|
+
input.readStructBegin();
|
|
4269
|
+
while (true) {
|
|
4270
|
+
var ret = input.readFieldBegin();
|
|
4271
|
+
var ftype = ret.ftype;
|
|
4272
|
+
var fid = ret.fid;
|
|
4273
|
+
if (ftype == Thrift.Type.STOP) {
|
|
4274
|
+
break;
|
|
4275
|
+
}
|
|
4276
|
+
switch (fid) {
|
|
4277
|
+
case 1:
|
|
4278
|
+
if (ftype == Thrift.Type.STRING) {
|
|
4279
|
+
this.stringValue = input.readString();
|
|
4280
|
+
} else {
|
|
4281
|
+
input.skip(ftype);
|
|
4282
|
+
}
|
|
4283
|
+
break;
|
|
4284
|
+
case 2:
|
|
4285
|
+
if (ftype == Thrift.Type.I16) {
|
|
4286
|
+
this.smallIntValue = input.readI16();
|
|
4287
|
+
} else {
|
|
4288
|
+
input.skip(ftype);
|
|
4289
|
+
}
|
|
4290
|
+
break;
|
|
4291
|
+
case 3:
|
|
4292
|
+
if (ftype == Thrift.Type.I32) {
|
|
4293
|
+
this.integerBitmask = input.readI32();
|
|
4294
|
+
} else {
|
|
4295
|
+
input.skip(ftype);
|
|
4296
|
+
}
|
|
4297
|
+
break;
|
|
4298
|
+
case 4:
|
|
4299
|
+
if (ftype == Thrift.Type.I32) {
|
|
4300
|
+
this.integerFlag = input.readI32();
|
|
4301
|
+
} else {
|
|
4302
|
+
input.skip(ftype);
|
|
4303
|
+
}
|
|
4304
|
+
break;
|
|
4305
|
+
case 5:
|
|
4306
|
+
if (ftype == Thrift.Type.I32) {
|
|
4307
|
+
this.binaryValue = input.readI32();
|
|
4308
|
+
} else {
|
|
4309
|
+
input.skip(ftype);
|
|
4310
|
+
}
|
|
4311
|
+
break;
|
|
4312
|
+
case 6:
|
|
4313
|
+
if (ftype == Thrift.Type.I64) {
|
|
4314
|
+
this.lenValue = input.readI64();
|
|
4315
|
+
} else {
|
|
4316
|
+
input.skip(ftype);
|
|
4317
|
+
}
|
|
4318
|
+
break;
|
|
4319
|
+
default:
|
|
4320
|
+
input.skip(ftype);
|
|
4321
|
+
}
|
|
4322
|
+
input.readFieldEnd();
|
|
4323
|
+
}
|
|
4324
|
+
input.readStructEnd();
|
|
4325
|
+
return;
|
|
4326
|
+
};
|
|
4327
|
+
|
|
4328
|
+
TGetInfoValue.prototype.write = function(output) {
|
|
4329
|
+
output.writeStructBegin('TGetInfoValue');
|
|
4330
|
+
if (this.stringValue !== null && this.stringValue !== undefined) {
|
|
4331
|
+
output.writeFieldBegin('stringValue', Thrift.Type.STRING, 1);
|
|
4332
|
+
output.writeString(this.stringValue);
|
|
4333
|
+
output.writeFieldEnd();
|
|
4334
|
+
}
|
|
4335
|
+
if (this.smallIntValue !== null && this.smallIntValue !== undefined) {
|
|
4336
|
+
output.writeFieldBegin('smallIntValue', Thrift.Type.I16, 2);
|
|
4337
|
+
output.writeI16(this.smallIntValue);
|
|
4338
|
+
output.writeFieldEnd();
|
|
4339
|
+
}
|
|
4340
|
+
if (this.integerBitmask !== null && this.integerBitmask !== undefined) {
|
|
4341
|
+
output.writeFieldBegin('integerBitmask', Thrift.Type.I32, 3);
|
|
4342
|
+
output.writeI32(this.integerBitmask);
|
|
4343
|
+
output.writeFieldEnd();
|
|
4344
|
+
}
|
|
4345
|
+
if (this.integerFlag !== null && this.integerFlag !== undefined) {
|
|
4346
|
+
output.writeFieldBegin('integerFlag', Thrift.Type.I32, 4);
|
|
4347
|
+
output.writeI32(this.integerFlag);
|
|
4348
|
+
output.writeFieldEnd();
|
|
4349
|
+
}
|
|
4350
|
+
if (this.binaryValue !== null && this.binaryValue !== undefined) {
|
|
4351
|
+
output.writeFieldBegin('binaryValue', Thrift.Type.I32, 5);
|
|
4352
|
+
output.writeI32(this.binaryValue);
|
|
4353
|
+
output.writeFieldEnd();
|
|
4354
|
+
}
|
|
4355
|
+
if (this.lenValue !== null && this.lenValue !== undefined) {
|
|
4356
|
+
output.writeFieldBegin('lenValue', Thrift.Type.I64, 6);
|
|
4357
|
+
output.writeI64(this.lenValue);
|
|
4358
|
+
output.writeFieldEnd();
|
|
4359
|
+
}
|
|
4360
|
+
output.writeFieldStop();
|
|
4361
|
+
output.writeStructEnd();
|
|
4362
|
+
return;
|
|
4363
|
+
};
|
|
4364
|
+
|
|
4365
|
+
var TGetInfoReq = module.exports.TGetInfoReq = function(args) {
|
|
3287
4366
|
this.sessionHandle = null;
|
|
4367
|
+
this.infoType = null;
|
|
4368
|
+
this.sessionConf = null;
|
|
3288
4369
|
if (args) {
|
|
3289
4370
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
3290
4371
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
3291
4372
|
} else {
|
|
3292
4373
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field sessionHandle is unset!');
|
|
3293
4374
|
}
|
|
4375
|
+
if (args.infoType !== undefined && args.infoType !== null) {
|
|
4376
|
+
this.infoType = args.infoType;
|
|
4377
|
+
} else {
|
|
4378
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field infoType is unset!');
|
|
4379
|
+
}
|
|
4380
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
4381
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
4382
|
+
}
|
|
3294
4383
|
}
|
|
3295
4384
|
};
|
|
3296
|
-
|
|
3297
|
-
|
|
4385
|
+
TGetInfoReq.prototype = {};
|
|
4386
|
+
TGetInfoReq.prototype.read = function(input) {
|
|
3298
4387
|
input.readStructBegin();
|
|
3299
4388
|
while (true) {
|
|
3300
4389
|
var ret = input.readFieldBegin();
|
|
@@ -3312,9 +4401,21 @@ TCloseSessionReq.prototype.read = function(input) {
|
|
|
3312
4401
|
input.skip(ftype);
|
|
3313
4402
|
}
|
|
3314
4403
|
break;
|
|
3315
|
-
case
|
|
4404
|
+
case 2:
|
|
4405
|
+
if (ftype == Thrift.Type.I32) {
|
|
4406
|
+
this.infoType = input.readI32();
|
|
4407
|
+
} else {
|
|
3316
4408
|
input.skip(ftype);
|
|
3317
|
-
|
|
4409
|
+
}
|
|
4410
|
+
break;
|
|
4411
|
+
case 3329:
|
|
4412
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4413
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
4414
|
+
this.sessionConf.read(input);
|
|
4415
|
+
} else {
|
|
4416
|
+
input.skip(ftype);
|
|
4417
|
+
}
|
|
4418
|
+
break;
|
|
3318
4419
|
default:
|
|
3319
4420
|
input.skip(ftype);
|
|
3320
4421
|
}
|
|
@@ -3324,30 +4425,46 @@ TCloseSessionReq.prototype.read = function(input) {
|
|
|
3324
4425
|
return;
|
|
3325
4426
|
};
|
|
3326
4427
|
|
|
3327
|
-
|
|
3328
|
-
output.writeStructBegin('
|
|
4428
|
+
TGetInfoReq.prototype.write = function(output) {
|
|
4429
|
+
output.writeStructBegin('TGetInfoReq');
|
|
3329
4430
|
if (this.sessionHandle !== null && this.sessionHandle !== undefined) {
|
|
3330
4431
|
output.writeFieldBegin('sessionHandle', Thrift.Type.STRUCT, 1);
|
|
3331
4432
|
this.sessionHandle.write(output);
|
|
3332
4433
|
output.writeFieldEnd();
|
|
3333
4434
|
}
|
|
4435
|
+
if (this.infoType !== null && this.infoType !== undefined) {
|
|
4436
|
+
output.writeFieldBegin('infoType', Thrift.Type.I32, 2);
|
|
4437
|
+
output.writeI32(this.infoType);
|
|
4438
|
+
output.writeFieldEnd();
|
|
4439
|
+
}
|
|
4440
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
4441
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3329);
|
|
4442
|
+
this.sessionConf.write(output);
|
|
4443
|
+
output.writeFieldEnd();
|
|
4444
|
+
}
|
|
3334
4445
|
output.writeFieldStop();
|
|
3335
4446
|
output.writeStructEnd();
|
|
3336
4447
|
return;
|
|
3337
4448
|
};
|
|
3338
4449
|
|
|
3339
|
-
var
|
|
4450
|
+
var TGetInfoResp = module.exports.TGetInfoResp = function(args) {
|
|
3340
4451
|
this.status = null;
|
|
4452
|
+
this.infoValue = null;
|
|
3341
4453
|
if (args) {
|
|
3342
4454
|
if (args.status !== undefined && args.status !== null) {
|
|
3343
4455
|
this.status = new ttypes.TStatus(args.status);
|
|
3344
4456
|
} else {
|
|
3345
4457
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field status is unset!');
|
|
3346
4458
|
}
|
|
4459
|
+
if (args.infoValue !== undefined && args.infoValue !== null) {
|
|
4460
|
+
this.infoValue = new ttypes.TGetInfoValue(args.infoValue);
|
|
4461
|
+
} else {
|
|
4462
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field infoValue is unset!');
|
|
4463
|
+
}
|
|
3347
4464
|
}
|
|
3348
4465
|
};
|
|
3349
|
-
|
|
3350
|
-
|
|
4466
|
+
TGetInfoResp.prototype = {};
|
|
4467
|
+
TGetInfoResp.prototype.read = function(input) {
|
|
3351
4468
|
input.readStructBegin();
|
|
3352
4469
|
while (true) {
|
|
3353
4470
|
var ret = input.readFieldBegin();
|
|
@@ -3365,9 +4482,14 @@ TCloseSessionResp.prototype.read = function(input) {
|
|
|
3365
4482
|
input.skip(ftype);
|
|
3366
4483
|
}
|
|
3367
4484
|
break;
|
|
3368
|
-
case
|
|
4485
|
+
case 2:
|
|
4486
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4487
|
+
this.infoValue = new ttypes.TGetInfoValue();
|
|
4488
|
+
this.infoValue.read(input);
|
|
4489
|
+
} else {
|
|
3369
4490
|
input.skip(ftype);
|
|
3370
|
-
|
|
4491
|
+
}
|
|
4492
|
+
break;
|
|
3371
4493
|
default:
|
|
3372
4494
|
input.skip(ftype);
|
|
3373
4495
|
}
|
|
@@ -3377,48 +4499,39 @@ TCloseSessionResp.prototype.read = function(input) {
|
|
|
3377
4499
|
return;
|
|
3378
4500
|
};
|
|
3379
4501
|
|
|
3380
|
-
|
|
3381
|
-
output.writeStructBegin('
|
|
4502
|
+
TGetInfoResp.prototype.write = function(output) {
|
|
4503
|
+
output.writeStructBegin('TGetInfoResp');
|
|
3382
4504
|
if (this.status !== null && this.status !== undefined) {
|
|
3383
4505
|
output.writeFieldBegin('status', Thrift.Type.STRUCT, 1);
|
|
3384
4506
|
this.status.write(output);
|
|
3385
4507
|
output.writeFieldEnd();
|
|
3386
4508
|
}
|
|
4509
|
+
if (this.infoValue !== null && this.infoValue !== undefined) {
|
|
4510
|
+
output.writeFieldBegin('infoValue', Thrift.Type.STRUCT, 2);
|
|
4511
|
+
this.infoValue.write(output);
|
|
4512
|
+
output.writeFieldEnd();
|
|
4513
|
+
}
|
|
3387
4514
|
output.writeFieldStop();
|
|
3388
4515
|
output.writeStructEnd();
|
|
3389
4516
|
return;
|
|
3390
4517
|
};
|
|
3391
4518
|
|
|
3392
|
-
var
|
|
3393
|
-
this.
|
|
3394
|
-
this.
|
|
3395
|
-
this.integerBitmask = null;
|
|
3396
|
-
this.integerFlag = null;
|
|
3397
|
-
this.binaryValue = null;
|
|
3398
|
-
this.lenValue = null;
|
|
4519
|
+
var TSparkGetDirectResults = module.exports.TSparkGetDirectResults = function(args) {
|
|
4520
|
+
this.maxRows = null;
|
|
4521
|
+
this.maxBytes = null;
|
|
3399
4522
|
if (args) {
|
|
3400
|
-
if (args.
|
|
3401
|
-
this.
|
|
3402
|
-
}
|
|
3403
|
-
|
|
3404
|
-
this.smallIntValue = args.smallIntValue;
|
|
3405
|
-
}
|
|
3406
|
-
if (args.integerBitmask !== undefined && args.integerBitmask !== null) {
|
|
3407
|
-
this.integerBitmask = args.integerBitmask;
|
|
3408
|
-
}
|
|
3409
|
-
if (args.integerFlag !== undefined && args.integerFlag !== null) {
|
|
3410
|
-
this.integerFlag = args.integerFlag;
|
|
3411
|
-
}
|
|
3412
|
-
if (args.binaryValue !== undefined && args.binaryValue !== null) {
|
|
3413
|
-
this.binaryValue = args.binaryValue;
|
|
4523
|
+
if (args.maxRows !== undefined && args.maxRows !== null) {
|
|
4524
|
+
this.maxRows = args.maxRows;
|
|
4525
|
+
} else {
|
|
4526
|
+
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field maxRows is unset!');
|
|
3414
4527
|
}
|
|
3415
|
-
if (args.
|
|
3416
|
-
this.
|
|
4528
|
+
if (args.maxBytes !== undefined && args.maxBytes !== null) {
|
|
4529
|
+
this.maxBytes = args.maxBytes;
|
|
3417
4530
|
}
|
|
3418
4531
|
}
|
|
3419
|
-
};
|
|
3420
|
-
|
|
3421
|
-
|
|
4532
|
+
};
|
|
4533
|
+
TSparkGetDirectResults.prototype = {};
|
|
4534
|
+
TSparkGetDirectResults.prototype.read = function(input) {
|
|
3422
4535
|
input.readStructBegin();
|
|
3423
4536
|
while (true) {
|
|
3424
4537
|
var ret = input.readFieldBegin();
|
|
@@ -3429,43 +4542,15 @@ TGetInfoValue.prototype.read = function(input) {
|
|
|
3429
4542
|
}
|
|
3430
4543
|
switch (fid) {
|
|
3431
4544
|
case 1:
|
|
3432
|
-
if (ftype == Thrift.Type.
|
|
3433
|
-
this.
|
|
4545
|
+
if (ftype == Thrift.Type.I64) {
|
|
4546
|
+
this.maxRows = input.readI64();
|
|
3434
4547
|
} else {
|
|
3435
4548
|
input.skip(ftype);
|
|
3436
4549
|
}
|
|
3437
4550
|
break;
|
|
3438
4551
|
case 2:
|
|
3439
|
-
if (ftype == Thrift.Type.I16) {
|
|
3440
|
-
this.smallIntValue = input.readI16();
|
|
3441
|
-
} else {
|
|
3442
|
-
input.skip(ftype);
|
|
3443
|
-
}
|
|
3444
|
-
break;
|
|
3445
|
-
case 3:
|
|
3446
|
-
if (ftype == Thrift.Type.I32) {
|
|
3447
|
-
this.integerBitmask = input.readI32();
|
|
3448
|
-
} else {
|
|
3449
|
-
input.skip(ftype);
|
|
3450
|
-
}
|
|
3451
|
-
break;
|
|
3452
|
-
case 4:
|
|
3453
|
-
if (ftype == Thrift.Type.I32) {
|
|
3454
|
-
this.integerFlag = input.readI32();
|
|
3455
|
-
} else {
|
|
3456
|
-
input.skip(ftype);
|
|
3457
|
-
}
|
|
3458
|
-
break;
|
|
3459
|
-
case 5:
|
|
3460
|
-
if (ftype == Thrift.Type.I32) {
|
|
3461
|
-
this.binaryValue = input.readI32();
|
|
3462
|
-
} else {
|
|
3463
|
-
input.skip(ftype);
|
|
3464
|
-
}
|
|
3465
|
-
break;
|
|
3466
|
-
case 6:
|
|
3467
4552
|
if (ftype == Thrift.Type.I64) {
|
|
3468
|
-
this.
|
|
4553
|
+
this.maxBytes = input.readI64();
|
|
3469
4554
|
} else {
|
|
3470
4555
|
input.skip(ftype);
|
|
3471
4556
|
}
|
|
@@ -3479,36 +4564,16 @@ TGetInfoValue.prototype.read = function(input) {
|
|
|
3479
4564
|
return;
|
|
3480
4565
|
};
|
|
3481
4566
|
|
|
3482
|
-
|
|
3483
|
-
output.writeStructBegin('
|
|
3484
|
-
if (this.
|
|
3485
|
-
output.writeFieldBegin('
|
|
3486
|
-
output.
|
|
3487
|
-
output.writeFieldEnd();
|
|
3488
|
-
}
|
|
3489
|
-
if (this.smallIntValue !== null && this.smallIntValue !== undefined) {
|
|
3490
|
-
output.writeFieldBegin('smallIntValue', Thrift.Type.I16, 2);
|
|
3491
|
-
output.writeI16(this.smallIntValue);
|
|
3492
|
-
output.writeFieldEnd();
|
|
3493
|
-
}
|
|
3494
|
-
if (this.integerBitmask !== null && this.integerBitmask !== undefined) {
|
|
3495
|
-
output.writeFieldBegin('integerBitmask', Thrift.Type.I32, 3);
|
|
3496
|
-
output.writeI32(this.integerBitmask);
|
|
3497
|
-
output.writeFieldEnd();
|
|
3498
|
-
}
|
|
3499
|
-
if (this.integerFlag !== null && this.integerFlag !== undefined) {
|
|
3500
|
-
output.writeFieldBegin('integerFlag', Thrift.Type.I32, 4);
|
|
3501
|
-
output.writeI32(this.integerFlag);
|
|
3502
|
-
output.writeFieldEnd();
|
|
3503
|
-
}
|
|
3504
|
-
if (this.binaryValue !== null && this.binaryValue !== undefined) {
|
|
3505
|
-
output.writeFieldBegin('binaryValue', Thrift.Type.I32, 5);
|
|
3506
|
-
output.writeI32(this.binaryValue);
|
|
4567
|
+
TSparkGetDirectResults.prototype.write = function(output) {
|
|
4568
|
+
output.writeStructBegin('TSparkGetDirectResults');
|
|
4569
|
+
if (this.maxRows !== null && this.maxRows !== undefined) {
|
|
4570
|
+
output.writeFieldBegin('maxRows', Thrift.Type.I64, 1);
|
|
4571
|
+
output.writeI64(this.maxRows);
|
|
3507
4572
|
output.writeFieldEnd();
|
|
3508
4573
|
}
|
|
3509
|
-
if (this.
|
|
3510
|
-
output.writeFieldBegin('
|
|
3511
|
-
output.writeI64(this.
|
|
4574
|
+
if (this.maxBytes !== null && this.maxBytes !== undefined) {
|
|
4575
|
+
output.writeFieldBegin('maxBytes', Thrift.Type.I64, 2);
|
|
4576
|
+
output.writeI64(this.maxBytes);
|
|
3512
4577
|
output.writeFieldEnd();
|
|
3513
4578
|
}
|
|
3514
4579
|
output.writeFieldStop();
|
|
@@ -3516,24 +4581,28 @@ TGetInfoValue.prototype.write = function(output) {
|
|
|
3516
4581
|
return;
|
|
3517
4582
|
};
|
|
3518
4583
|
|
|
3519
|
-
var
|
|
3520
|
-
this.
|
|
3521
|
-
this.
|
|
4584
|
+
var TSparkDirectResults = module.exports.TSparkDirectResults = function(args) {
|
|
4585
|
+
this.operationStatus = null;
|
|
4586
|
+
this.resultSetMetadata = null;
|
|
4587
|
+
this.resultSet = null;
|
|
4588
|
+
this.closeOperation = null;
|
|
3522
4589
|
if (args) {
|
|
3523
|
-
if (args.
|
|
3524
|
-
this.
|
|
3525
|
-
} else {
|
|
3526
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field sessionHandle is unset!');
|
|
4590
|
+
if (args.operationStatus !== undefined && args.operationStatus !== null) {
|
|
4591
|
+
this.operationStatus = new ttypes.TGetOperationStatusResp(args.operationStatus);
|
|
3527
4592
|
}
|
|
3528
|
-
if (args.
|
|
3529
|
-
this.
|
|
3530
|
-
}
|
|
3531
|
-
|
|
4593
|
+
if (args.resultSetMetadata !== undefined && args.resultSetMetadata !== null) {
|
|
4594
|
+
this.resultSetMetadata = new ttypes.TGetResultSetMetadataResp(args.resultSetMetadata);
|
|
4595
|
+
}
|
|
4596
|
+
if (args.resultSet !== undefined && args.resultSet !== null) {
|
|
4597
|
+
this.resultSet = new ttypes.TFetchResultsResp(args.resultSet);
|
|
4598
|
+
}
|
|
4599
|
+
if (args.closeOperation !== undefined && args.closeOperation !== null) {
|
|
4600
|
+
this.closeOperation = new ttypes.TCloseOperationResp(args.closeOperation);
|
|
3532
4601
|
}
|
|
3533
4602
|
}
|
|
3534
4603
|
};
|
|
3535
|
-
|
|
3536
|
-
|
|
4604
|
+
TSparkDirectResults.prototype = {};
|
|
4605
|
+
TSparkDirectResults.prototype.read = function(input) {
|
|
3537
4606
|
input.readStructBegin();
|
|
3538
4607
|
while (true) {
|
|
3539
4608
|
var ret = input.readFieldBegin();
|
|
@@ -3545,15 +4614,32 @@ TGetInfoReq.prototype.read = function(input) {
|
|
|
3545
4614
|
switch (fid) {
|
|
3546
4615
|
case 1:
|
|
3547
4616
|
if (ftype == Thrift.Type.STRUCT) {
|
|
3548
|
-
this.
|
|
3549
|
-
this.
|
|
4617
|
+
this.operationStatus = new ttypes.TGetOperationStatusResp();
|
|
4618
|
+
this.operationStatus.read(input);
|
|
3550
4619
|
} else {
|
|
3551
4620
|
input.skip(ftype);
|
|
3552
4621
|
}
|
|
3553
4622
|
break;
|
|
3554
4623
|
case 2:
|
|
3555
|
-
if (ftype == Thrift.Type.
|
|
3556
|
-
this.
|
|
4624
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4625
|
+
this.resultSetMetadata = new ttypes.TGetResultSetMetadataResp();
|
|
4626
|
+
this.resultSetMetadata.read(input);
|
|
4627
|
+
} else {
|
|
4628
|
+
input.skip(ftype);
|
|
4629
|
+
}
|
|
4630
|
+
break;
|
|
4631
|
+
case 3:
|
|
4632
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4633
|
+
this.resultSet = new ttypes.TFetchResultsResp();
|
|
4634
|
+
this.resultSet.read(input);
|
|
4635
|
+
} else {
|
|
4636
|
+
input.skip(ftype);
|
|
4637
|
+
}
|
|
4638
|
+
break;
|
|
4639
|
+
case 4:
|
|
4640
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4641
|
+
this.closeOperation = new ttypes.TCloseOperationResp();
|
|
4642
|
+
this.closeOperation.read(input);
|
|
3557
4643
|
} else {
|
|
3558
4644
|
input.skip(ftype);
|
|
3559
4645
|
}
|
|
@@ -3567,16 +4653,26 @@ TGetInfoReq.prototype.read = function(input) {
|
|
|
3567
4653
|
return;
|
|
3568
4654
|
};
|
|
3569
4655
|
|
|
3570
|
-
|
|
3571
|
-
output.writeStructBegin('
|
|
3572
|
-
if (this.
|
|
3573
|
-
output.writeFieldBegin('
|
|
3574
|
-
this.
|
|
4656
|
+
TSparkDirectResults.prototype.write = function(output) {
|
|
4657
|
+
output.writeStructBegin('TSparkDirectResults');
|
|
4658
|
+
if (this.operationStatus !== null && this.operationStatus !== undefined) {
|
|
4659
|
+
output.writeFieldBegin('operationStatus', Thrift.Type.STRUCT, 1);
|
|
4660
|
+
this.operationStatus.write(output);
|
|
3575
4661
|
output.writeFieldEnd();
|
|
3576
4662
|
}
|
|
3577
|
-
if (this.
|
|
3578
|
-
output.writeFieldBegin('
|
|
3579
|
-
|
|
4663
|
+
if (this.resultSetMetadata !== null && this.resultSetMetadata !== undefined) {
|
|
4664
|
+
output.writeFieldBegin('resultSetMetadata', Thrift.Type.STRUCT, 2);
|
|
4665
|
+
this.resultSetMetadata.write(output);
|
|
4666
|
+
output.writeFieldEnd();
|
|
4667
|
+
}
|
|
4668
|
+
if (this.resultSet !== null && this.resultSet !== undefined) {
|
|
4669
|
+
output.writeFieldBegin('resultSet', Thrift.Type.STRUCT, 3);
|
|
4670
|
+
this.resultSet.write(output);
|
|
4671
|
+
output.writeFieldEnd();
|
|
4672
|
+
}
|
|
4673
|
+
if (this.closeOperation !== null && this.closeOperation !== undefined) {
|
|
4674
|
+
output.writeFieldBegin('closeOperation', Thrift.Type.STRUCT, 4);
|
|
4675
|
+
this.closeOperation.write(output);
|
|
3580
4676
|
output.writeFieldEnd();
|
|
3581
4677
|
}
|
|
3582
4678
|
output.writeFieldStop();
|
|
@@ -3584,24 +4680,28 @@ TGetInfoReq.prototype.write = function(output) {
|
|
|
3584
4680
|
return;
|
|
3585
4681
|
};
|
|
3586
4682
|
|
|
3587
|
-
var
|
|
3588
|
-
this.
|
|
3589
|
-
this.
|
|
4683
|
+
var TSparkArrowTypes = module.exports.TSparkArrowTypes = function(args) {
|
|
4684
|
+
this.timestampAsArrow = null;
|
|
4685
|
+
this.decimalAsArrow = null;
|
|
4686
|
+
this.complexTypesAsArrow = null;
|
|
4687
|
+
this.intervalTypesAsArrow = null;
|
|
3590
4688
|
if (args) {
|
|
3591
|
-
if (args.
|
|
3592
|
-
this.
|
|
3593
|
-
} else {
|
|
3594
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field status is unset!');
|
|
4689
|
+
if (args.timestampAsArrow !== undefined && args.timestampAsArrow !== null) {
|
|
4690
|
+
this.timestampAsArrow = args.timestampAsArrow;
|
|
3595
4691
|
}
|
|
3596
|
-
if (args.
|
|
3597
|
-
this.
|
|
3598
|
-
}
|
|
3599
|
-
|
|
4692
|
+
if (args.decimalAsArrow !== undefined && args.decimalAsArrow !== null) {
|
|
4693
|
+
this.decimalAsArrow = args.decimalAsArrow;
|
|
4694
|
+
}
|
|
4695
|
+
if (args.complexTypesAsArrow !== undefined && args.complexTypesAsArrow !== null) {
|
|
4696
|
+
this.complexTypesAsArrow = args.complexTypesAsArrow;
|
|
4697
|
+
}
|
|
4698
|
+
if (args.intervalTypesAsArrow !== undefined && args.intervalTypesAsArrow !== null) {
|
|
4699
|
+
this.intervalTypesAsArrow = args.intervalTypesAsArrow;
|
|
3600
4700
|
}
|
|
3601
4701
|
}
|
|
3602
4702
|
};
|
|
3603
|
-
|
|
3604
|
-
|
|
4703
|
+
TSparkArrowTypes.prototype = {};
|
|
4704
|
+
TSparkArrowTypes.prototype.read = function(input) {
|
|
3605
4705
|
input.readStructBegin();
|
|
3606
4706
|
while (true) {
|
|
3607
4707
|
var ret = input.readFieldBegin();
|
|
@@ -3612,17 +4712,29 @@ TGetInfoResp.prototype.read = function(input) {
|
|
|
3612
4712
|
}
|
|
3613
4713
|
switch (fid) {
|
|
3614
4714
|
case 1:
|
|
3615
|
-
if (ftype == Thrift.Type.
|
|
3616
|
-
this.
|
|
3617
|
-
this.status.read(input);
|
|
4715
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
4716
|
+
this.timestampAsArrow = input.readBool();
|
|
3618
4717
|
} else {
|
|
3619
4718
|
input.skip(ftype);
|
|
3620
4719
|
}
|
|
3621
4720
|
break;
|
|
3622
4721
|
case 2:
|
|
3623
|
-
if (ftype == Thrift.Type.
|
|
3624
|
-
this.
|
|
3625
|
-
|
|
4722
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
4723
|
+
this.decimalAsArrow = input.readBool();
|
|
4724
|
+
} else {
|
|
4725
|
+
input.skip(ftype);
|
|
4726
|
+
}
|
|
4727
|
+
break;
|
|
4728
|
+
case 3:
|
|
4729
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
4730
|
+
this.complexTypesAsArrow = input.readBool();
|
|
4731
|
+
} else {
|
|
4732
|
+
input.skip(ftype);
|
|
4733
|
+
}
|
|
4734
|
+
break;
|
|
4735
|
+
case 4:
|
|
4736
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
4737
|
+
this.intervalTypesAsArrow = input.readBool();
|
|
3626
4738
|
} else {
|
|
3627
4739
|
input.skip(ftype);
|
|
3628
4740
|
}
|
|
@@ -3636,16 +4748,26 @@ TGetInfoResp.prototype.read = function(input) {
|
|
|
3636
4748
|
return;
|
|
3637
4749
|
};
|
|
3638
4750
|
|
|
3639
|
-
|
|
3640
|
-
output.writeStructBegin('
|
|
3641
|
-
if (this.
|
|
3642
|
-
output.writeFieldBegin('
|
|
3643
|
-
this.
|
|
4751
|
+
TSparkArrowTypes.prototype.write = function(output) {
|
|
4752
|
+
output.writeStructBegin('TSparkArrowTypes');
|
|
4753
|
+
if (this.timestampAsArrow !== null && this.timestampAsArrow !== undefined) {
|
|
4754
|
+
output.writeFieldBegin('timestampAsArrow', Thrift.Type.BOOL, 1);
|
|
4755
|
+
output.writeBool(this.timestampAsArrow);
|
|
3644
4756
|
output.writeFieldEnd();
|
|
3645
4757
|
}
|
|
3646
|
-
if (this.
|
|
3647
|
-
output.writeFieldBegin('
|
|
3648
|
-
this.
|
|
4758
|
+
if (this.decimalAsArrow !== null && this.decimalAsArrow !== undefined) {
|
|
4759
|
+
output.writeFieldBegin('decimalAsArrow', Thrift.Type.BOOL, 2);
|
|
4760
|
+
output.writeBool(this.decimalAsArrow);
|
|
4761
|
+
output.writeFieldEnd();
|
|
4762
|
+
}
|
|
4763
|
+
if (this.complexTypesAsArrow !== null && this.complexTypesAsArrow !== undefined) {
|
|
4764
|
+
output.writeFieldBegin('complexTypesAsArrow', Thrift.Type.BOOL, 3);
|
|
4765
|
+
output.writeBool(this.complexTypesAsArrow);
|
|
4766
|
+
output.writeFieldEnd();
|
|
4767
|
+
}
|
|
4768
|
+
if (this.intervalTypesAsArrow !== null && this.intervalTypesAsArrow !== undefined) {
|
|
4769
|
+
output.writeFieldBegin('intervalTypesAsArrow', Thrift.Type.BOOL, 4);
|
|
4770
|
+
output.writeBool(this.intervalTypesAsArrow);
|
|
3649
4771
|
output.writeFieldEnd();
|
|
3650
4772
|
}
|
|
3651
4773
|
output.writeFieldStop();
|
|
@@ -3658,7 +4780,18 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
|
|
|
3658
4780
|
this.statement = null;
|
|
3659
4781
|
this.confOverlay = null;
|
|
3660
4782
|
this.runAsync = false;
|
|
4783
|
+
this.getDirectResults = null;
|
|
3661
4784
|
this.queryTimeout = new Int64(0);
|
|
4785
|
+
this.canReadArrowResult = null;
|
|
4786
|
+
this.canDownloadResult = null;
|
|
4787
|
+
this.canDecompressLZ4Result = null;
|
|
4788
|
+
this.maxBytesPerFile = null;
|
|
4789
|
+
this.useArrowNativeTypes = null;
|
|
4790
|
+
this.operationId = null;
|
|
4791
|
+
this.sessionConf = null;
|
|
4792
|
+
this.rejectHighCostQueries = null;
|
|
4793
|
+
this.estimatedCost = null;
|
|
4794
|
+
this.executionVersion = null;
|
|
3662
4795
|
if (args) {
|
|
3663
4796
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
3664
4797
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -3676,9 +4809,42 @@ var TExecuteStatementReq = module.exports.TExecuteStatementReq = function(args)
|
|
|
3676
4809
|
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
3677
4810
|
this.runAsync = args.runAsync;
|
|
3678
4811
|
}
|
|
4812
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
4813
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
4814
|
+
}
|
|
3679
4815
|
if (args.queryTimeout !== undefined && args.queryTimeout !== null) {
|
|
3680
4816
|
this.queryTimeout = args.queryTimeout;
|
|
3681
4817
|
}
|
|
4818
|
+
if (args.canReadArrowResult !== undefined && args.canReadArrowResult !== null) {
|
|
4819
|
+
this.canReadArrowResult = args.canReadArrowResult;
|
|
4820
|
+
}
|
|
4821
|
+
if (args.canDownloadResult !== undefined && args.canDownloadResult !== null) {
|
|
4822
|
+
this.canDownloadResult = args.canDownloadResult;
|
|
4823
|
+
}
|
|
4824
|
+
if (args.canDecompressLZ4Result !== undefined && args.canDecompressLZ4Result !== null) {
|
|
4825
|
+
this.canDecompressLZ4Result = args.canDecompressLZ4Result;
|
|
4826
|
+
}
|
|
4827
|
+
if (args.maxBytesPerFile !== undefined && args.maxBytesPerFile !== null) {
|
|
4828
|
+
this.maxBytesPerFile = args.maxBytesPerFile;
|
|
4829
|
+
}
|
|
4830
|
+
if (args.useArrowNativeTypes !== undefined && args.useArrowNativeTypes !== null) {
|
|
4831
|
+
this.useArrowNativeTypes = new ttypes.TSparkArrowTypes(args.useArrowNativeTypes);
|
|
4832
|
+
}
|
|
4833
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
4834
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
4835
|
+
}
|
|
4836
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
4837
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
4838
|
+
}
|
|
4839
|
+
if (args.rejectHighCostQueries !== undefined && args.rejectHighCostQueries !== null) {
|
|
4840
|
+
this.rejectHighCostQueries = args.rejectHighCostQueries;
|
|
4841
|
+
}
|
|
4842
|
+
if (args.estimatedCost !== undefined && args.estimatedCost !== null) {
|
|
4843
|
+
this.estimatedCost = args.estimatedCost;
|
|
4844
|
+
}
|
|
4845
|
+
if (args.executionVersion !== undefined && args.executionVersion !== null) {
|
|
4846
|
+
this.executionVersion = args.executionVersion;
|
|
4847
|
+
}
|
|
3682
4848
|
}
|
|
3683
4849
|
};
|
|
3684
4850
|
TExecuteStatementReq.prototype = {};
|
|
@@ -3710,14 +4876,14 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
3710
4876
|
case 3:
|
|
3711
4877
|
if (ftype == Thrift.Type.MAP) {
|
|
3712
4878
|
this.confOverlay = {};
|
|
3713
|
-
var
|
|
3714
|
-
var
|
|
3715
|
-
for (var
|
|
3716
|
-
var
|
|
3717
|
-
var
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
this.confOverlay[
|
|
4879
|
+
var _rtmp3152 = input.readMapBegin();
|
|
4880
|
+
var _size151 = _rtmp3152.size || 0;
|
|
4881
|
+
for (var _i153 = 0; _i153 < _size151; ++_i153) {
|
|
4882
|
+
var key154 = null;
|
|
4883
|
+
var val155 = null;
|
|
4884
|
+
key154 = input.readString();
|
|
4885
|
+
val155 = input.readString();
|
|
4886
|
+
this.confOverlay[key154] = val155;
|
|
3721
4887
|
}
|
|
3722
4888
|
input.readMapEnd();
|
|
3723
4889
|
} else {
|
|
@@ -3731,6 +4897,14 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
3731
4897
|
input.skip(ftype);
|
|
3732
4898
|
}
|
|
3733
4899
|
break;
|
|
4900
|
+
case 1281:
|
|
4901
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4902
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
4903
|
+
this.getDirectResults.read(input);
|
|
4904
|
+
} else {
|
|
4905
|
+
input.skip(ftype);
|
|
4906
|
+
}
|
|
4907
|
+
break;
|
|
3734
4908
|
case 5:
|
|
3735
4909
|
if (ftype == Thrift.Type.I64) {
|
|
3736
4910
|
this.queryTimeout = input.readI64();
|
|
@@ -3738,6 +4912,79 @@ TExecuteStatementReq.prototype.read = function(input) {
|
|
|
3738
4912
|
input.skip(ftype);
|
|
3739
4913
|
}
|
|
3740
4914
|
break;
|
|
4915
|
+
case 1282:
|
|
4916
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
4917
|
+
this.canReadArrowResult = input.readBool();
|
|
4918
|
+
} else {
|
|
4919
|
+
input.skip(ftype);
|
|
4920
|
+
}
|
|
4921
|
+
break;
|
|
4922
|
+
case 1283:
|
|
4923
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
4924
|
+
this.canDownloadResult = input.readBool();
|
|
4925
|
+
} else {
|
|
4926
|
+
input.skip(ftype);
|
|
4927
|
+
}
|
|
4928
|
+
break;
|
|
4929
|
+
case 1284:
|
|
4930
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
4931
|
+
this.canDecompressLZ4Result = input.readBool();
|
|
4932
|
+
} else {
|
|
4933
|
+
input.skip(ftype);
|
|
4934
|
+
}
|
|
4935
|
+
break;
|
|
4936
|
+
case 1285:
|
|
4937
|
+
if (ftype == Thrift.Type.I64) {
|
|
4938
|
+
this.maxBytesPerFile = input.readI64();
|
|
4939
|
+
} else {
|
|
4940
|
+
input.skip(ftype);
|
|
4941
|
+
}
|
|
4942
|
+
break;
|
|
4943
|
+
case 1286:
|
|
4944
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4945
|
+
this.useArrowNativeTypes = new ttypes.TSparkArrowTypes();
|
|
4946
|
+
this.useArrowNativeTypes.read(input);
|
|
4947
|
+
} else {
|
|
4948
|
+
input.skip(ftype);
|
|
4949
|
+
}
|
|
4950
|
+
break;
|
|
4951
|
+
case 3329:
|
|
4952
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4953
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
4954
|
+
this.operationId.read(input);
|
|
4955
|
+
} else {
|
|
4956
|
+
input.skip(ftype);
|
|
4957
|
+
}
|
|
4958
|
+
break;
|
|
4959
|
+
case 3330:
|
|
4960
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
4961
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
4962
|
+
this.sessionConf.read(input);
|
|
4963
|
+
} else {
|
|
4964
|
+
input.skip(ftype);
|
|
4965
|
+
}
|
|
4966
|
+
break;
|
|
4967
|
+
case 3331:
|
|
4968
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
4969
|
+
this.rejectHighCostQueries = input.readBool();
|
|
4970
|
+
} else {
|
|
4971
|
+
input.skip(ftype);
|
|
4972
|
+
}
|
|
4973
|
+
break;
|
|
4974
|
+
case 3332:
|
|
4975
|
+
if (ftype == Thrift.Type.DOUBLE) {
|
|
4976
|
+
this.estimatedCost = input.readDouble();
|
|
4977
|
+
} else {
|
|
4978
|
+
input.skip(ftype);
|
|
4979
|
+
}
|
|
4980
|
+
break;
|
|
4981
|
+
case 3333:
|
|
4982
|
+
if (ftype == Thrift.Type.I16) {
|
|
4983
|
+
this.executionVersion = input.readI16();
|
|
4984
|
+
} else {
|
|
4985
|
+
input.skip(ftype);
|
|
4986
|
+
}
|
|
4987
|
+
break;
|
|
3741
4988
|
default:
|
|
3742
4989
|
input.skip(ftype);
|
|
3743
4990
|
}
|
|
@@ -3762,11 +5009,11 @@ TExecuteStatementReq.prototype.write = function(output) {
|
|
|
3762
5009
|
if (this.confOverlay !== null && this.confOverlay !== undefined) {
|
|
3763
5010
|
output.writeFieldBegin('confOverlay', Thrift.Type.MAP, 3);
|
|
3764
5011
|
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.confOverlay));
|
|
3765
|
-
for (var
|
|
3766
|
-
if (this.confOverlay.hasOwnProperty(
|
|
3767
|
-
var
|
|
3768
|
-
output.writeString(
|
|
3769
|
-
output.writeString(
|
|
5012
|
+
for (var kiter156 in this.confOverlay) {
|
|
5013
|
+
if (this.confOverlay.hasOwnProperty(kiter156)) {
|
|
5014
|
+
var viter157 = this.confOverlay[kiter156];
|
|
5015
|
+
output.writeString(kiter156);
|
|
5016
|
+
output.writeString(viter157);
|
|
3770
5017
|
}
|
|
3771
5018
|
}
|
|
3772
5019
|
output.writeMapEnd();
|
|
@@ -3777,11 +5024,66 @@ TExecuteStatementReq.prototype.write = function(output) {
|
|
|
3777
5024
|
output.writeBool(this.runAsync);
|
|
3778
5025
|
output.writeFieldEnd();
|
|
3779
5026
|
}
|
|
5027
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
5028
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
5029
|
+
this.getDirectResults.write(output);
|
|
5030
|
+
output.writeFieldEnd();
|
|
5031
|
+
}
|
|
3780
5032
|
if (this.queryTimeout !== null && this.queryTimeout !== undefined) {
|
|
3781
5033
|
output.writeFieldBegin('queryTimeout', Thrift.Type.I64, 5);
|
|
3782
5034
|
output.writeI64(this.queryTimeout);
|
|
3783
5035
|
output.writeFieldEnd();
|
|
3784
5036
|
}
|
|
5037
|
+
if (this.canReadArrowResult !== null && this.canReadArrowResult !== undefined) {
|
|
5038
|
+
output.writeFieldBegin('canReadArrowResult', Thrift.Type.BOOL, 1282);
|
|
5039
|
+
output.writeBool(this.canReadArrowResult);
|
|
5040
|
+
output.writeFieldEnd();
|
|
5041
|
+
}
|
|
5042
|
+
if (this.canDownloadResult !== null && this.canDownloadResult !== undefined) {
|
|
5043
|
+
output.writeFieldBegin('canDownloadResult', Thrift.Type.BOOL, 1283);
|
|
5044
|
+
output.writeBool(this.canDownloadResult);
|
|
5045
|
+
output.writeFieldEnd();
|
|
5046
|
+
}
|
|
5047
|
+
if (this.canDecompressLZ4Result !== null && this.canDecompressLZ4Result !== undefined) {
|
|
5048
|
+
output.writeFieldBegin('canDecompressLZ4Result', Thrift.Type.BOOL, 1284);
|
|
5049
|
+
output.writeBool(this.canDecompressLZ4Result);
|
|
5050
|
+
output.writeFieldEnd();
|
|
5051
|
+
}
|
|
5052
|
+
if (this.maxBytesPerFile !== null && this.maxBytesPerFile !== undefined) {
|
|
5053
|
+
output.writeFieldBegin('maxBytesPerFile', Thrift.Type.I64, 1285);
|
|
5054
|
+
output.writeI64(this.maxBytesPerFile);
|
|
5055
|
+
output.writeFieldEnd();
|
|
5056
|
+
}
|
|
5057
|
+
if (this.useArrowNativeTypes !== null && this.useArrowNativeTypes !== undefined) {
|
|
5058
|
+
output.writeFieldBegin('useArrowNativeTypes', Thrift.Type.STRUCT, 1286);
|
|
5059
|
+
this.useArrowNativeTypes.write(output);
|
|
5060
|
+
output.writeFieldEnd();
|
|
5061
|
+
}
|
|
5062
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
5063
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
5064
|
+
this.operationId.write(output);
|
|
5065
|
+
output.writeFieldEnd();
|
|
5066
|
+
}
|
|
5067
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
5068
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
5069
|
+
this.sessionConf.write(output);
|
|
5070
|
+
output.writeFieldEnd();
|
|
5071
|
+
}
|
|
5072
|
+
if (this.rejectHighCostQueries !== null && this.rejectHighCostQueries !== undefined) {
|
|
5073
|
+
output.writeFieldBegin('rejectHighCostQueries', Thrift.Type.BOOL, 3331);
|
|
5074
|
+
output.writeBool(this.rejectHighCostQueries);
|
|
5075
|
+
output.writeFieldEnd();
|
|
5076
|
+
}
|
|
5077
|
+
if (this.estimatedCost !== null && this.estimatedCost !== undefined) {
|
|
5078
|
+
output.writeFieldBegin('estimatedCost', Thrift.Type.DOUBLE, 3332);
|
|
5079
|
+
output.writeDouble(this.estimatedCost);
|
|
5080
|
+
output.writeFieldEnd();
|
|
5081
|
+
}
|
|
5082
|
+
if (this.executionVersion !== null && this.executionVersion !== undefined) {
|
|
5083
|
+
output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3333);
|
|
5084
|
+
output.writeI16(this.executionVersion);
|
|
5085
|
+
output.writeFieldEnd();
|
|
5086
|
+
}
|
|
3785
5087
|
output.writeFieldStop();
|
|
3786
5088
|
output.writeStructEnd();
|
|
3787
5089
|
return;
|
|
@@ -3790,14 +5092,42 @@ TExecuteStatementReq.prototype.write = function(output) {
|
|
|
3790
5092
|
var TExecuteStatementResp = module.exports.TExecuteStatementResp = function(args) {
|
|
3791
5093
|
this.status = null;
|
|
3792
5094
|
this.operationHandle = null;
|
|
5095
|
+
this.directResults = null;
|
|
5096
|
+
this.executionRejected = null;
|
|
5097
|
+
this.maxClusterCapacity = null;
|
|
5098
|
+
this.queryCost = null;
|
|
5099
|
+
this.sessionConf = null;
|
|
5100
|
+
this.currentClusterLoad = null;
|
|
5101
|
+
this.idempotencyType = null;
|
|
3793
5102
|
if (args) {
|
|
3794
5103
|
if (args.status !== undefined && args.status !== null) {
|
|
3795
5104
|
this.status = new ttypes.TStatus(args.status);
|
|
3796
5105
|
} else {
|
|
3797
5106
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field status is unset!');
|
|
3798
5107
|
}
|
|
3799
|
-
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
3800
|
-
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
5108
|
+
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
5109
|
+
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
5110
|
+
}
|
|
5111
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
5112
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
5113
|
+
}
|
|
5114
|
+
if (args.executionRejected !== undefined && args.executionRejected !== null) {
|
|
5115
|
+
this.executionRejected = args.executionRejected;
|
|
5116
|
+
}
|
|
5117
|
+
if (args.maxClusterCapacity !== undefined && args.maxClusterCapacity !== null) {
|
|
5118
|
+
this.maxClusterCapacity = args.maxClusterCapacity;
|
|
5119
|
+
}
|
|
5120
|
+
if (args.queryCost !== undefined && args.queryCost !== null) {
|
|
5121
|
+
this.queryCost = args.queryCost;
|
|
5122
|
+
}
|
|
5123
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
5124
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
5125
|
+
}
|
|
5126
|
+
if (args.currentClusterLoad !== undefined && args.currentClusterLoad !== null) {
|
|
5127
|
+
this.currentClusterLoad = args.currentClusterLoad;
|
|
5128
|
+
}
|
|
5129
|
+
if (args.idempotencyType !== undefined && args.idempotencyType !== null) {
|
|
5130
|
+
this.idempotencyType = args.idempotencyType;
|
|
3801
5131
|
}
|
|
3802
5132
|
}
|
|
3803
5133
|
};
|
|
@@ -3828,6 +5158,57 @@ TExecuteStatementResp.prototype.read = function(input) {
|
|
|
3828
5158
|
input.skip(ftype);
|
|
3829
5159
|
}
|
|
3830
5160
|
break;
|
|
5161
|
+
case 1281:
|
|
5162
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5163
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
5164
|
+
this.directResults.read(input);
|
|
5165
|
+
} else {
|
|
5166
|
+
input.skip(ftype);
|
|
5167
|
+
}
|
|
5168
|
+
break;
|
|
5169
|
+
case 3329:
|
|
5170
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
5171
|
+
this.executionRejected = input.readBool();
|
|
5172
|
+
} else {
|
|
5173
|
+
input.skip(ftype);
|
|
5174
|
+
}
|
|
5175
|
+
break;
|
|
5176
|
+
case 3330:
|
|
5177
|
+
if (ftype == Thrift.Type.DOUBLE) {
|
|
5178
|
+
this.maxClusterCapacity = input.readDouble();
|
|
5179
|
+
} else {
|
|
5180
|
+
input.skip(ftype);
|
|
5181
|
+
}
|
|
5182
|
+
break;
|
|
5183
|
+
case 3331:
|
|
5184
|
+
if (ftype == Thrift.Type.DOUBLE) {
|
|
5185
|
+
this.queryCost = input.readDouble();
|
|
5186
|
+
} else {
|
|
5187
|
+
input.skip(ftype);
|
|
5188
|
+
}
|
|
5189
|
+
break;
|
|
5190
|
+
case 3332:
|
|
5191
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5192
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
5193
|
+
this.sessionConf.read(input);
|
|
5194
|
+
} else {
|
|
5195
|
+
input.skip(ftype);
|
|
5196
|
+
}
|
|
5197
|
+
break;
|
|
5198
|
+
case 3333:
|
|
5199
|
+
if (ftype == Thrift.Type.DOUBLE) {
|
|
5200
|
+
this.currentClusterLoad = input.readDouble();
|
|
5201
|
+
} else {
|
|
5202
|
+
input.skip(ftype);
|
|
5203
|
+
}
|
|
5204
|
+
break;
|
|
5205
|
+
case 3334:
|
|
5206
|
+
if (ftype == Thrift.Type.I32) {
|
|
5207
|
+
this.idempotencyType = input.readI32();
|
|
5208
|
+
} else {
|
|
5209
|
+
input.skip(ftype);
|
|
5210
|
+
}
|
|
5211
|
+
break;
|
|
3831
5212
|
default:
|
|
3832
5213
|
input.skip(ftype);
|
|
3833
5214
|
}
|
|
@@ -3849,6 +5230,41 @@ TExecuteStatementResp.prototype.write = function(output) {
|
|
|
3849
5230
|
this.operationHandle.write(output);
|
|
3850
5231
|
output.writeFieldEnd();
|
|
3851
5232
|
}
|
|
5233
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
5234
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
5235
|
+
this.directResults.write(output);
|
|
5236
|
+
output.writeFieldEnd();
|
|
5237
|
+
}
|
|
5238
|
+
if (this.executionRejected !== null && this.executionRejected !== undefined) {
|
|
5239
|
+
output.writeFieldBegin('executionRejected', Thrift.Type.BOOL, 3329);
|
|
5240
|
+
output.writeBool(this.executionRejected);
|
|
5241
|
+
output.writeFieldEnd();
|
|
5242
|
+
}
|
|
5243
|
+
if (this.maxClusterCapacity !== null && this.maxClusterCapacity !== undefined) {
|
|
5244
|
+
output.writeFieldBegin('maxClusterCapacity', Thrift.Type.DOUBLE, 3330);
|
|
5245
|
+
output.writeDouble(this.maxClusterCapacity);
|
|
5246
|
+
output.writeFieldEnd();
|
|
5247
|
+
}
|
|
5248
|
+
if (this.queryCost !== null && this.queryCost !== undefined) {
|
|
5249
|
+
output.writeFieldBegin('queryCost', Thrift.Type.DOUBLE, 3331);
|
|
5250
|
+
output.writeDouble(this.queryCost);
|
|
5251
|
+
output.writeFieldEnd();
|
|
5252
|
+
}
|
|
5253
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
5254
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3332);
|
|
5255
|
+
this.sessionConf.write(output);
|
|
5256
|
+
output.writeFieldEnd();
|
|
5257
|
+
}
|
|
5258
|
+
if (this.currentClusterLoad !== null && this.currentClusterLoad !== undefined) {
|
|
5259
|
+
output.writeFieldBegin('currentClusterLoad', Thrift.Type.DOUBLE, 3333);
|
|
5260
|
+
output.writeDouble(this.currentClusterLoad);
|
|
5261
|
+
output.writeFieldEnd();
|
|
5262
|
+
}
|
|
5263
|
+
if (this.idempotencyType !== null && this.idempotencyType !== undefined) {
|
|
5264
|
+
output.writeFieldBegin('idempotencyType', Thrift.Type.I32, 3334);
|
|
5265
|
+
output.writeI32(this.idempotencyType);
|
|
5266
|
+
output.writeFieldEnd();
|
|
5267
|
+
}
|
|
3852
5268
|
output.writeFieldStop();
|
|
3853
5269
|
output.writeStructEnd();
|
|
3854
5270
|
return;
|
|
@@ -3856,12 +5272,28 @@ TExecuteStatementResp.prototype.write = function(output) {
|
|
|
3856
5272
|
|
|
3857
5273
|
var TGetTypeInfoReq = module.exports.TGetTypeInfoReq = function(args) {
|
|
3858
5274
|
this.sessionHandle = null;
|
|
5275
|
+
this.getDirectResults = null;
|
|
5276
|
+
this.runAsync = false;
|
|
5277
|
+
this.operationId = null;
|
|
5278
|
+
this.sessionConf = null;
|
|
3859
5279
|
if (args) {
|
|
3860
5280
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
3861
5281
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
3862
5282
|
} else {
|
|
3863
5283
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field sessionHandle is unset!');
|
|
3864
5284
|
}
|
|
5285
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
5286
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
5287
|
+
}
|
|
5288
|
+
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
5289
|
+
this.runAsync = args.runAsync;
|
|
5290
|
+
}
|
|
5291
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
5292
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
5293
|
+
}
|
|
5294
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
5295
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
5296
|
+
}
|
|
3865
5297
|
}
|
|
3866
5298
|
};
|
|
3867
5299
|
TGetTypeInfoReq.prototype = {};
|
|
@@ -3883,9 +5315,37 @@ TGetTypeInfoReq.prototype.read = function(input) {
|
|
|
3883
5315
|
input.skip(ftype);
|
|
3884
5316
|
}
|
|
3885
5317
|
break;
|
|
3886
|
-
case
|
|
5318
|
+
case 1281:
|
|
5319
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5320
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
5321
|
+
this.getDirectResults.read(input);
|
|
5322
|
+
} else {
|
|
3887
5323
|
input.skip(ftype);
|
|
3888
|
-
|
|
5324
|
+
}
|
|
5325
|
+
break;
|
|
5326
|
+
case 1282:
|
|
5327
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
5328
|
+
this.runAsync = input.readBool();
|
|
5329
|
+
} else {
|
|
5330
|
+
input.skip(ftype);
|
|
5331
|
+
}
|
|
5332
|
+
break;
|
|
5333
|
+
case 3329:
|
|
5334
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5335
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
5336
|
+
this.operationId.read(input);
|
|
5337
|
+
} else {
|
|
5338
|
+
input.skip(ftype);
|
|
5339
|
+
}
|
|
5340
|
+
break;
|
|
5341
|
+
case 3330:
|
|
5342
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5343
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
5344
|
+
this.sessionConf.read(input);
|
|
5345
|
+
} else {
|
|
5346
|
+
input.skip(ftype);
|
|
5347
|
+
}
|
|
5348
|
+
break;
|
|
3889
5349
|
default:
|
|
3890
5350
|
input.skip(ftype);
|
|
3891
5351
|
}
|
|
@@ -3902,6 +5362,26 @@ TGetTypeInfoReq.prototype.write = function(output) {
|
|
|
3902
5362
|
this.sessionHandle.write(output);
|
|
3903
5363
|
output.writeFieldEnd();
|
|
3904
5364
|
}
|
|
5365
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
5366
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
5367
|
+
this.getDirectResults.write(output);
|
|
5368
|
+
output.writeFieldEnd();
|
|
5369
|
+
}
|
|
5370
|
+
if (this.runAsync !== null && this.runAsync !== undefined) {
|
|
5371
|
+
output.writeFieldBegin('runAsync', Thrift.Type.BOOL, 1282);
|
|
5372
|
+
output.writeBool(this.runAsync);
|
|
5373
|
+
output.writeFieldEnd();
|
|
5374
|
+
}
|
|
5375
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
5376
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
5377
|
+
this.operationId.write(output);
|
|
5378
|
+
output.writeFieldEnd();
|
|
5379
|
+
}
|
|
5380
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
5381
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
5382
|
+
this.sessionConf.write(output);
|
|
5383
|
+
output.writeFieldEnd();
|
|
5384
|
+
}
|
|
3905
5385
|
output.writeFieldStop();
|
|
3906
5386
|
output.writeStructEnd();
|
|
3907
5387
|
return;
|
|
@@ -3910,6 +5390,7 @@ TGetTypeInfoReq.prototype.write = function(output) {
|
|
|
3910
5390
|
var TGetTypeInfoResp = module.exports.TGetTypeInfoResp = function(args) {
|
|
3911
5391
|
this.status = null;
|
|
3912
5392
|
this.operationHandle = null;
|
|
5393
|
+
this.directResults = null;
|
|
3913
5394
|
if (args) {
|
|
3914
5395
|
if (args.status !== undefined && args.status !== null) {
|
|
3915
5396
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -3919,6 +5400,9 @@ var TGetTypeInfoResp = module.exports.TGetTypeInfoResp = function(args) {
|
|
|
3919
5400
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
3920
5401
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
3921
5402
|
}
|
|
5403
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
5404
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
5405
|
+
}
|
|
3922
5406
|
}
|
|
3923
5407
|
};
|
|
3924
5408
|
TGetTypeInfoResp.prototype = {};
|
|
@@ -3948,6 +5432,14 @@ TGetTypeInfoResp.prototype.read = function(input) {
|
|
|
3948
5432
|
input.skip(ftype);
|
|
3949
5433
|
}
|
|
3950
5434
|
break;
|
|
5435
|
+
case 1281:
|
|
5436
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5437
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
5438
|
+
this.directResults.read(input);
|
|
5439
|
+
} else {
|
|
5440
|
+
input.skip(ftype);
|
|
5441
|
+
}
|
|
5442
|
+
break;
|
|
3951
5443
|
default:
|
|
3952
5444
|
input.skip(ftype);
|
|
3953
5445
|
}
|
|
@@ -3969,6 +5461,11 @@ TGetTypeInfoResp.prototype.write = function(output) {
|
|
|
3969
5461
|
this.operationHandle.write(output);
|
|
3970
5462
|
output.writeFieldEnd();
|
|
3971
5463
|
}
|
|
5464
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
5465
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
5466
|
+
this.directResults.write(output);
|
|
5467
|
+
output.writeFieldEnd();
|
|
5468
|
+
}
|
|
3972
5469
|
output.writeFieldStop();
|
|
3973
5470
|
output.writeStructEnd();
|
|
3974
5471
|
return;
|
|
@@ -3976,12 +5473,28 @@ TGetTypeInfoResp.prototype.write = function(output) {
|
|
|
3976
5473
|
|
|
3977
5474
|
var TGetCatalogsReq = module.exports.TGetCatalogsReq = function(args) {
|
|
3978
5475
|
this.sessionHandle = null;
|
|
5476
|
+
this.getDirectResults = null;
|
|
5477
|
+
this.runAsync = false;
|
|
5478
|
+
this.operationId = null;
|
|
5479
|
+
this.sessionConf = null;
|
|
3979
5480
|
if (args) {
|
|
3980
5481
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
3981
5482
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
3982
5483
|
} else {
|
|
3983
5484
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field sessionHandle is unset!');
|
|
3984
5485
|
}
|
|
5486
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
5487
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
5488
|
+
}
|
|
5489
|
+
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
5490
|
+
this.runAsync = args.runAsync;
|
|
5491
|
+
}
|
|
5492
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
5493
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
5494
|
+
}
|
|
5495
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
5496
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
5497
|
+
}
|
|
3985
5498
|
}
|
|
3986
5499
|
};
|
|
3987
5500
|
TGetCatalogsReq.prototype = {};
|
|
@@ -4003,9 +5516,37 @@ TGetCatalogsReq.prototype.read = function(input) {
|
|
|
4003
5516
|
input.skip(ftype);
|
|
4004
5517
|
}
|
|
4005
5518
|
break;
|
|
4006
|
-
case
|
|
5519
|
+
case 1281:
|
|
5520
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5521
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
5522
|
+
this.getDirectResults.read(input);
|
|
5523
|
+
} else {
|
|
4007
5524
|
input.skip(ftype);
|
|
4008
|
-
|
|
5525
|
+
}
|
|
5526
|
+
break;
|
|
5527
|
+
case 1282:
|
|
5528
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
5529
|
+
this.runAsync = input.readBool();
|
|
5530
|
+
} else {
|
|
5531
|
+
input.skip(ftype);
|
|
5532
|
+
}
|
|
5533
|
+
break;
|
|
5534
|
+
case 3329:
|
|
5535
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5536
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
5537
|
+
this.operationId.read(input);
|
|
5538
|
+
} else {
|
|
5539
|
+
input.skip(ftype);
|
|
5540
|
+
}
|
|
5541
|
+
break;
|
|
5542
|
+
case 3330:
|
|
5543
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5544
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
5545
|
+
this.sessionConf.read(input);
|
|
5546
|
+
} else {
|
|
5547
|
+
input.skip(ftype);
|
|
5548
|
+
}
|
|
5549
|
+
break;
|
|
4009
5550
|
default:
|
|
4010
5551
|
input.skip(ftype);
|
|
4011
5552
|
}
|
|
@@ -4022,6 +5563,26 @@ TGetCatalogsReq.prototype.write = function(output) {
|
|
|
4022
5563
|
this.sessionHandle.write(output);
|
|
4023
5564
|
output.writeFieldEnd();
|
|
4024
5565
|
}
|
|
5566
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
5567
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
5568
|
+
this.getDirectResults.write(output);
|
|
5569
|
+
output.writeFieldEnd();
|
|
5570
|
+
}
|
|
5571
|
+
if (this.runAsync !== null && this.runAsync !== undefined) {
|
|
5572
|
+
output.writeFieldBegin('runAsync', Thrift.Type.BOOL, 1282);
|
|
5573
|
+
output.writeBool(this.runAsync);
|
|
5574
|
+
output.writeFieldEnd();
|
|
5575
|
+
}
|
|
5576
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
5577
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
5578
|
+
this.operationId.write(output);
|
|
5579
|
+
output.writeFieldEnd();
|
|
5580
|
+
}
|
|
5581
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
5582
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
5583
|
+
this.sessionConf.write(output);
|
|
5584
|
+
output.writeFieldEnd();
|
|
5585
|
+
}
|
|
4025
5586
|
output.writeFieldStop();
|
|
4026
5587
|
output.writeStructEnd();
|
|
4027
5588
|
return;
|
|
@@ -4030,6 +5591,7 @@ TGetCatalogsReq.prototype.write = function(output) {
|
|
|
4030
5591
|
var TGetCatalogsResp = module.exports.TGetCatalogsResp = function(args) {
|
|
4031
5592
|
this.status = null;
|
|
4032
5593
|
this.operationHandle = null;
|
|
5594
|
+
this.directResults = null;
|
|
4033
5595
|
if (args) {
|
|
4034
5596
|
if (args.status !== undefined && args.status !== null) {
|
|
4035
5597
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -4039,6 +5601,9 @@ var TGetCatalogsResp = module.exports.TGetCatalogsResp = function(args) {
|
|
|
4039
5601
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
4040
5602
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
4041
5603
|
}
|
|
5604
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
5605
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
5606
|
+
}
|
|
4042
5607
|
}
|
|
4043
5608
|
};
|
|
4044
5609
|
TGetCatalogsResp.prototype = {};
|
|
@@ -4068,6 +5633,14 @@ TGetCatalogsResp.prototype.read = function(input) {
|
|
|
4068
5633
|
input.skip(ftype);
|
|
4069
5634
|
}
|
|
4070
5635
|
break;
|
|
5636
|
+
case 1281:
|
|
5637
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5638
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
5639
|
+
this.directResults.read(input);
|
|
5640
|
+
} else {
|
|
5641
|
+
input.skip(ftype);
|
|
5642
|
+
}
|
|
5643
|
+
break;
|
|
4071
5644
|
default:
|
|
4072
5645
|
input.skip(ftype);
|
|
4073
5646
|
}
|
|
@@ -4089,6 +5662,11 @@ TGetCatalogsResp.prototype.write = function(output) {
|
|
|
4089
5662
|
this.operationHandle.write(output);
|
|
4090
5663
|
output.writeFieldEnd();
|
|
4091
5664
|
}
|
|
5665
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
5666
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
5667
|
+
this.directResults.write(output);
|
|
5668
|
+
output.writeFieldEnd();
|
|
5669
|
+
}
|
|
4092
5670
|
output.writeFieldStop();
|
|
4093
5671
|
output.writeStructEnd();
|
|
4094
5672
|
return;
|
|
@@ -4098,6 +5676,10 @@ var TGetSchemasReq = module.exports.TGetSchemasReq = function(args) {
|
|
|
4098
5676
|
this.sessionHandle = null;
|
|
4099
5677
|
this.catalogName = null;
|
|
4100
5678
|
this.schemaName = null;
|
|
5679
|
+
this.getDirectResults = null;
|
|
5680
|
+
this.runAsync = false;
|
|
5681
|
+
this.operationId = null;
|
|
5682
|
+
this.sessionConf = null;
|
|
4101
5683
|
if (args) {
|
|
4102
5684
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
4103
5685
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -4110,6 +5692,18 @@ var TGetSchemasReq = module.exports.TGetSchemasReq = function(args) {
|
|
|
4110
5692
|
if (args.schemaName !== undefined && args.schemaName !== null) {
|
|
4111
5693
|
this.schemaName = args.schemaName;
|
|
4112
5694
|
}
|
|
5695
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
5696
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
5697
|
+
}
|
|
5698
|
+
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
5699
|
+
this.runAsync = args.runAsync;
|
|
5700
|
+
}
|
|
5701
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
5702
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
5703
|
+
}
|
|
5704
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
5705
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
5706
|
+
}
|
|
4113
5707
|
}
|
|
4114
5708
|
};
|
|
4115
5709
|
TGetSchemasReq.prototype = {};
|
|
@@ -4145,6 +5739,37 @@ TGetSchemasReq.prototype.read = function(input) {
|
|
|
4145
5739
|
input.skip(ftype);
|
|
4146
5740
|
}
|
|
4147
5741
|
break;
|
|
5742
|
+
case 1281:
|
|
5743
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5744
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
5745
|
+
this.getDirectResults.read(input);
|
|
5746
|
+
} else {
|
|
5747
|
+
input.skip(ftype);
|
|
5748
|
+
}
|
|
5749
|
+
break;
|
|
5750
|
+
case 1282:
|
|
5751
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
5752
|
+
this.runAsync = input.readBool();
|
|
5753
|
+
} else {
|
|
5754
|
+
input.skip(ftype);
|
|
5755
|
+
}
|
|
5756
|
+
break;
|
|
5757
|
+
case 3329:
|
|
5758
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5759
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
5760
|
+
this.operationId.read(input);
|
|
5761
|
+
} else {
|
|
5762
|
+
input.skip(ftype);
|
|
5763
|
+
}
|
|
5764
|
+
break;
|
|
5765
|
+
case 3330:
|
|
5766
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5767
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
5768
|
+
this.sessionConf.read(input);
|
|
5769
|
+
} else {
|
|
5770
|
+
input.skip(ftype);
|
|
5771
|
+
}
|
|
5772
|
+
break;
|
|
4148
5773
|
default:
|
|
4149
5774
|
input.skip(ftype);
|
|
4150
5775
|
}
|
|
@@ -4171,6 +5796,26 @@ TGetSchemasReq.prototype.write = function(output) {
|
|
|
4171
5796
|
output.writeString(this.schemaName);
|
|
4172
5797
|
output.writeFieldEnd();
|
|
4173
5798
|
}
|
|
5799
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
5800
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
5801
|
+
this.getDirectResults.write(output);
|
|
5802
|
+
output.writeFieldEnd();
|
|
5803
|
+
}
|
|
5804
|
+
if (this.runAsync !== null && this.runAsync !== undefined) {
|
|
5805
|
+
output.writeFieldBegin('runAsync', Thrift.Type.BOOL, 1282);
|
|
5806
|
+
output.writeBool(this.runAsync);
|
|
5807
|
+
output.writeFieldEnd();
|
|
5808
|
+
}
|
|
5809
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
5810
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
5811
|
+
this.operationId.write(output);
|
|
5812
|
+
output.writeFieldEnd();
|
|
5813
|
+
}
|
|
5814
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
5815
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
5816
|
+
this.sessionConf.write(output);
|
|
5817
|
+
output.writeFieldEnd();
|
|
5818
|
+
}
|
|
4174
5819
|
output.writeFieldStop();
|
|
4175
5820
|
output.writeStructEnd();
|
|
4176
5821
|
return;
|
|
@@ -4179,6 +5824,7 @@ TGetSchemasReq.prototype.write = function(output) {
|
|
|
4179
5824
|
var TGetSchemasResp = module.exports.TGetSchemasResp = function(args) {
|
|
4180
5825
|
this.status = null;
|
|
4181
5826
|
this.operationHandle = null;
|
|
5827
|
+
this.directResults = null;
|
|
4182
5828
|
if (args) {
|
|
4183
5829
|
if (args.status !== undefined && args.status !== null) {
|
|
4184
5830
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -4188,6 +5834,9 @@ var TGetSchemasResp = module.exports.TGetSchemasResp = function(args) {
|
|
|
4188
5834
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
4189
5835
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
4190
5836
|
}
|
|
5837
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
5838
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
5839
|
+
}
|
|
4191
5840
|
}
|
|
4192
5841
|
};
|
|
4193
5842
|
TGetSchemasResp.prototype = {};
|
|
@@ -4217,6 +5866,14 @@ TGetSchemasResp.prototype.read = function(input) {
|
|
|
4217
5866
|
input.skip(ftype);
|
|
4218
5867
|
}
|
|
4219
5868
|
break;
|
|
5869
|
+
case 1281:
|
|
5870
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
5871
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
5872
|
+
this.directResults.read(input);
|
|
5873
|
+
} else {
|
|
5874
|
+
input.skip(ftype);
|
|
5875
|
+
}
|
|
5876
|
+
break;
|
|
4220
5877
|
default:
|
|
4221
5878
|
input.skip(ftype);
|
|
4222
5879
|
}
|
|
@@ -4238,6 +5895,11 @@ TGetSchemasResp.prototype.write = function(output) {
|
|
|
4238
5895
|
this.operationHandle.write(output);
|
|
4239
5896
|
output.writeFieldEnd();
|
|
4240
5897
|
}
|
|
5898
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
5899
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
5900
|
+
this.directResults.write(output);
|
|
5901
|
+
output.writeFieldEnd();
|
|
5902
|
+
}
|
|
4241
5903
|
output.writeFieldStop();
|
|
4242
5904
|
output.writeStructEnd();
|
|
4243
5905
|
return;
|
|
@@ -4249,6 +5911,10 @@ var TGetTablesReq = module.exports.TGetTablesReq = function(args) {
|
|
|
4249
5911
|
this.schemaName = null;
|
|
4250
5912
|
this.tableName = null;
|
|
4251
5913
|
this.tableTypes = null;
|
|
5914
|
+
this.getDirectResults = null;
|
|
5915
|
+
this.runAsync = false;
|
|
5916
|
+
this.operationId = null;
|
|
5917
|
+
this.sessionConf = null;
|
|
4252
5918
|
if (args) {
|
|
4253
5919
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
4254
5920
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -4267,6 +5933,18 @@ var TGetTablesReq = module.exports.TGetTablesReq = function(args) {
|
|
|
4267
5933
|
if (args.tableTypes !== undefined && args.tableTypes !== null) {
|
|
4268
5934
|
this.tableTypes = Thrift.copyList(args.tableTypes, [null]);
|
|
4269
5935
|
}
|
|
5936
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
5937
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
5938
|
+
}
|
|
5939
|
+
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
5940
|
+
this.runAsync = args.runAsync;
|
|
5941
|
+
}
|
|
5942
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
5943
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
5944
|
+
}
|
|
5945
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
5946
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
5947
|
+
}
|
|
4270
5948
|
}
|
|
4271
5949
|
};
|
|
4272
5950
|
TGetTablesReq.prototype = {};
|
|
@@ -4312,18 +5990,49 @@ TGetTablesReq.prototype.read = function(input) {
|
|
|
4312
5990
|
case 5:
|
|
4313
5991
|
if (ftype == Thrift.Type.LIST) {
|
|
4314
5992
|
this.tableTypes = [];
|
|
4315
|
-
var
|
|
4316
|
-
var
|
|
4317
|
-
for (var
|
|
4318
|
-
var
|
|
4319
|
-
|
|
4320
|
-
this.tableTypes.push(
|
|
5993
|
+
var _rtmp3159 = input.readListBegin();
|
|
5994
|
+
var _size158 = _rtmp3159.size || 0;
|
|
5995
|
+
for (var _i160 = 0; _i160 < _size158; ++_i160) {
|
|
5996
|
+
var elem161 = null;
|
|
5997
|
+
elem161 = input.readString();
|
|
5998
|
+
this.tableTypes.push(elem161);
|
|
4321
5999
|
}
|
|
4322
6000
|
input.readListEnd();
|
|
4323
6001
|
} else {
|
|
4324
6002
|
input.skip(ftype);
|
|
4325
6003
|
}
|
|
4326
6004
|
break;
|
|
6005
|
+
case 1281:
|
|
6006
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6007
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
6008
|
+
this.getDirectResults.read(input);
|
|
6009
|
+
} else {
|
|
6010
|
+
input.skip(ftype);
|
|
6011
|
+
}
|
|
6012
|
+
break;
|
|
6013
|
+
case 1282:
|
|
6014
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6015
|
+
this.runAsync = input.readBool();
|
|
6016
|
+
} else {
|
|
6017
|
+
input.skip(ftype);
|
|
6018
|
+
}
|
|
6019
|
+
break;
|
|
6020
|
+
case 3329:
|
|
6021
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6022
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
6023
|
+
this.operationId.read(input);
|
|
6024
|
+
} else {
|
|
6025
|
+
input.skip(ftype);
|
|
6026
|
+
}
|
|
6027
|
+
break;
|
|
6028
|
+
case 3330:
|
|
6029
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6030
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
6031
|
+
this.sessionConf.read(input);
|
|
6032
|
+
} else {
|
|
6033
|
+
input.skip(ftype);
|
|
6034
|
+
}
|
|
6035
|
+
break;
|
|
4327
6036
|
default:
|
|
4328
6037
|
input.skip(ftype);
|
|
4329
6038
|
}
|
|
@@ -4358,15 +6067,35 @@ TGetTablesReq.prototype.write = function(output) {
|
|
|
4358
6067
|
if (this.tableTypes !== null && this.tableTypes !== undefined) {
|
|
4359
6068
|
output.writeFieldBegin('tableTypes', Thrift.Type.LIST, 5);
|
|
4360
6069
|
output.writeListBegin(Thrift.Type.STRING, this.tableTypes.length);
|
|
4361
|
-
for (var
|
|
4362
|
-
if (this.tableTypes.hasOwnProperty(
|
|
4363
|
-
|
|
4364
|
-
output.writeString(
|
|
6070
|
+
for (var iter162 in this.tableTypes) {
|
|
6071
|
+
if (this.tableTypes.hasOwnProperty(iter162)) {
|
|
6072
|
+
iter162 = this.tableTypes[iter162];
|
|
6073
|
+
output.writeString(iter162);
|
|
4365
6074
|
}
|
|
4366
6075
|
}
|
|
4367
6076
|
output.writeListEnd();
|
|
4368
6077
|
output.writeFieldEnd();
|
|
4369
6078
|
}
|
|
6079
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
6080
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
6081
|
+
this.getDirectResults.write(output);
|
|
6082
|
+
output.writeFieldEnd();
|
|
6083
|
+
}
|
|
6084
|
+
if (this.runAsync !== null && this.runAsync !== undefined) {
|
|
6085
|
+
output.writeFieldBegin('runAsync', Thrift.Type.BOOL, 1282);
|
|
6086
|
+
output.writeBool(this.runAsync);
|
|
6087
|
+
output.writeFieldEnd();
|
|
6088
|
+
}
|
|
6089
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
6090
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
6091
|
+
this.operationId.write(output);
|
|
6092
|
+
output.writeFieldEnd();
|
|
6093
|
+
}
|
|
6094
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
6095
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
6096
|
+
this.sessionConf.write(output);
|
|
6097
|
+
output.writeFieldEnd();
|
|
6098
|
+
}
|
|
4370
6099
|
output.writeFieldStop();
|
|
4371
6100
|
output.writeStructEnd();
|
|
4372
6101
|
return;
|
|
@@ -4375,6 +6104,7 @@ TGetTablesReq.prototype.write = function(output) {
|
|
|
4375
6104
|
var TGetTablesResp = module.exports.TGetTablesResp = function(args) {
|
|
4376
6105
|
this.status = null;
|
|
4377
6106
|
this.operationHandle = null;
|
|
6107
|
+
this.directResults = null;
|
|
4378
6108
|
if (args) {
|
|
4379
6109
|
if (args.status !== undefined && args.status !== null) {
|
|
4380
6110
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -4384,6 +6114,9 @@ var TGetTablesResp = module.exports.TGetTablesResp = function(args) {
|
|
|
4384
6114
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
4385
6115
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
4386
6116
|
}
|
|
6117
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
6118
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
6119
|
+
}
|
|
4387
6120
|
}
|
|
4388
6121
|
};
|
|
4389
6122
|
TGetTablesResp.prototype = {};
|
|
@@ -4413,6 +6146,14 @@ TGetTablesResp.prototype.read = function(input) {
|
|
|
4413
6146
|
input.skip(ftype);
|
|
4414
6147
|
}
|
|
4415
6148
|
break;
|
|
6149
|
+
case 1281:
|
|
6150
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6151
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
6152
|
+
this.directResults.read(input);
|
|
6153
|
+
} else {
|
|
6154
|
+
input.skip(ftype);
|
|
6155
|
+
}
|
|
6156
|
+
break;
|
|
4416
6157
|
default:
|
|
4417
6158
|
input.skip(ftype);
|
|
4418
6159
|
}
|
|
@@ -4434,6 +6175,11 @@ TGetTablesResp.prototype.write = function(output) {
|
|
|
4434
6175
|
this.operationHandle.write(output);
|
|
4435
6176
|
output.writeFieldEnd();
|
|
4436
6177
|
}
|
|
6178
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
6179
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
6180
|
+
this.directResults.write(output);
|
|
6181
|
+
output.writeFieldEnd();
|
|
6182
|
+
}
|
|
4437
6183
|
output.writeFieldStop();
|
|
4438
6184
|
output.writeStructEnd();
|
|
4439
6185
|
return;
|
|
@@ -4441,12 +6187,28 @@ TGetTablesResp.prototype.write = function(output) {
|
|
|
4441
6187
|
|
|
4442
6188
|
var TGetTableTypesReq = module.exports.TGetTableTypesReq = function(args) {
|
|
4443
6189
|
this.sessionHandle = null;
|
|
6190
|
+
this.getDirectResults = null;
|
|
6191
|
+
this.runAsync = false;
|
|
6192
|
+
this.operationId = null;
|
|
6193
|
+
this.sessionConf = null;
|
|
4444
6194
|
if (args) {
|
|
4445
6195
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
4446
6196
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
4447
6197
|
} else {
|
|
4448
6198
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field sessionHandle is unset!');
|
|
4449
6199
|
}
|
|
6200
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
6201
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
6202
|
+
}
|
|
6203
|
+
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
6204
|
+
this.runAsync = args.runAsync;
|
|
6205
|
+
}
|
|
6206
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
6207
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
6208
|
+
}
|
|
6209
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
6210
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
6211
|
+
}
|
|
4450
6212
|
}
|
|
4451
6213
|
};
|
|
4452
6214
|
TGetTableTypesReq.prototype = {};
|
|
@@ -4468,9 +6230,37 @@ TGetTableTypesReq.prototype.read = function(input) {
|
|
|
4468
6230
|
input.skip(ftype);
|
|
4469
6231
|
}
|
|
4470
6232
|
break;
|
|
4471
|
-
case
|
|
6233
|
+
case 1281:
|
|
6234
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6235
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
6236
|
+
this.getDirectResults.read(input);
|
|
6237
|
+
} else {
|
|
4472
6238
|
input.skip(ftype);
|
|
4473
|
-
|
|
6239
|
+
}
|
|
6240
|
+
break;
|
|
6241
|
+
case 1282:
|
|
6242
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6243
|
+
this.runAsync = input.readBool();
|
|
6244
|
+
} else {
|
|
6245
|
+
input.skip(ftype);
|
|
6246
|
+
}
|
|
6247
|
+
break;
|
|
6248
|
+
case 3329:
|
|
6249
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6250
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
6251
|
+
this.operationId.read(input);
|
|
6252
|
+
} else {
|
|
6253
|
+
input.skip(ftype);
|
|
6254
|
+
}
|
|
6255
|
+
break;
|
|
6256
|
+
case 3330:
|
|
6257
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6258
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
6259
|
+
this.sessionConf.read(input);
|
|
6260
|
+
} else {
|
|
6261
|
+
input.skip(ftype);
|
|
6262
|
+
}
|
|
6263
|
+
break;
|
|
4474
6264
|
default:
|
|
4475
6265
|
input.skip(ftype);
|
|
4476
6266
|
}
|
|
@@ -4487,6 +6277,26 @@ TGetTableTypesReq.prototype.write = function(output) {
|
|
|
4487
6277
|
this.sessionHandle.write(output);
|
|
4488
6278
|
output.writeFieldEnd();
|
|
4489
6279
|
}
|
|
6280
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
6281
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
6282
|
+
this.getDirectResults.write(output);
|
|
6283
|
+
output.writeFieldEnd();
|
|
6284
|
+
}
|
|
6285
|
+
if (this.runAsync !== null && this.runAsync !== undefined) {
|
|
6286
|
+
output.writeFieldBegin('runAsync', Thrift.Type.BOOL, 1282);
|
|
6287
|
+
output.writeBool(this.runAsync);
|
|
6288
|
+
output.writeFieldEnd();
|
|
6289
|
+
}
|
|
6290
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
6291
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
6292
|
+
this.operationId.write(output);
|
|
6293
|
+
output.writeFieldEnd();
|
|
6294
|
+
}
|
|
6295
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
6296
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
6297
|
+
this.sessionConf.write(output);
|
|
6298
|
+
output.writeFieldEnd();
|
|
6299
|
+
}
|
|
4490
6300
|
output.writeFieldStop();
|
|
4491
6301
|
output.writeStructEnd();
|
|
4492
6302
|
return;
|
|
@@ -4495,6 +6305,7 @@ TGetTableTypesReq.prototype.write = function(output) {
|
|
|
4495
6305
|
var TGetTableTypesResp = module.exports.TGetTableTypesResp = function(args) {
|
|
4496
6306
|
this.status = null;
|
|
4497
6307
|
this.operationHandle = null;
|
|
6308
|
+
this.directResults = null;
|
|
4498
6309
|
if (args) {
|
|
4499
6310
|
if (args.status !== undefined && args.status !== null) {
|
|
4500
6311
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -4504,6 +6315,9 @@ var TGetTableTypesResp = module.exports.TGetTableTypesResp = function(args) {
|
|
|
4504
6315
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
4505
6316
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
4506
6317
|
}
|
|
6318
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
6319
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
6320
|
+
}
|
|
4507
6321
|
}
|
|
4508
6322
|
};
|
|
4509
6323
|
TGetTableTypesResp.prototype = {};
|
|
@@ -4533,6 +6347,14 @@ TGetTableTypesResp.prototype.read = function(input) {
|
|
|
4533
6347
|
input.skip(ftype);
|
|
4534
6348
|
}
|
|
4535
6349
|
break;
|
|
6350
|
+
case 1281:
|
|
6351
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6352
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
6353
|
+
this.directResults.read(input);
|
|
6354
|
+
} else {
|
|
6355
|
+
input.skip(ftype);
|
|
6356
|
+
}
|
|
6357
|
+
break;
|
|
4536
6358
|
default:
|
|
4537
6359
|
input.skip(ftype);
|
|
4538
6360
|
}
|
|
@@ -4554,6 +6376,11 @@ TGetTableTypesResp.prototype.write = function(output) {
|
|
|
4554
6376
|
this.operationHandle.write(output);
|
|
4555
6377
|
output.writeFieldEnd();
|
|
4556
6378
|
}
|
|
6379
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
6380
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
6381
|
+
this.directResults.write(output);
|
|
6382
|
+
output.writeFieldEnd();
|
|
6383
|
+
}
|
|
4557
6384
|
output.writeFieldStop();
|
|
4558
6385
|
output.writeStructEnd();
|
|
4559
6386
|
return;
|
|
@@ -4565,6 +6392,10 @@ var TGetColumnsReq = module.exports.TGetColumnsReq = function(args) {
|
|
|
4565
6392
|
this.schemaName = null;
|
|
4566
6393
|
this.tableName = null;
|
|
4567
6394
|
this.columnName = null;
|
|
6395
|
+
this.getDirectResults = null;
|
|
6396
|
+
this.runAsync = false;
|
|
6397
|
+
this.operationId = null;
|
|
6398
|
+
this.sessionConf = null;
|
|
4568
6399
|
if (args) {
|
|
4569
6400
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
4570
6401
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -4583,6 +6414,18 @@ var TGetColumnsReq = module.exports.TGetColumnsReq = function(args) {
|
|
|
4583
6414
|
if (args.columnName !== undefined && args.columnName !== null) {
|
|
4584
6415
|
this.columnName = args.columnName;
|
|
4585
6416
|
}
|
|
6417
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
6418
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
6419
|
+
}
|
|
6420
|
+
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
6421
|
+
this.runAsync = args.runAsync;
|
|
6422
|
+
}
|
|
6423
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
6424
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
6425
|
+
}
|
|
6426
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
6427
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
6428
|
+
}
|
|
4586
6429
|
}
|
|
4587
6430
|
};
|
|
4588
6431
|
TGetColumnsReq.prototype = {};
|
|
@@ -4632,6 +6475,37 @@ TGetColumnsReq.prototype.read = function(input) {
|
|
|
4632
6475
|
input.skip(ftype);
|
|
4633
6476
|
}
|
|
4634
6477
|
break;
|
|
6478
|
+
case 1281:
|
|
6479
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6480
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
6481
|
+
this.getDirectResults.read(input);
|
|
6482
|
+
} else {
|
|
6483
|
+
input.skip(ftype);
|
|
6484
|
+
}
|
|
6485
|
+
break;
|
|
6486
|
+
case 1282:
|
|
6487
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6488
|
+
this.runAsync = input.readBool();
|
|
6489
|
+
} else {
|
|
6490
|
+
input.skip(ftype);
|
|
6491
|
+
}
|
|
6492
|
+
break;
|
|
6493
|
+
case 3329:
|
|
6494
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6495
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
6496
|
+
this.operationId.read(input);
|
|
6497
|
+
} else {
|
|
6498
|
+
input.skip(ftype);
|
|
6499
|
+
}
|
|
6500
|
+
break;
|
|
6501
|
+
case 3330:
|
|
6502
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6503
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
6504
|
+
this.sessionConf.read(input);
|
|
6505
|
+
} else {
|
|
6506
|
+
input.skip(ftype);
|
|
6507
|
+
}
|
|
6508
|
+
break;
|
|
4635
6509
|
default:
|
|
4636
6510
|
input.skip(ftype);
|
|
4637
6511
|
}
|
|
@@ -4668,6 +6542,26 @@ TGetColumnsReq.prototype.write = function(output) {
|
|
|
4668
6542
|
output.writeString(this.columnName);
|
|
4669
6543
|
output.writeFieldEnd();
|
|
4670
6544
|
}
|
|
6545
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
6546
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
6547
|
+
this.getDirectResults.write(output);
|
|
6548
|
+
output.writeFieldEnd();
|
|
6549
|
+
}
|
|
6550
|
+
if (this.runAsync !== null && this.runAsync !== undefined) {
|
|
6551
|
+
output.writeFieldBegin('runAsync', Thrift.Type.BOOL, 1282);
|
|
6552
|
+
output.writeBool(this.runAsync);
|
|
6553
|
+
output.writeFieldEnd();
|
|
6554
|
+
}
|
|
6555
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
6556
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
6557
|
+
this.operationId.write(output);
|
|
6558
|
+
output.writeFieldEnd();
|
|
6559
|
+
}
|
|
6560
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
6561
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
6562
|
+
this.sessionConf.write(output);
|
|
6563
|
+
output.writeFieldEnd();
|
|
6564
|
+
}
|
|
4671
6565
|
output.writeFieldStop();
|
|
4672
6566
|
output.writeStructEnd();
|
|
4673
6567
|
return;
|
|
@@ -4676,6 +6570,7 @@ TGetColumnsReq.prototype.write = function(output) {
|
|
|
4676
6570
|
var TGetColumnsResp = module.exports.TGetColumnsResp = function(args) {
|
|
4677
6571
|
this.status = null;
|
|
4678
6572
|
this.operationHandle = null;
|
|
6573
|
+
this.directResults = null;
|
|
4679
6574
|
if (args) {
|
|
4680
6575
|
if (args.status !== undefined && args.status !== null) {
|
|
4681
6576
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -4685,6 +6580,9 @@ var TGetColumnsResp = module.exports.TGetColumnsResp = function(args) {
|
|
|
4685
6580
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
4686
6581
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
4687
6582
|
}
|
|
6583
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
6584
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
6585
|
+
}
|
|
4688
6586
|
}
|
|
4689
6587
|
};
|
|
4690
6588
|
TGetColumnsResp.prototype = {};
|
|
@@ -4714,6 +6612,14 @@ TGetColumnsResp.prototype.read = function(input) {
|
|
|
4714
6612
|
input.skip(ftype);
|
|
4715
6613
|
}
|
|
4716
6614
|
break;
|
|
6615
|
+
case 1281:
|
|
6616
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6617
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
6618
|
+
this.directResults.read(input);
|
|
6619
|
+
} else {
|
|
6620
|
+
input.skip(ftype);
|
|
6621
|
+
}
|
|
6622
|
+
break;
|
|
4717
6623
|
default:
|
|
4718
6624
|
input.skip(ftype);
|
|
4719
6625
|
}
|
|
@@ -4735,6 +6641,11 @@ TGetColumnsResp.prototype.write = function(output) {
|
|
|
4735
6641
|
this.operationHandle.write(output);
|
|
4736
6642
|
output.writeFieldEnd();
|
|
4737
6643
|
}
|
|
6644
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
6645
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
6646
|
+
this.directResults.write(output);
|
|
6647
|
+
output.writeFieldEnd();
|
|
6648
|
+
}
|
|
4738
6649
|
output.writeFieldStop();
|
|
4739
6650
|
output.writeStructEnd();
|
|
4740
6651
|
return;
|
|
@@ -4745,6 +6656,10 @@ var TGetFunctionsReq = module.exports.TGetFunctionsReq = function(args) {
|
|
|
4745
6656
|
this.catalogName = null;
|
|
4746
6657
|
this.schemaName = null;
|
|
4747
6658
|
this.functionName = null;
|
|
6659
|
+
this.getDirectResults = null;
|
|
6660
|
+
this.runAsync = false;
|
|
6661
|
+
this.operationId = null;
|
|
6662
|
+
this.sessionConf = null;
|
|
4748
6663
|
if (args) {
|
|
4749
6664
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
4750
6665
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -4762,6 +6677,18 @@ var TGetFunctionsReq = module.exports.TGetFunctionsReq = function(args) {
|
|
|
4762
6677
|
} else {
|
|
4763
6678
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field functionName is unset!');
|
|
4764
6679
|
}
|
|
6680
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
6681
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
6682
|
+
}
|
|
6683
|
+
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
6684
|
+
this.runAsync = args.runAsync;
|
|
6685
|
+
}
|
|
6686
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
6687
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
6688
|
+
}
|
|
6689
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
6690
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
6691
|
+
}
|
|
4765
6692
|
}
|
|
4766
6693
|
};
|
|
4767
6694
|
TGetFunctionsReq.prototype = {};
|
|
@@ -4804,6 +6731,37 @@ TGetFunctionsReq.prototype.read = function(input) {
|
|
|
4804
6731
|
input.skip(ftype);
|
|
4805
6732
|
}
|
|
4806
6733
|
break;
|
|
6734
|
+
case 1281:
|
|
6735
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6736
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
6737
|
+
this.getDirectResults.read(input);
|
|
6738
|
+
} else {
|
|
6739
|
+
input.skip(ftype);
|
|
6740
|
+
}
|
|
6741
|
+
break;
|
|
6742
|
+
case 1282:
|
|
6743
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6744
|
+
this.runAsync = input.readBool();
|
|
6745
|
+
} else {
|
|
6746
|
+
input.skip(ftype);
|
|
6747
|
+
}
|
|
6748
|
+
break;
|
|
6749
|
+
case 3329:
|
|
6750
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6751
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
6752
|
+
this.operationId.read(input);
|
|
6753
|
+
} else {
|
|
6754
|
+
input.skip(ftype);
|
|
6755
|
+
}
|
|
6756
|
+
break;
|
|
6757
|
+
case 3330:
|
|
6758
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6759
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
6760
|
+
this.sessionConf.read(input);
|
|
6761
|
+
} else {
|
|
6762
|
+
input.skip(ftype);
|
|
6763
|
+
}
|
|
6764
|
+
break;
|
|
4807
6765
|
default:
|
|
4808
6766
|
input.skip(ftype);
|
|
4809
6767
|
}
|
|
@@ -4835,6 +6793,26 @@ TGetFunctionsReq.prototype.write = function(output) {
|
|
|
4835
6793
|
output.writeString(this.functionName);
|
|
4836
6794
|
output.writeFieldEnd();
|
|
4837
6795
|
}
|
|
6796
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
6797
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
6798
|
+
this.getDirectResults.write(output);
|
|
6799
|
+
output.writeFieldEnd();
|
|
6800
|
+
}
|
|
6801
|
+
if (this.runAsync !== null && this.runAsync !== undefined) {
|
|
6802
|
+
output.writeFieldBegin('runAsync', Thrift.Type.BOOL, 1282);
|
|
6803
|
+
output.writeBool(this.runAsync);
|
|
6804
|
+
output.writeFieldEnd();
|
|
6805
|
+
}
|
|
6806
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
6807
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
6808
|
+
this.operationId.write(output);
|
|
6809
|
+
output.writeFieldEnd();
|
|
6810
|
+
}
|
|
6811
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
6812
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
6813
|
+
this.sessionConf.write(output);
|
|
6814
|
+
output.writeFieldEnd();
|
|
6815
|
+
}
|
|
4838
6816
|
output.writeFieldStop();
|
|
4839
6817
|
output.writeStructEnd();
|
|
4840
6818
|
return;
|
|
@@ -4843,6 +6821,7 @@ TGetFunctionsReq.prototype.write = function(output) {
|
|
|
4843
6821
|
var TGetFunctionsResp = module.exports.TGetFunctionsResp = function(args) {
|
|
4844
6822
|
this.status = null;
|
|
4845
6823
|
this.operationHandle = null;
|
|
6824
|
+
this.directResults = null;
|
|
4846
6825
|
if (args) {
|
|
4847
6826
|
if (args.status !== undefined && args.status !== null) {
|
|
4848
6827
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -4852,6 +6831,9 @@ var TGetFunctionsResp = module.exports.TGetFunctionsResp = function(args) {
|
|
|
4852
6831
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
4853
6832
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
4854
6833
|
}
|
|
6834
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
6835
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
6836
|
+
}
|
|
4855
6837
|
}
|
|
4856
6838
|
};
|
|
4857
6839
|
TGetFunctionsResp.prototype = {};
|
|
@@ -4881,6 +6863,14 @@ TGetFunctionsResp.prototype.read = function(input) {
|
|
|
4881
6863
|
input.skip(ftype);
|
|
4882
6864
|
}
|
|
4883
6865
|
break;
|
|
6866
|
+
case 1281:
|
|
6867
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6868
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
6869
|
+
this.directResults.read(input);
|
|
6870
|
+
} else {
|
|
6871
|
+
input.skip(ftype);
|
|
6872
|
+
}
|
|
6873
|
+
break;
|
|
4884
6874
|
default:
|
|
4885
6875
|
input.skip(ftype);
|
|
4886
6876
|
}
|
|
@@ -4902,6 +6892,11 @@ TGetFunctionsResp.prototype.write = function(output) {
|
|
|
4902
6892
|
this.operationHandle.write(output);
|
|
4903
6893
|
output.writeFieldEnd();
|
|
4904
6894
|
}
|
|
6895
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
6896
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
6897
|
+
this.directResults.write(output);
|
|
6898
|
+
output.writeFieldEnd();
|
|
6899
|
+
}
|
|
4905
6900
|
output.writeFieldStop();
|
|
4906
6901
|
output.writeStructEnd();
|
|
4907
6902
|
return;
|
|
@@ -4912,6 +6907,10 @@ var TGetPrimaryKeysReq = module.exports.TGetPrimaryKeysReq = function(args) {
|
|
|
4912
6907
|
this.catalogName = null;
|
|
4913
6908
|
this.schemaName = null;
|
|
4914
6909
|
this.tableName = null;
|
|
6910
|
+
this.getDirectResults = null;
|
|
6911
|
+
this.runAsync = false;
|
|
6912
|
+
this.operationId = null;
|
|
6913
|
+
this.sessionConf = null;
|
|
4915
6914
|
if (args) {
|
|
4916
6915
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
4917
6916
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -4927,6 +6926,18 @@ var TGetPrimaryKeysReq = module.exports.TGetPrimaryKeysReq = function(args) {
|
|
|
4927
6926
|
if (args.tableName !== undefined && args.tableName !== null) {
|
|
4928
6927
|
this.tableName = args.tableName;
|
|
4929
6928
|
}
|
|
6929
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
6930
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
6931
|
+
}
|
|
6932
|
+
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
6933
|
+
this.runAsync = args.runAsync;
|
|
6934
|
+
}
|
|
6935
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
6936
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
6937
|
+
}
|
|
6938
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
6939
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
6940
|
+
}
|
|
4930
6941
|
}
|
|
4931
6942
|
};
|
|
4932
6943
|
TGetPrimaryKeysReq.prototype = {};
|
|
@@ -4969,6 +6980,37 @@ TGetPrimaryKeysReq.prototype.read = function(input) {
|
|
|
4969
6980
|
input.skip(ftype);
|
|
4970
6981
|
}
|
|
4971
6982
|
break;
|
|
6983
|
+
case 1281:
|
|
6984
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
6985
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
6986
|
+
this.getDirectResults.read(input);
|
|
6987
|
+
} else {
|
|
6988
|
+
input.skip(ftype);
|
|
6989
|
+
}
|
|
6990
|
+
break;
|
|
6991
|
+
case 1282:
|
|
6992
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
6993
|
+
this.runAsync = input.readBool();
|
|
6994
|
+
} else {
|
|
6995
|
+
input.skip(ftype);
|
|
6996
|
+
}
|
|
6997
|
+
break;
|
|
6998
|
+
case 3329:
|
|
6999
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
7000
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
7001
|
+
this.operationId.read(input);
|
|
7002
|
+
} else {
|
|
7003
|
+
input.skip(ftype);
|
|
7004
|
+
}
|
|
7005
|
+
break;
|
|
7006
|
+
case 3330:
|
|
7007
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
7008
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
7009
|
+
this.sessionConf.read(input);
|
|
7010
|
+
} else {
|
|
7011
|
+
input.skip(ftype);
|
|
7012
|
+
}
|
|
7013
|
+
break;
|
|
4972
7014
|
default:
|
|
4973
7015
|
input.skip(ftype);
|
|
4974
7016
|
}
|
|
@@ -5000,6 +7042,26 @@ TGetPrimaryKeysReq.prototype.write = function(output) {
|
|
|
5000
7042
|
output.writeString(this.tableName);
|
|
5001
7043
|
output.writeFieldEnd();
|
|
5002
7044
|
}
|
|
7045
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
7046
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
7047
|
+
this.getDirectResults.write(output);
|
|
7048
|
+
output.writeFieldEnd();
|
|
7049
|
+
}
|
|
7050
|
+
if (this.runAsync !== null && this.runAsync !== undefined) {
|
|
7051
|
+
output.writeFieldBegin('runAsync', Thrift.Type.BOOL, 1282);
|
|
7052
|
+
output.writeBool(this.runAsync);
|
|
7053
|
+
output.writeFieldEnd();
|
|
7054
|
+
}
|
|
7055
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
7056
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
7057
|
+
this.operationId.write(output);
|
|
7058
|
+
output.writeFieldEnd();
|
|
7059
|
+
}
|
|
7060
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
7061
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
7062
|
+
this.sessionConf.write(output);
|
|
7063
|
+
output.writeFieldEnd();
|
|
7064
|
+
}
|
|
5003
7065
|
output.writeFieldStop();
|
|
5004
7066
|
output.writeStructEnd();
|
|
5005
7067
|
return;
|
|
@@ -5008,6 +7070,7 @@ TGetPrimaryKeysReq.prototype.write = function(output) {
|
|
|
5008
7070
|
var TGetPrimaryKeysResp = module.exports.TGetPrimaryKeysResp = function(args) {
|
|
5009
7071
|
this.status = null;
|
|
5010
7072
|
this.operationHandle = null;
|
|
7073
|
+
this.directResults = null;
|
|
5011
7074
|
if (args) {
|
|
5012
7075
|
if (args.status !== undefined && args.status !== null) {
|
|
5013
7076
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -5017,6 +7080,9 @@ var TGetPrimaryKeysResp = module.exports.TGetPrimaryKeysResp = function(args) {
|
|
|
5017
7080
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
5018
7081
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
5019
7082
|
}
|
|
7083
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
7084
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
7085
|
+
}
|
|
5020
7086
|
}
|
|
5021
7087
|
};
|
|
5022
7088
|
TGetPrimaryKeysResp.prototype = {};
|
|
@@ -5046,6 +7112,14 @@ TGetPrimaryKeysResp.prototype.read = function(input) {
|
|
|
5046
7112
|
input.skip(ftype);
|
|
5047
7113
|
}
|
|
5048
7114
|
break;
|
|
7115
|
+
case 1281:
|
|
7116
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
7117
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
7118
|
+
this.directResults.read(input);
|
|
7119
|
+
} else {
|
|
7120
|
+
input.skip(ftype);
|
|
7121
|
+
}
|
|
7122
|
+
break;
|
|
5049
7123
|
default:
|
|
5050
7124
|
input.skip(ftype);
|
|
5051
7125
|
}
|
|
@@ -5067,6 +7141,11 @@ TGetPrimaryKeysResp.prototype.write = function(output) {
|
|
|
5067
7141
|
this.operationHandle.write(output);
|
|
5068
7142
|
output.writeFieldEnd();
|
|
5069
7143
|
}
|
|
7144
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
7145
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
7146
|
+
this.directResults.write(output);
|
|
7147
|
+
output.writeFieldEnd();
|
|
7148
|
+
}
|
|
5070
7149
|
output.writeFieldStop();
|
|
5071
7150
|
output.writeStructEnd();
|
|
5072
7151
|
return;
|
|
@@ -5080,6 +7159,10 @@ var TGetCrossReferenceReq = module.exports.TGetCrossReferenceReq = function(args
|
|
|
5080
7159
|
this.foreignCatalogName = null;
|
|
5081
7160
|
this.foreignSchemaName = null;
|
|
5082
7161
|
this.foreignTableName = null;
|
|
7162
|
+
this.getDirectResults = null;
|
|
7163
|
+
this.runAsync = false;
|
|
7164
|
+
this.operationId = null;
|
|
7165
|
+
this.sessionConf = null;
|
|
5083
7166
|
if (args) {
|
|
5084
7167
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
5085
7168
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -5104,6 +7187,18 @@ var TGetCrossReferenceReq = module.exports.TGetCrossReferenceReq = function(args
|
|
|
5104
7187
|
if (args.foreignTableName !== undefined && args.foreignTableName !== null) {
|
|
5105
7188
|
this.foreignTableName = args.foreignTableName;
|
|
5106
7189
|
}
|
|
7190
|
+
if (args.getDirectResults !== undefined && args.getDirectResults !== null) {
|
|
7191
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults(args.getDirectResults);
|
|
7192
|
+
}
|
|
7193
|
+
if (args.runAsync !== undefined && args.runAsync !== null) {
|
|
7194
|
+
this.runAsync = args.runAsync;
|
|
7195
|
+
}
|
|
7196
|
+
if (args.operationId !== undefined && args.operationId !== null) {
|
|
7197
|
+
this.operationId = new ttypes.THandleIdentifier(args.operationId);
|
|
7198
|
+
}
|
|
7199
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
7200
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
7201
|
+
}
|
|
5107
7202
|
}
|
|
5108
7203
|
};
|
|
5109
7204
|
TGetCrossReferenceReq.prototype = {};
|
|
@@ -5153,16 +7248,47 @@ TGetCrossReferenceReq.prototype.read = function(input) {
|
|
|
5153
7248
|
input.skip(ftype);
|
|
5154
7249
|
}
|
|
5155
7250
|
break;
|
|
5156
|
-
case 6:
|
|
5157
|
-
if (ftype == Thrift.Type.STRING) {
|
|
5158
|
-
this.foreignSchemaName = input.readString();
|
|
7251
|
+
case 6:
|
|
7252
|
+
if (ftype == Thrift.Type.STRING) {
|
|
7253
|
+
this.foreignSchemaName = input.readString();
|
|
7254
|
+
} else {
|
|
7255
|
+
input.skip(ftype);
|
|
7256
|
+
}
|
|
7257
|
+
break;
|
|
7258
|
+
case 7:
|
|
7259
|
+
if (ftype == Thrift.Type.STRING) {
|
|
7260
|
+
this.foreignTableName = input.readString();
|
|
7261
|
+
} else {
|
|
7262
|
+
input.skip(ftype);
|
|
7263
|
+
}
|
|
7264
|
+
break;
|
|
7265
|
+
case 1281:
|
|
7266
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
7267
|
+
this.getDirectResults = new ttypes.TSparkGetDirectResults();
|
|
7268
|
+
this.getDirectResults.read(input);
|
|
7269
|
+
} else {
|
|
7270
|
+
input.skip(ftype);
|
|
7271
|
+
}
|
|
7272
|
+
break;
|
|
7273
|
+
case 1282:
|
|
7274
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
7275
|
+
this.runAsync = input.readBool();
|
|
7276
|
+
} else {
|
|
7277
|
+
input.skip(ftype);
|
|
7278
|
+
}
|
|
7279
|
+
break;
|
|
7280
|
+
case 3329:
|
|
7281
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
7282
|
+
this.operationId = new ttypes.THandleIdentifier();
|
|
7283
|
+
this.operationId.read(input);
|
|
5159
7284
|
} else {
|
|
5160
7285
|
input.skip(ftype);
|
|
5161
7286
|
}
|
|
5162
7287
|
break;
|
|
5163
|
-
case
|
|
5164
|
-
if (ftype == Thrift.Type.
|
|
5165
|
-
this.
|
|
7288
|
+
case 3330:
|
|
7289
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
7290
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
7291
|
+
this.sessionConf.read(input);
|
|
5166
7292
|
} else {
|
|
5167
7293
|
input.skip(ftype);
|
|
5168
7294
|
}
|
|
@@ -5213,6 +7339,26 @@ TGetCrossReferenceReq.prototype.write = function(output) {
|
|
|
5213
7339
|
output.writeString(this.foreignTableName);
|
|
5214
7340
|
output.writeFieldEnd();
|
|
5215
7341
|
}
|
|
7342
|
+
if (this.getDirectResults !== null && this.getDirectResults !== undefined) {
|
|
7343
|
+
output.writeFieldBegin('getDirectResults', Thrift.Type.STRUCT, 1281);
|
|
7344
|
+
this.getDirectResults.write(output);
|
|
7345
|
+
output.writeFieldEnd();
|
|
7346
|
+
}
|
|
7347
|
+
if (this.runAsync !== null && this.runAsync !== undefined) {
|
|
7348
|
+
output.writeFieldBegin('runAsync', Thrift.Type.BOOL, 1282);
|
|
7349
|
+
output.writeBool(this.runAsync);
|
|
7350
|
+
output.writeFieldEnd();
|
|
7351
|
+
}
|
|
7352
|
+
if (this.operationId !== null && this.operationId !== undefined) {
|
|
7353
|
+
output.writeFieldBegin('operationId', Thrift.Type.STRUCT, 3329);
|
|
7354
|
+
this.operationId.write(output);
|
|
7355
|
+
output.writeFieldEnd();
|
|
7356
|
+
}
|
|
7357
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
7358
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3330);
|
|
7359
|
+
this.sessionConf.write(output);
|
|
7360
|
+
output.writeFieldEnd();
|
|
7361
|
+
}
|
|
5216
7362
|
output.writeFieldStop();
|
|
5217
7363
|
output.writeStructEnd();
|
|
5218
7364
|
return;
|
|
@@ -5221,6 +7367,7 @@ TGetCrossReferenceReq.prototype.write = function(output) {
|
|
|
5221
7367
|
var TGetCrossReferenceResp = module.exports.TGetCrossReferenceResp = function(args) {
|
|
5222
7368
|
this.status = null;
|
|
5223
7369
|
this.operationHandle = null;
|
|
7370
|
+
this.directResults = null;
|
|
5224
7371
|
if (args) {
|
|
5225
7372
|
if (args.status !== undefined && args.status !== null) {
|
|
5226
7373
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -5230,6 +7377,9 @@ var TGetCrossReferenceResp = module.exports.TGetCrossReferenceResp = function(ar
|
|
|
5230
7377
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
5231
7378
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
5232
7379
|
}
|
|
7380
|
+
if (args.directResults !== undefined && args.directResults !== null) {
|
|
7381
|
+
this.directResults = new ttypes.TSparkDirectResults(args.directResults);
|
|
7382
|
+
}
|
|
5233
7383
|
}
|
|
5234
7384
|
};
|
|
5235
7385
|
TGetCrossReferenceResp.prototype = {};
|
|
@@ -5259,6 +7409,14 @@ TGetCrossReferenceResp.prototype.read = function(input) {
|
|
|
5259
7409
|
input.skip(ftype);
|
|
5260
7410
|
}
|
|
5261
7411
|
break;
|
|
7412
|
+
case 1281:
|
|
7413
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
7414
|
+
this.directResults = new ttypes.TSparkDirectResults();
|
|
7415
|
+
this.directResults.read(input);
|
|
7416
|
+
} else {
|
|
7417
|
+
input.skip(ftype);
|
|
7418
|
+
}
|
|
7419
|
+
break;
|
|
5262
7420
|
default:
|
|
5263
7421
|
input.skip(ftype);
|
|
5264
7422
|
}
|
|
@@ -5280,6 +7438,11 @@ TGetCrossReferenceResp.prototype.write = function(output) {
|
|
|
5280
7438
|
this.operationHandle.write(output);
|
|
5281
7439
|
output.writeFieldEnd();
|
|
5282
7440
|
}
|
|
7441
|
+
if (this.directResults !== null && this.directResults !== undefined) {
|
|
7442
|
+
output.writeFieldBegin('directResults', Thrift.Type.STRUCT, 1281);
|
|
7443
|
+
this.directResults.write(output);
|
|
7444
|
+
output.writeFieldEnd();
|
|
7445
|
+
}
|
|
5283
7446
|
output.writeFieldStop();
|
|
5284
7447
|
output.writeStructEnd();
|
|
5285
7448
|
return;
|
|
@@ -5363,6 +7526,8 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
|
|
|
5363
7526
|
this.hasResultSet = null;
|
|
5364
7527
|
this.progressUpdateResponse = null;
|
|
5365
7528
|
this.numModifiedRows = null;
|
|
7529
|
+
this.displayMessage = null;
|
|
7530
|
+
this.diagnosticInfo = null;
|
|
5366
7531
|
if (args) {
|
|
5367
7532
|
if (args.status !== undefined && args.status !== null) {
|
|
5368
7533
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -5399,6 +7564,12 @@ var TGetOperationStatusResp = module.exports.TGetOperationStatusResp = function(
|
|
|
5399
7564
|
if (args.numModifiedRows !== undefined && args.numModifiedRows !== null) {
|
|
5400
7565
|
this.numModifiedRows = args.numModifiedRows;
|
|
5401
7566
|
}
|
|
7567
|
+
if (args.displayMessage !== undefined && args.displayMessage !== null) {
|
|
7568
|
+
this.displayMessage = args.displayMessage;
|
|
7569
|
+
}
|
|
7570
|
+
if (args.diagnosticInfo !== undefined && args.diagnosticInfo !== null) {
|
|
7571
|
+
this.diagnosticInfo = args.diagnosticInfo;
|
|
7572
|
+
}
|
|
5402
7573
|
}
|
|
5403
7574
|
};
|
|
5404
7575
|
TGetOperationStatusResp.prototype = {};
|
|
@@ -5491,6 +7662,20 @@ TGetOperationStatusResp.prototype.read = function(input) {
|
|
|
5491
7662
|
input.skip(ftype);
|
|
5492
7663
|
}
|
|
5493
7664
|
break;
|
|
7665
|
+
case 1281:
|
|
7666
|
+
if (ftype == Thrift.Type.STRING) {
|
|
7667
|
+
this.displayMessage = input.readString();
|
|
7668
|
+
} else {
|
|
7669
|
+
input.skip(ftype);
|
|
7670
|
+
}
|
|
7671
|
+
break;
|
|
7672
|
+
case 1282:
|
|
7673
|
+
if (ftype == Thrift.Type.STRING) {
|
|
7674
|
+
this.diagnosticInfo = input.readString();
|
|
7675
|
+
} else {
|
|
7676
|
+
input.skip(ftype);
|
|
7677
|
+
}
|
|
7678
|
+
break;
|
|
5494
7679
|
default:
|
|
5495
7680
|
input.skip(ftype);
|
|
5496
7681
|
}
|
|
@@ -5557,6 +7742,16 @@ TGetOperationStatusResp.prototype.write = function(output) {
|
|
|
5557
7742
|
output.writeI64(this.numModifiedRows);
|
|
5558
7743
|
output.writeFieldEnd();
|
|
5559
7744
|
}
|
|
7745
|
+
if (this.displayMessage !== null && this.displayMessage !== undefined) {
|
|
7746
|
+
output.writeFieldBegin('displayMessage', Thrift.Type.STRING, 1281);
|
|
7747
|
+
output.writeString(this.displayMessage);
|
|
7748
|
+
output.writeFieldEnd();
|
|
7749
|
+
}
|
|
7750
|
+
if (this.diagnosticInfo !== null && this.diagnosticInfo !== undefined) {
|
|
7751
|
+
output.writeFieldBegin('diagnosticInfo', Thrift.Type.STRING, 1282);
|
|
7752
|
+
output.writeString(this.diagnosticInfo);
|
|
7753
|
+
output.writeFieldEnd();
|
|
7754
|
+
}
|
|
5560
7755
|
output.writeFieldStop();
|
|
5561
7756
|
output.writeStructEnd();
|
|
5562
7757
|
return;
|
|
@@ -5564,12 +7759,16 @@ TGetOperationStatusResp.prototype.write = function(output) {
|
|
|
5564
7759
|
|
|
5565
7760
|
var TCancelOperationReq = module.exports.TCancelOperationReq = function(args) {
|
|
5566
7761
|
this.operationHandle = null;
|
|
7762
|
+
this.executionVersion = null;
|
|
5567
7763
|
if (args) {
|
|
5568
7764
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
5569
7765
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
5570
7766
|
} else {
|
|
5571
7767
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field operationHandle is unset!');
|
|
5572
7768
|
}
|
|
7769
|
+
if (args.executionVersion !== undefined && args.executionVersion !== null) {
|
|
7770
|
+
this.executionVersion = args.executionVersion;
|
|
7771
|
+
}
|
|
5573
7772
|
}
|
|
5574
7773
|
};
|
|
5575
7774
|
TCancelOperationReq.prototype = {};
|
|
@@ -5591,9 +7790,13 @@ TCancelOperationReq.prototype.read = function(input) {
|
|
|
5591
7790
|
input.skip(ftype);
|
|
5592
7791
|
}
|
|
5593
7792
|
break;
|
|
5594
|
-
case
|
|
7793
|
+
case 3329:
|
|
7794
|
+
if (ftype == Thrift.Type.I16) {
|
|
7795
|
+
this.executionVersion = input.readI16();
|
|
7796
|
+
} else {
|
|
5595
7797
|
input.skip(ftype);
|
|
5596
|
-
|
|
7798
|
+
}
|
|
7799
|
+
break;
|
|
5597
7800
|
default:
|
|
5598
7801
|
input.skip(ftype);
|
|
5599
7802
|
}
|
|
@@ -5610,6 +7813,11 @@ TCancelOperationReq.prototype.write = function(output) {
|
|
|
5610
7813
|
this.operationHandle.write(output);
|
|
5611
7814
|
output.writeFieldEnd();
|
|
5612
7815
|
}
|
|
7816
|
+
if (this.executionVersion !== null && this.executionVersion !== undefined) {
|
|
7817
|
+
output.writeFieldBegin('executionVersion', Thrift.Type.I16, 3329);
|
|
7818
|
+
output.writeI16(this.executionVersion);
|
|
7819
|
+
output.writeFieldEnd();
|
|
7820
|
+
}
|
|
5613
7821
|
output.writeFieldStop();
|
|
5614
7822
|
output.writeStructEnd();
|
|
5615
7823
|
return;
|
|
@@ -5830,6 +8038,12 @@ TGetResultSetMetadataReq.prototype.write = function(output) {
|
|
|
5830
8038
|
var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = function(args) {
|
|
5831
8039
|
this.status = null;
|
|
5832
8040
|
this.schema = null;
|
|
8041
|
+
this.resultFormat = null;
|
|
8042
|
+
this.lz4Compressed = null;
|
|
8043
|
+
this.arrowSchema = null;
|
|
8044
|
+
this.cacheLookupResult = null;
|
|
8045
|
+
this.uncompressedBytes = null;
|
|
8046
|
+
this.compressedBytes = null;
|
|
5833
8047
|
if (args) {
|
|
5834
8048
|
if (args.status !== undefined && args.status !== null) {
|
|
5835
8049
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -5839,6 +8053,24 @@ var TGetResultSetMetadataResp = module.exports.TGetResultSetMetadataResp = funct
|
|
|
5839
8053
|
if (args.schema !== undefined && args.schema !== null) {
|
|
5840
8054
|
this.schema = new ttypes.TTableSchema(args.schema);
|
|
5841
8055
|
}
|
|
8056
|
+
if (args.resultFormat !== undefined && args.resultFormat !== null) {
|
|
8057
|
+
this.resultFormat = args.resultFormat;
|
|
8058
|
+
}
|
|
8059
|
+
if (args.lz4Compressed !== undefined && args.lz4Compressed !== null) {
|
|
8060
|
+
this.lz4Compressed = args.lz4Compressed;
|
|
8061
|
+
}
|
|
8062
|
+
if (args.arrowSchema !== undefined && args.arrowSchema !== null) {
|
|
8063
|
+
this.arrowSchema = args.arrowSchema;
|
|
8064
|
+
}
|
|
8065
|
+
if (args.cacheLookupResult !== undefined && args.cacheLookupResult !== null) {
|
|
8066
|
+
this.cacheLookupResult = args.cacheLookupResult;
|
|
8067
|
+
}
|
|
8068
|
+
if (args.uncompressedBytes !== undefined && args.uncompressedBytes !== null) {
|
|
8069
|
+
this.uncompressedBytes = args.uncompressedBytes;
|
|
8070
|
+
}
|
|
8071
|
+
if (args.compressedBytes !== undefined && args.compressedBytes !== null) {
|
|
8072
|
+
this.compressedBytes = args.compressedBytes;
|
|
8073
|
+
}
|
|
5842
8074
|
}
|
|
5843
8075
|
};
|
|
5844
8076
|
TGetResultSetMetadataResp.prototype = {};
|
|
@@ -5868,6 +8100,48 @@ TGetResultSetMetadataResp.prototype.read = function(input) {
|
|
|
5868
8100
|
input.skip(ftype);
|
|
5869
8101
|
}
|
|
5870
8102
|
break;
|
|
8103
|
+
case 1281:
|
|
8104
|
+
if (ftype == Thrift.Type.I32) {
|
|
8105
|
+
this.resultFormat = input.readI32();
|
|
8106
|
+
} else {
|
|
8107
|
+
input.skip(ftype);
|
|
8108
|
+
}
|
|
8109
|
+
break;
|
|
8110
|
+
case 1282:
|
|
8111
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
8112
|
+
this.lz4Compressed = input.readBool();
|
|
8113
|
+
} else {
|
|
8114
|
+
input.skip(ftype);
|
|
8115
|
+
}
|
|
8116
|
+
break;
|
|
8117
|
+
case 1283:
|
|
8118
|
+
if (ftype == Thrift.Type.STRING) {
|
|
8119
|
+
this.arrowSchema = input.readBinary();
|
|
8120
|
+
} else {
|
|
8121
|
+
input.skip(ftype);
|
|
8122
|
+
}
|
|
8123
|
+
break;
|
|
8124
|
+
case 1284:
|
|
8125
|
+
if (ftype == Thrift.Type.I32) {
|
|
8126
|
+
this.cacheLookupResult = input.readI32();
|
|
8127
|
+
} else {
|
|
8128
|
+
input.skip(ftype);
|
|
8129
|
+
}
|
|
8130
|
+
break;
|
|
8131
|
+
case 1285:
|
|
8132
|
+
if (ftype == Thrift.Type.I64) {
|
|
8133
|
+
this.uncompressedBytes = input.readI64();
|
|
8134
|
+
} else {
|
|
8135
|
+
input.skip(ftype);
|
|
8136
|
+
}
|
|
8137
|
+
break;
|
|
8138
|
+
case 1286:
|
|
8139
|
+
if (ftype == Thrift.Type.I64) {
|
|
8140
|
+
this.compressedBytes = input.readI64();
|
|
8141
|
+
} else {
|
|
8142
|
+
input.skip(ftype);
|
|
8143
|
+
}
|
|
8144
|
+
break;
|
|
5871
8145
|
default:
|
|
5872
8146
|
input.skip(ftype);
|
|
5873
8147
|
}
|
|
@@ -5889,6 +8163,36 @@ TGetResultSetMetadataResp.prototype.write = function(output) {
|
|
|
5889
8163
|
this.schema.write(output);
|
|
5890
8164
|
output.writeFieldEnd();
|
|
5891
8165
|
}
|
|
8166
|
+
if (this.resultFormat !== null && this.resultFormat !== undefined) {
|
|
8167
|
+
output.writeFieldBegin('resultFormat', Thrift.Type.I32, 1281);
|
|
8168
|
+
output.writeI32(this.resultFormat);
|
|
8169
|
+
output.writeFieldEnd();
|
|
8170
|
+
}
|
|
8171
|
+
if (this.lz4Compressed !== null && this.lz4Compressed !== undefined) {
|
|
8172
|
+
output.writeFieldBegin('lz4Compressed', Thrift.Type.BOOL, 1282);
|
|
8173
|
+
output.writeBool(this.lz4Compressed);
|
|
8174
|
+
output.writeFieldEnd();
|
|
8175
|
+
}
|
|
8176
|
+
if (this.arrowSchema !== null && this.arrowSchema !== undefined) {
|
|
8177
|
+
output.writeFieldBegin('arrowSchema', Thrift.Type.STRING, 1283);
|
|
8178
|
+
output.writeBinary(this.arrowSchema);
|
|
8179
|
+
output.writeFieldEnd();
|
|
8180
|
+
}
|
|
8181
|
+
if (this.cacheLookupResult !== null && this.cacheLookupResult !== undefined) {
|
|
8182
|
+
output.writeFieldBegin('cacheLookupResult', Thrift.Type.I32, 1284);
|
|
8183
|
+
output.writeI32(this.cacheLookupResult);
|
|
8184
|
+
output.writeFieldEnd();
|
|
8185
|
+
}
|
|
8186
|
+
if (this.uncompressedBytes !== null && this.uncompressedBytes !== undefined) {
|
|
8187
|
+
output.writeFieldBegin('uncompressedBytes', Thrift.Type.I64, 1285);
|
|
8188
|
+
output.writeI64(this.uncompressedBytes);
|
|
8189
|
+
output.writeFieldEnd();
|
|
8190
|
+
}
|
|
8191
|
+
if (this.compressedBytes !== null && this.compressedBytes !== undefined) {
|
|
8192
|
+
output.writeFieldBegin('compressedBytes', Thrift.Type.I64, 1286);
|
|
8193
|
+
output.writeI64(this.compressedBytes);
|
|
8194
|
+
output.writeFieldEnd();
|
|
8195
|
+
}
|
|
5892
8196
|
output.writeFieldStop();
|
|
5893
8197
|
output.writeStructEnd();
|
|
5894
8198
|
return;
|
|
@@ -5899,6 +8203,9 @@ var TFetchResultsReq = module.exports.TFetchResultsReq = function(args) {
|
|
|
5899
8203
|
this.orientation = 0;
|
|
5900
8204
|
this.maxRows = null;
|
|
5901
8205
|
this.fetchType = 0;
|
|
8206
|
+
this.maxBytes = null;
|
|
8207
|
+
this.startRowOffset = null;
|
|
8208
|
+
this.includeResultSetMetadata = null;
|
|
5902
8209
|
if (args) {
|
|
5903
8210
|
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
5904
8211
|
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
@@ -5918,6 +8225,15 @@ var TFetchResultsReq = module.exports.TFetchResultsReq = function(args) {
|
|
|
5918
8225
|
if (args.fetchType !== undefined && args.fetchType !== null) {
|
|
5919
8226
|
this.fetchType = args.fetchType;
|
|
5920
8227
|
}
|
|
8228
|
+
if (args.maxBytes !== undefined && args.maxBytes !== null) {
|
|
8229
|
+
this.maxBytes = args.maxBytes;
|
|
8230
|
+
}
|
|
8231
|
+
if (args.startRowOffset !== undefined && args.startRowOffset !== null) {
|
|
8232
|
+
this.startRowOffset = args.startRowOffset;
|
|
8233
|
+
}
|
|
8234
|
+
if (args.includeResultSetMetadata !== undefined && args.includeResultSetMetadata !== null) {
|
|
8235
|
+
this.includeResultSetMetadata = args.includeResultSetMetadata;
|
|
8236
|
+
}
|
|
5921
8237
|
}
|
|
5922
8238
|
};
|
|
5923
8239
|
TFetchResultsReq.prototype = {};
|
|
@@ -5960,6 +8276,27 @@ TFetchResultsReq.prototype.read = function(input) {
|
|
|
5960
8276
|
input.skip(ftype);
|
|
5961
8277
|
}
|
|
5962
8278
|
break;
|
|
8279
|
+
case 1281:
|
|
8280
|
+
if (ftype == Thrift.Type.I64) {
|
|
8281
|
+
this.maxBytes = input.readI64();
|
|
8282
|
+
} else {
|
|
8283
|
+
input.skip(ftype);
|
|
8284
|
+
}
|
|
8285
|
+
break;
|
|
8286
|
+
case 1282:
|
|
8287
|
+
if (ftype == Thrift.Type.I64) {
|
|
8288
|
+
this.startRowOffset = input.readI64();
|
|
8289
|
+
} else {
|
|
8290
|
+
input.skip(ftype);
|
|
8291
|
+
}
|
|
8292
|
+
break;
|
|
8293
|
+
case 1283:
|
|
8294
|
+
if (ftype == Thrift.Type.BOOL) {
|
|
8295
|
+
this.includeResultSetMetadata = input.readBool();
|
|
8296
|
+
} else {
|
|
8297
|
+
input.skip(ftype);
|
|
8298
|
+
}
|
|
8299
|
+
break;
|
|
5963
8300
|
default:
|
|
5964
8301
|
input.skip(ftype);
|
|
5965
8302
|
}
|
|
@@ -5991,6 +8328,21 @@ TFetchResultsReq.prototype.write = function(output) {
|
|
|
5991
8328
|
output.writeI16(this.fetchType);
|
|
5992
8329
|
output.writeFieldEnd();
|
|
5993
8330
|
}
|
|
8331
|
+
if (this.maxBytes !== null && this.maxBytes !== undefined) {
|
|
8332
|
+
output.writeFieldBegin('maxBytes', Thrift.Type.I64, 1281);
|
|
8333
|
+
output.writeI64(this.maxBytes);
|
|
8334
|
+
output.writeFieldEnd();
|
|
8335
|
+
}
|
|
8336
|
+
if (this.startRowOffset !== null && this.startRowOffset !== undefined) {
|
|
8337
|
+
output.writeFieldBegin('startRowOffset', Thrift.Type.I64, 1282);
|
|
8338
|
+
output.writeI64(this.startRowOffset);
|
|
8339
|
+
output.writeFieldEnd();
|
|
8340
|
+
}
|
|
8341
|
+
if (this.includeResultSetMetadata !== null && this.includeResultSetMetadata !== undefined) {
|
|
8342
|
+
output.writeFieldBegin('includeResultSetMetadata', Thrift.Type.BOOL, 1283);
|
|
8343
|
+
output.writeBool(this.includeResultSetMetadata);
|
|
8344
|
+
output.writeFieldEnd();
|
|
8345
|
+
}
|
|
5994
8346
|
output.writeFieldStop();
|
|
5995
8347
|
output.writeStructEnd();
|
|
5996
8348
|
return;
|
|
@@ -6000,6 +8352,7 @@ var TFetchResultsResp = module.exports.TFetchResultsResp = function(args) {
|
|
|
6000
8352
|
this.status = null;
|
|
6001
8353
|
this.hasMoreRows = null;
|
|
6002
8354
|
this.results = null;
|
|
8355
|
+
this.resultSetMetadata = null;
|
|
6003
8356
|
if (args) {
|
|
6004
8357
|
if (args.status !== undefined && args.status !== null) {
|
|
6005
8358
|
this.status = new ttypes.TStatus(args.status);
|
|
@@ -6012,6 +8365,9 @@ var TFetchResultsResp = module.exports.TFetchResultsResp = function(args) {
|
|
|
6012
8365
|
if (args.results !== undefined && args.results !== null) {
|
|
6013
8366
|
this.results = new ttypes.TRowSet(args.results);
|
|
6014
8367
|
}
|
|
8368
|
+
if (args.resultSetMetadata !== undefined && args.resultSetMetadata !== null) {
|
|
8369
|
+
this.resultSetMetadata = new ttypes.TGetResultSetMetadataResp(args.resultSetMetadata);
|
|
8370
|
+
}
|
|
6015
8371
|
}
|
|
6016
8372
|
};
|
|
6017
8373
|
TFetchResultsResp.prototype = {};
|
|
@@ -6048,6 +8404,14 @@ TFetchResultsResp.prototype.read = function(input) {
|
|
|
6048
8404
|
input.skip(ftype);
|
|
6049
8405
|
}
|
|
6050
8406
|
break;
|
|
8407
|
+
case 1281:
|
|
8408
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
8409
|
+
this.resultSetMetadata = new ttypes.TGetResultSetMetadataResp();
|
|
8410
|
+
this.resultSetMetadata.read(input);
|
|
8411
|
+
} else {
|
|
8412
|
+
input.skip(ftype);
|
|
8413
|
+
}
|
|
8414
|
+
break;
|
|
6051
8415
|
default:
|
|
6052
8416
|
input.skip(ftype);
|
|
6053
8417
|
}
|
|
@@ -6074,6 +8438,11 @@ TFetchResultsResp.prototype.write = function(output) {
|
|
|
6074
8438
|
this.results.write(output);
|
|
6075
8439
|
output.writeFieldEnd();
|
|
6076
8440
|
}
|
|
8441
|
+
if (this.resultSetMetadata !== null && this.resultSetMetadata !== undefined) {
|
|
8442
|
+
output.writeFieldBegin('resultSetMetadata', Thrift.Type.STRUCT, 1281);
|
|
8443
|
+
this.resultSetMetadata.write(output);
|
|
8444
|
+
output.writeFieldEnd();
|
|
8445
|
+
}
|
|
6077
8446
|
output.writeFieldStop();
|
|
6078
8447
|
output.writeStructEnd();
|
|
6079
8448
|
return;
|
|
@@ -6083,6 +8452,7 @@ var TGetDelegationTokenReq = module.exports.TGetDelegationTokenReq = function(ar
|
|
|
6083
8452
|
this.sessionHandle = null;
|
|
6084
8453
|
this.owner = null;
|
|
6085
8454
|
this.renewer = null;
|
|
8455
|
+
this.sessionConf = null;
|
|
6086
8456
|
if (args) {
|
|
6087
8457
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
6088
8458
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -6099,6 +8469,9 @@ var TGetDelegationTokenReq = module.exports.TGetDelegationTokenReq = function(ar
|
|
|
6099
8469
|
} else {
|
|
6100
8470
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field renewer is unset!');
|
|
6101
8471
|
}
|
|
8472
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
8473
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
8474
|
+
}
|
|
6102
8475
|
}
|
|
6103
8476
|
};
|
|
6104
8477
|
TGetDelegationTokenReq.prototype = {};
|
|
@@ -6134,6 +8507,14 @@ TGetDelegationTokenReq.prototype.read = function(input) {
|
|
|
6134
8507
|
input.skip(ftype);
|
|
6135
8508
|
}
|
|
6136
8509
|
break;
|
|
8510
|
+
case 3329:
|
|
8511
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
8512
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
8513
|
+
this.sessionConf.read(input);
|
|
8514
|
+
} else {
|
|
8515
|
+
input.skip(ftype);
|
|
8516
|
+
}
|
|
8517
|
+
break;
|
|
6137
8518
|
default:
|
|
6138
8519
|
input.skip(ftype);
|
|
6139
8520
|
}
|
|
@@ -6160,6 +8541,11 @@ TGetDelegationTokenReq.prototype.write = function(output) {
|
|
|
6160
8541
|
output.writeString(this.renewer);
|
|
6161
8542
|
output.writeFieldEnd();
|
|
6162
8543
|
}
|
|
8544
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
8545
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3329);
|
|
8546
|
+
this.sessionConf.write(output);
|
|
8547
|
+
output.writeFieldEnd();
|
|
8548
|
+
}
|
|
6163
8549
|
output.writeFieldStop();
|
|
6164
8550
|
output.writeStructEnd();
|
|
6165
8551
|
return;
|
|
@@ -6234,6 +8620,7 @@ TGetDelegationTokenResp.prototype.write = function(output) {
|
|
|
6234
8620
|
var TCancelDelegationTokenReq = module.exports.TCancelDelegationTokenReq = function(args) {
|
|
6235
8621
|
this.sessionHandle = null;
|
|
6236
8622
|
this.delegationToken = null;
|
|
8623
|
+
this.sessionConf = null;
|
|
6237
8624
|
if (args) {
|
|
6238
8625
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
6239
8626
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -6245,6 +8632,9 @@ var TCancelDelegationTokenReq = module.exports.TCancelDelegationTokenReq = funct
|
|
|
6245
8632
|
} else {
|
|
6246
8633
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field delegationToken is unset!');
|
|
6247
8634
|
}
|
|
8635
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
8636
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
8637
|
+
}
|
|
6248
8638
|
}
|
|
6249
8639
|
};
|
|
6250
8640
|
TCancelDelegationTokenReq.prototype = {};
|
|
@@ -6273,6 +8663,14 @@ TCancelDelegationTokenReq.prototype.read = function(input) {
|
|
|
6273
8663
|
input.skip(ftype);
|
|
6274
8664
|
}
|
|
6275
8665
|
break;
|
|
8666
|
+
case 3329:
|
|
8667
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
8668
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
8669
|
+
this.sessionConf.read(input);
|
|
8670
|
+
} else {
|
|
8671
|
+
input.skip(ftype);
|
|
8672
|
+
}
|
|
8673
|
+
break;
|
|
6276
8674
|
default:
|
|
6277
8675
|
input.skip(ftype);
|
|
6278
8676
|
}
|
|
@@ -6294,6 +8692,11 @@ TCancelDelegationTokenReq.prototype.write = function(output) {
|
|
|
6294
8692
|
output.writeString(this.delegationToken);
|
|
6295
8693
|
output.writeFieldEnd();
|
|
6296
8694
|
}
|
|
8695
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
8696
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3329);
|
|
8697
|
+
this.sessionConf.write(output);
|
|
8698
|
+
output.writeFieldEnd();
|
|
8699
|
+
}
|
|
6297
8700
|
output.writeFieldStop();
|
|
6298
8701
|
output.writeStructEnd();
|
|
6299
8702
|
return;
|
|
@@ -6355,6 +8758,7 @@ TCancelDelegationTokenResp.prototype.write = function(output) {
|
|
|
6355
8758
|
var TRenewDelegationTokenReq = module.exports.TRenewDelegationTokenReq = function(args) {
|
|
6356
8759
|
this.sessionHandle = null;
|
|
6357
8760
|
this.delegationToken = null;
|
|
8761
|
+
this.sessionConf = null;
|
|
6358
8762
|
if (args) {
|
|
6359
8763
|
if (args.sessionHandle !== undefined && args.sessionHandle !== null) {
|
|
6360
8764
|
this.sessionHandle = new ttypes.TSessionHandle(args.sessionHandle);
|
|
@@ -6366,6 +8770,9 @@ var TRenewDelegationTokenReq = module.exports.TRenewDelegationTokenReq = functio
|
|
|
6366
8770
|
} else {
|
|
6367
8771
|
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field delegationToken is unset!');
|
|
6368
8772
|
}
|
|
8773
|
+
if (args.sessionConf !== undefined && args.sessionConf !== null) {
|
|
8774
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf(args.sessionConf);
|
|
8775
|
+
}
|
|
6369
8776
|
}
|
|
6370
8777
|
};
|
|
6371
8778
|
TRenewDelegationTokenReq.prototype = {};
|
|
@@ -6394,6 +8801,14 @@ TRenewDelegationTokenReq.prototype.read = function(input) {
|
|
|
6394
8801
|
input.skip(ftype);
|
|
6395
8802
|
}
|
|
6396
8803
|
break;
|
|
8804
|
+
case 3329:
|
|
8805
|
+
if (ftype == Thrift.Type.STRUCT) {
|
|
8806
|
+
this.sessionConf = new ttypes.TDBSqlSessionConf();
|
|
8807
|
+
this.sessionConf.read(input);
|
|
8808
|
+
} else {
|
|
8809
|
+
input.skip(ftype);
|
|
8810
|
+
}
|
|
8811
|
+
break;
|
|
6397
8812
|
default:
|
|
6398
8813
|
input.skip(ftype);
|
|
6399
8814
|
}
|
|
@@ -6415,6 +8830,11 @@ TRenewDelegationTokenReq.prototype.write = function(output) {
|
|
|
6415
8830
|
output.writeString(this.delegationToken);
|
|
6416
8831
|
output.writeFieldEnd();
|
|
6417
8832
|
}
|
|
8833
|
+
if (this.sessionConf !== null && this.sessionConf !== undefined) {
|
|
8834
|
+
output.writeFieldBegin('sessionConf', Thrift.Type.STRUCT, 3329);
|
|
8835
|
+
this.sessionConf.write(output);
|
|
8836
|
+
output.writeFieldEnd();
|
|
8837
|
+
}
|
|
6418
8838
|
output.writeFieldStop();
|
|
6419
8839
|
output.writeStructEnd();
|
|
6420
8840
|
return;
|
|
@@ -6527,12 +8947,12 @@ TProgressUpdateResp.prototype.read = function(input) {
|
|
|
6527
8947
|
case 1:
|
|
6528
8948
|
if (ftype == Thrift.Type.LIST) {
|
|
6529
8949
|
this.headerNames = [];
|
|
6530
|
-
var
|
|
6531
|
-
var
|
|
6532
|
-
for (var
|
|
6533
|
-
var
|
|
6534
|
-
|
|
6535
|
-
this.headerNames.push(
|
|
8950
|
+
var _rtmp3164 = input.readListBegin();
|
|
8951
|
+
var _size163 = _rtmp3164.size || 0;
|
|
8952
|
+
for (var _i165 = 0; _i165 < _size163; ++_i165) {
|
|
8953
|
+
var elem166 = null;
|
|
8954
|
+
elem166 = input.readString();
|
|
8955
|
+
this.headerNames.push(elem166);
|
|
6536
8956
|
}
|
|
6537
8957
|
input.readListEnd();
|
|
6538
8958
|
} else {
|
|
@@ -6542,20 +8962,20 @@ TProgressUpdateResp.prototype.read = function(input) {
|
|
|
6542
8962
|
case 2:
|
|
6543
8963
|
if (ftype == Thrift.Type.LIST) {
|
|
6544
8964
|
this.rows = [];
|
|
6545
|
-
var
|
|
6546
|
-
var
|
|
6547
|
-
for (var
|
|
6548
|
-
var
|
|
6549
|
-
|
|
6550
|
-
var
|
|
6551
|
-
var
|
|
6552
|
-
for (var
|
|
6553
|
-
var
|
|
6554
|
-
|
|
6555
|
-
|
|
8965
|
+
var _rtmp3168 = input.readListBegin();
|
|
8966
|
+
var _size167 = _rtmp3168.size || 0;
|
|
8967
|
+
for (var _i169 = 0; _i169 < _size167; ++_i169) {
|
|
8968
|
+
var elem170 = null;
|
|
8969
|
+
elem170 = [];
|
|
8970
|
+
var _rtmp3172 = input.readListBegin();
|
|
8971
|
+
var _size171 = _rtmp3172.size || 0;
|
|
8972
|
+
for (var _i173 = 0; _i173 < _size171; ++_i173) {
|
|
8973
|
+
var elem174 = null;
|
|
8974
|
+
elem174 = input.readString();
|
|
8975
|
+
elem170.push(elem174);
|
|
6556
8976
|
}
|
|
6557
8977
|
input.readListEnd();
|
|
6558
|
-
this.rows.push(
|
|
8978
|
+
this.rows.push(elem170);
|
|
6559
8979
|
}
|
|
6560
8980
|
input.readListEnd();
|
|
6561
8981
|
} else {
|
|
@@ -6604,10 +9024,10 @@ TProgressUpdateResp.prototype.write = function(output) {
|
|
|
6604
9024
|
if (this.headerNames !== null && this.headerNames !== undefined) {
|
|
6605
9025
|
output.writeFieldBegin('headerNames', Thrift.Type.LIST, 1);
|
|
6606
9026
|
output.writeListBegin(Thrift.Type.STRING, this.headerNames.length);
|
|
6607
|
-
for (var
|
|
6608
|
-
if (this.headerNames.hasOwnProperty(
|
|
6609
|
-
|
|
6610
|
-
output.writeString(
|
|
9027
|
+
for (var iter175 in this.headerNames) {
|
|
9028
|
+
if (this.headerNames.hasOwnProperty(iter175)) {
|
|
9029
|
+
iter175 = this.headerNames[iter175];
|
|
9030
|
+
output.writeString(iter175);
|
|
6611
9031
|
}
|
|
6612
9032
|
}
|
|
6613
9033
|
output.writeListEnd();
|
|
@@ -6616,14 +9036,14 @@ TProgressUpdateResp.prototype.write = function(output) {
|
|
|
6616
9036
|
if (this.rows !== null && this.rows !== undefined) {
|
|
6617
9037
|
output.writeFieldBegin('rows', Thrift.Type.LIST, 2);
|
|
6618
9038
|
output.writeListBegin(Thrift.Type.LIST, this.rows.length);
|
|
6619
|
-
for (var
|
|
6620
|
-
if (this.rows.hasOwnProperty(
|
|
6621
|
-
|
|
6622
|
-
output.writeListBegin(Thrift.Type.STRING,
|
|
6623
|
-
for (var
|
|
6624
|
-
if (
|
|
6625
|
-
|
|
6626
|
-
output.writeString(
|
|
9039
|
+
for (var iter176 in this.rows) {
|
|
9040
|
+
if (this.rows.hasOwnProperty(iter176)) {
|
|
9041
|
+
iter176 = this.rows[iter176];
|
|
9042
|
+
output.writeListBegin(Thrift.Type.STRING, iter176.length);
|
|
9043
|
+
for (var iter177 in iter176) {
|
|
9044
|
+
if (iter176.hasOwnProperty(iter177)) {
|
|
9045
|
+
iter177 = iter176[iter177];
|
|
9046
|
+
output.writeString(iter177);
|
|
6627
9047
|
}
|
|
6628
9048
|
}
|
|
6629
9049
|
output.writeListEnd();
|
|
@@ -6657,112 +9077,7 @@ TProgressUpdateResp.prototype.write = function(output) {
|
|
|
6657
9077
|
return;
|
|
6658
9078
|
};
|
|
6659
9079
|
|
|
6660
|
-
|
|
6661
|
-
this.operationHandle = null;
|
|
6662
|
-
if (args) {
|
|
6663
|
-
if (args.operationHandle !== undefined && args.operationHandle !== null) {
|
|
6664
|
-
this.operationHandle = new ttypes.TOperationHandle(args.operationHandle);
|
|
6665
|
-
} else {
|
|
6666
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field operationHandle is unset!');
|
|
6667
|
-
}
|
|
6668
|
-
}
|
|
6669
|
-
};
|
|
6670
|
-
TGetQueryIdReq.prototype = {};
|
|
6671
|
-
TGetQueryIdReq.prototype.read = function(input) {
|
|
6672
|
-
input.readStructBegin();
|
|
6673
|
-
while (true) {
|
|
6674
|
-
var ret = input.readFieldBegin();
|
|
6675
|
-
var ftype = ret.ftype;
|
|
6676
|
-
var fid = ret.fid;
|
|
6677
|
-
if (ftype == Thrift.Type.STOP) {
|
|
6678
|
-
break;
|
|
6679
|
-
}
|
|
6680
|
-
switch (fid) {
|
|
6681
|
-
case 1:
|
|
6682
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
6683
|
-
this.operationHandle = new ttypes.TOperationHandle();
|
|
6684
|
-
this.operationHandle.read(input);
|
|
6685
|
-
} else {
|
|
6686
|
-
input.skip(ftype);
|
|
6687
|
-
}
|
|
6688
|
-
break;
|
|
6689
|
-
case 0:
|
|
6690
|
-
input.skip(ftype);
|
|
6691
|
-
break;
|
|
6692
|
-
default:
|
|
6693
|
-
input.skip(ftype);
|
|
6694
|
-
}
|
|
6695
|
-
input.readFieldEnd();
|
|
6696
|
-
}
|
|
6697
|
-
input.readStructEnd();
|
|
6698
|
-
return;
|
|
6699
|
-
};
|
|
6700
|
-
|
|
6701
|
-
TGetQueryIdReq.prototype.write = function(output) {
|
|
6702
|
-
output.writeStructBegin('TGetQueryIdReq');
|
|
6703
|
-
if (this.operationHandle !== null && this.operationHandle !== undefined) {
|
|
6704
|
-
output.writeFieldBegin('operationHandle', Thrift.Type.STRUCT, 1);
|
|
6705
|
-
this.operationHandle.write(output);
|
|
6706
|
-
output.writeFieldEnd();
|
|
6707
|
-
}
|
|
6708
|
-
output.writeFieldStop();
|
|
6709
|
-
output.writeStructEnd();
|
|
6710
|
-
return;
|
|
6711
|
-
};
|
|
6712
|
-
|
|
6713
|
-
var TGetQueryIdResp = module.exports.TGetQueryIdResp = function(args) {
|
|
6714
|
-
this.queryId = null;
|
|
6715
|
-
if (args) {
|
|
6716
|
-
if (args.queryId !== undefined && args.queryId !== null) {
|
|
6717
|
-
this.queryId = args.queryId;
|
|
6718
|
-
} else {
|
|
6719
|
-
throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field queryId is unset!');
|
|
6720
|
-
}
|
|
6721
|
-
}
|
|
6722
|
-
};
|
|
6723
|
-
TGetQueryIdResp.prototype = {};
|
|
6724
|
-
TGetQueryIdResp.prototype.read = function(input) {
|
|
6725
|
-
input.readStructBegin();
|
|
6726
|
-
while (true) {
|
|
6727
|
-
var ret = input.readFieldBegin();
|
|
6728
|
-
var ftype = ret.ftype;
|
|
6729
|
-
var fid = ret.fid;
|
|
6730
|
-
if (ftype == Thrift.Type.STOP) {
|
|
6731
|
-
break;
|
|
6732
|
-
}
|
|
6733
|
-
switch (fid) {
|
|
6734
|
-
case 1:
|
|
6735
|
-
if (ftype == Thrift.Type.STRING) {
|
|
6736
|
-
this.queryId = input.readString();
|
|
6737
|
-
} else {
|
|
6738
|
-
input.skip(ftype);
|
|
6739
|
-
}
|
|
6740
|
-
break;
|
|
6741
|
-
case 0:
|
|
6742
|
-
input.skip(ftype);
|
|
6743
|
-
break;
|
|
6744
|
-
default:
|
|
6745
|
-
input.skip(ftype);
|
|
6746
|
-
}
|
|
6747
|
-
input.readFieldEnd();
|
|
6748
|
-
}
|
|
6749
|
-
input.readStructEnd();
|
|
6750
|
-
return;
|
|
6751
|
-
};
|
|
6752
|
-
|
|
6753
|
-
TGetQueryIdResp.prototype.write = function(output) {
|
|
6754
|
-
output.writeStructBegin('TGetQueryIdResp');
|
|
6755
|
-
if (this.queryId !== null && this.queryId !== undefined) {
|
|
6756
|
-
output.writeFieldBegin('queryId', Thrift.Type.STRING, 1);
|
|
6757
|
-
output.writeString(this.queryId);
|
|
6758
|
-
output.writeFieldEnd();
|
|
6759
|
-
}
|
|
6760
|
-
output.writeFieldStop();
|
|
6761
|
-
output.writeStructEnd();
|
|
6762
|
-
return;
|
|
6763
|
-
};
|
|
6764
|
-
|
|
6765
|
-
ttypes.PRIMITIVE_TYPES = [0,1,2,3,4,5,6,7,8,9,15,16,17,18,19,20,21,22];
|
|
9080
|
+
ttypes.PRIMITIVE_TYPES = [0,1,2,3,4,5,6,7,8,9,15,16,17,18,19,20,21];
|
|
6766
9081
|
ttypes.COMPLEX_TYPES = [10,11,12,13,14];
|
|
6767
9082
|
ttypes.COLLECTION_TYPES = [10,11];
|
|
6768
9083
|
ttypes.TYPE_NAMES = {
|
|
@@ -6783,7 +9098,6 @@ ttypes.TYPE_NAMES = {
|
|
|
6783
9098
|
2 : 'SMALLINT',
|
|
6784
9099
|
7 : 'STRING',
|
|
6785
9100
|
12 : 'STRUCT',
|
|
6786
|
-
22 : 'TIMESTAMP WITH LOCAL TIME ZONE',
|
|
6787
9101
|
8 : 'TIMESTAMP',
|
|
6788
9102
|
1 : 'TINYINT',
|
|
6789
9103
|
13 : 'UNIONTYPE',
|