iginx-pyclient 0.8.0__tar.gz → 0.9.0__tar.gz
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.
- {iginx-pyclient-0.8.0/iginx_pyclient.egg-info → iginx_pyclient-0.9.0}/PKG-INFO +12 -2
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/session.py +3 -3
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/thrift/rpc/IService.py +2 -2
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/thrift/rpc/ttypes.py +72 -77
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0/iginx_pyclient.egg-info}/PKG-INFO +12 -2
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/LICENSE +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/MANIFEST.in +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/README.md +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/__init__.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/cluster_info.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/dataset.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/thrift/__init__.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/thrift/rpc/__init__.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/thrift/rpc/constants.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/time_series.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/utils/__init__.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/utils/bitmap.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient/utils/byte_utils.py +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient.egg-info/SOURCES.txt +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient.egg-info/dependency_links.txt +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient.egg-info/requires.txt +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/iginx_pyclient.egg-info/top_level.txt +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/setup.cfg +0 -0
- {iginx-pyclient-0.8.0 → iginx_pyclient-0.9.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: iginx-pyclient
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: IGinX-PyClient
|
|
5
5
|
Author: THU IGinX
|
|
6
6
|
Author-email: TSIginX@gmail.com
|
|
@@ -8,6 +8,16 @@ License: Apache License 2.0
|
|
|
8
8
|
Requires-Python: >=3.8
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE
|
|
11
|
+
Requires-Dist: pandas>=2.0.3
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: author-email
|
|
14
|
+
Dynamic: description
|
|
15
|
+
Dynamic: description-content-type
|
|
16
|
+
Dynamic: license
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
Dynamic: requires-dist
|
|
19
|
+
Dynamic: requires-python
|
|
20
|
+
Dynamic: summary
|
|
11
21
|
|
|
12
22
|
# IGinX-PyClient
|
|
13
23
|
|
|
@@ -531,7 +531,7 @@ class Session(object):
|
|
|
531
531
|
raise ValueError(f"The file name must end with [.csv], {path} doesn't satisfy the requirement!")
|
|
532
532
|
|
|
533
533
|
chunk_size = 1024 * 1024
|
|
534
|
-
filename =
|
|
534
|
+
filename = "{}-{}.csv".format(self.__session_id, time.time() * 1000)
|
|
535
535
|
with open(file, 'rb') as f:
|
|
536
536
|
offset = 0
|
|
537
537
|
while chunk := f.read(chunk_size):
|
|
@@ -542,8 +542,8 @@ class Session(object):
|
|
|
542
542
|
chunkSize=len(chunk)
|
|
543
543
|
)
|
|
544
544
|
req = UploadFileReq(sessionId=self.__session_id, fileChunk=chunk_data)
|
|
545
|
-
|
|
546
|
-
Session.verify_status(
|
|
545
|
+
status = self.__client.uploadFileChunk(req)
|
|
546
|
+
Session.verify_status(status)
|
|
547
547
|
offset += len(chunk)
|
|
548
548
|
|
|
549
549
|
req = LoadCSVReq(sessionId=self.__session_id, statement=statement, csvFileName=filename)
|
|
@@ -7786,7 +7786,7 @@ class uploadFileChunk_result(object):
|
|
|
7786
7786
|
break
|
|
7787
7787
|
if fid == 0:
|
|
7788
7788
|
if ftype == TType.STRUCT:
|
|
7789
|
-
self.success =
|
|
7789
|
+
self.success = Status()
|
|
7790
7790
|
self.success.read(iprot)
|
|
7791
7791
|
else:
|
|
7792
7792
|
iprot.skip(ftype)
|
|
@@ -7822,7 +7822,7 @@ class uploadFileChunk_result(object):
|
|
|
7822
7822
|
return not (self == other)
|
|
7823
7823
|
all_structs.append(uploadFileChunk_result)
|
|
7824
7824
|
uploadFileChunk_result.thrift_spec = (
|
|
7825
|
-
(0, TType.STRUCT, 'success', [
|
|
7825
|
+
(0, TType.STRUCT, 'success', [Status, None], None, ), # 0
|
|
7826
7826
|
)
|
|
7827
7827
|
fix_spec(all_structs)
|
|
7828
7828
|
del all_structs
|
|
@@ -71,6 +71,8 @@ class StorageEngineType(object):
|
|
|
71
71
|
relational = 4
|
|
72
72
|
mongodb = 5
|
|
73
73
|
redis = 6
|
|
74
|
+
vectordb = 7
|
|
75
|
+
neo4j = 8
|
|
74
76
|
|
|
75
77
|
_VALUES_TO_NAMES = {
|
|
76
78
|
0: "unknown",
|
|
@@ -80,6 +82,8 @@ class StorageEngineType(object):
|
|
|
80
82
|
4: "relational",
|
|
81
83
|
5: "mongodb",
|
|
82
84
|
6: "redis",
|
|
85
|
+
7: "vectordb",
|
|
86
|
+
8: "neo4j",
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
_NAMES_TO_VALUES = {
|
|
@@ -90,6 +94,8 @@ class StorageEngineType(object):
|
|
|
90
94
|
"relational": 4,
|
|
91
95
|
"mongodb": 5,
|
|
92
96
|
"redis": 6,
|
|
97
|
+
"vectordb": 7,
|
|
98
|
+
"neo4j": 8,
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
|
|
@@ -295,16 +301,16 @@ class ExportType(object):
|
|
|
295
301
|
|
|
296
302
|
|
|
297
303
|
class TaskType(object):
|
|
298
|
-
|
|
304
|
+
SQL = 0
|
|
299
305
|
PYTHON = 1
|
|
300
306
|
|
|
301
307
|
_VALUES_TO_NAMES = {
|
|
302
|
-
0: "
|
|
308
|
+
0: "SQL",
|
|
303
309
|
1: "PYTHON",
|
|
304
310
|
}
|
|
305
311
|
|
|
306
312
|
_NAMES_TO_VALUES = {
|
|
307
|
-
"
|
|
313
|
+
"SQL": 0,
|
|
308
314
|
"PYTHON": 1,
|
|
309
315
|
}
|
|
310
316
|
|
|
@@ -5050,14 +5056,16 @@ class IginxInfo(object):
|
|
|
5050
5056
|
- id
|
|
5051
5057
|
- ip
|
|
5052
5058
|
- port
|
|
5059
|
+
- connectable
|
|
5053
5060
|
|
|
5054
5061
|
"""
|
|
5055
5062
|
|
|
5056
5063
|
|
|
5057
|
-
def __init__(self, id=None, ip=None, port=None,):
|
|
5064
|
+
def __init__(self, id=None, ip=None, port=None, connectable=None,):
|
|
5058
5065
|
self.id = id
|
|
5059
5066
|
self.ip = ip
|
|
5060
5067
|
self.port = port
|
|
5068
|
+
self.connectable = connectable
|
|
5061
5069
|
|
|
5062
5070
|
def read(self, iprot):
|
|
5063
5071
|
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
@@ -5083,6 +5091,11 @@ class IginxInfo(object):
|
|
|
5083
5091
|
self.port = iprot.readI32()
|
|
5084
5092
|
else:
|
|
5085
5093
|
iprot.skip(ftype)
|
|
5094
|
+
elif fid == 4:
|
|
5095
|
+
if ftype == TType.STRING:
|
|
5096
|
+
self.connectable = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
|
|
5097
|
+
else:
|
|
5098
|
+
iprot.skip(ftype)
|
|
5086
5099
|
else:
|
|
5087
5100
|
iprot.skip(ftype)
|
|
5088
5101
|
iprot.readFieldEnd()
|
|
@@ -5105,6 +5118,10 @@ class IginxInfo(object):
|
|
|
5105
5118
|
oprot.writeFieldBegin('port', TType.I32, 3)
|
|
5106
5119
|
oprot.writeI32(self.port)
|
|
5107
5120
|
oprot.writeFieldEnd()
|
|
5121
|
+
if self.connectable is not None:
|
|
5122
|
+
oprot.writeFieldBegin('connectable', TType.STRING, 4)
|
|
5123
|
+
oprot.writeString(self.connectable.encode('utf-8') if sys.version_info[0] == 2 else self.connectable)
|
|
5124
|
+
oprot.writeFieldEnd()
|
|
5108
5125
|
oprot.writeFieldStop()
|
|
5109
5126
|
oprot.writeStructEnd()
|
|
5110
5127
|
|
|
@@ -5115,6 +5132,8 @@ class IginxInfo(object):
|
|
|
5115
5132
|
raise TProtocolException(message='Required field ip is unset!')
|
|
5116
5133
|
if self.port is None:
|
|
5117
5134
|
raise TProtocolException(message='Required field port is unset!')
|
|
5135
|
+
if self.connectable is None:
|
|
5136
|
+
raise TProtocolException(message='Required field connectable is unset!')
|
|
5118
5137
|
return
|
|
5119
5138
|
|
|
5120
5139
|
def __repr__(self):
|
|
@@ -5136,17 +5155,19 @@ class StorageEngineInfo(object):
|
|
|
5136
5155
|
- ip
|
|
5137
5156
|
- port
|
|
5138
5157
|
- type
|
|
5158
|
+
- connectable
|
|
5139
5159
|
- schemaPrefix
|
|
5140
5160
|
- dataPrefix
|
|
5141
5161
|
|
|
5142
5162
|
"""
|
|
5143
5163
|
|
|
5144
5164
|
|
|
5145
|
-
def __init__(self, id=None, ip=None, port=None, type=None, schemaPrefix=None, dataPrefix=None,):
|
|
5165
|
+
def __init__(self, id=None, ip=None, port=None, type=None, connectable=None, schemaPrefix=None, dataPrefix=None,):
|
|
5146
5166
|
self.id = id
|
|
5147
5167
|
self.ip = ip
|
|
5148
5168
|
self.port = port
|
|
5149
5169
|
self.type = type
|
|
5170
|
+
self.connectable = connectable
|
|
5150
5171
|
self.schemaPrefix = schemaPrefix
|
|
5151
5172
|
self.dataPrefix = dataPrefix
|
|
5152
5173
|
|
|
@@ -5181,10 +5202,15 @@ class StorageEngineInfo(object):
|
|
|
5181
5202
|
iprot.skip(ftype)
|
|
5182
5203
|
elif fid == 5:
|
|
5183
5204
|
if ftype == TType.STRING:
|
|
5184
|
-
self.
|
|
5205
|
+
self.connectable = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
|
|
5185
5206
|
else:
|
|
5186
5207
|
iprot.skip(ftype)
|
|
5187
5208
|
elif fid == 6:
|
|
5209
|
+
if ftype == TType.STRING:
|
|
5210
|
+
self.schemaPrefix = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
|
|
5211
|
+
else:
|
|
5212
|
+
iprot.skip(ftype)
|
|
5213
|
+
elif fid == 7:
|
|
5188
5214
|
if ftype == TType.STRING:
|
|
5189
5215
|
self.dataPrefix = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
|
|
5190
5216
|
else:
|
|
@@ -5215,12 +5241,16 @@ class StorageEngineInfo(object):
|
|
|
5215
5241
|
oprot.writeFieldBegin('type', TType.I32, 4)
|
|
5216
5242
|
oprot.writeI32(self.type)
|
|
5217
5243
|
oprot.writeFieldEnd()
|
|
5244
|
+
if self.connectable is not None:
|
|
5245
|
+
oprot.writeFieldBegin('connectable', TType.STRING, 5)
|
|
5246
|
+
oprot.writeString(self.connectable.encode('utf-8') if sys.version_info[0] == 2 else self.connectable)
|
|
5247
|
+
oprot.writeFieldEnd()
|
|
5218
5248
|
if self.schemaPrefix is not None:
|
|
5219
|
-
oprot.writeFieldBegin('schemaPrefix', TType.STRING,
|
|
5249
|
+
oprot.writeFieldBegin('schemaPrefix', TType.STRING, 6)
|
|
5220
5250
|
oprot.writeString(self.schemaPrefix.encode('utf-8') if sys.version_info[0] == 2 else self.schemaPrefix)
|
|
5221
5251
|
oprot.writeFieldEnd()
|
|
5222
5252
|
if self.dataPrefix is not None:
|
|
5223
|
-
oprot.writeFieldBegin('dataPrefix', TType.STRING,
|
|
5253
|
+
oprot.writeFieldBegin('dataPrefix', TType.STRING, 7)
|
|
5224
5254
|
oprot.writeString(self.dataPrefix.encode('utf-8') if sys.version_info[0] == 2 else self.dataPrefix)
|
|
5225
5255
|
oprot.writeFieldEnd()
|
|
5226
5256
|
oprot.writeFieldStop()
|
|
@@ -5235,6 +5265,8 @@ class StorageEngineInfo(object):
|
|
|
5235
5265
|
raise TProtocolException(message='Required field port is unset!')
|
|
5236
5266
|
if self.type is None:
|
|
5237
5267
|
raise TProtocolException(message='Required field type is unset!')
|
|
5268
|
+
if self.connectable is None:
|
|
5269
|
+
raise TProtocolException(message='Required field connectable is unset!')
|
|
5238
5270
|
return
|
|
5239
5271
|
|
|
5240
5272
|
def __repr__(self):
|
|
@@ -6664,16 +6696,18 @@ class TaskInfo(object):
|
|
|
6664
6696
|
- timeout
|
|
6665
6697
|
- sqlList
|
|
6666
6698
|
- pyTaskName
|
|
6699
|
+
- outputPrefix
|
|
6667
6700
|
|
|
6668
6701
|
"""
|
|
6669
6702
|
|
|
6670
6703
|
|
|
6671
|
-
def __init__(self, taskType=None, dataFlowType=None, timeout=None, sqlList=None, pyTaskName=None,):
|
|
6704
|
+
def __init__(self, taskType=None, dataFlowType=None, timeout=None, sqlList=None, pyTaskName=None, outputPrefix=None,):
|
|
6672
6705
|
self.taskType = taskType
|
|
6673
6706
|
self.dataFlowType = dataFlowType
|
|
6674
6707
|
self.timeout = timeout
|
|
6675
6708
|
self.sqlList = sqlList
|
|
6676
6709
|
self.pyTaskName = pyTaskName
|
|
6710
|
+
self.outputPrefix = outputPrefix
|
|
6677
6711
|
|
|
6678
6712
|
def read(self, iprot):
|
|
6679
6713
|
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
@@ -6714,6 +6748,11 @@ class TaskInfo(object):
|
|
|
6714
6748
|
self.pyTaskName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
|
|
6715
6749
|
else:
|
|
6716
6750
|
iprot.skip(ftype)
|
|
6751
|
+
elif fid == 6:
|
|
6752
|
+
if ftype == TType.STRING:
|
|
6753
|
+
self.outputPrefix = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
|
|
6754
|
+
else:
|
|
6755
|
+
iprot.skip(ftype)
|
|
6717
6756
|
else:
|
|
6718
6757
|
iprot.skip(ftype)
|
|
6719
6758
|
iprot.readFieldEnd()
|
|
@@ -6747,6 +6786,10 @@ class TaskInfo(object):
|
|
|
6747
6786
|
oprot.writeFieldBegin('pyTaskName', TType.STRING, 5)
|
|
6748
6787
|
oprot.writeString(self.pyTaskName.encode('utf-8') if sys.version_info[0] == 2 else self.pyTaskName)
|
|
6749
6788
|
oprot.writeFieldEnd()
|
|
6789
|
+
if self.outputPrefix is not None:
|
|
6790
|
+
oprot.writeFieldBegin('outputPrefix', TType.STRING, 6)
|
|
6791
|
+
oprot.writeString(self.outputPrefix.encode('utf-8') if sys.version_info[0] == 2 else self.outputPrefix)
|
|
6792
|
+
oprot.writeFieldEnd()
|
|
6750
6793
|
oprot.writeFieldStop()
|
|
6751
6794
|
oprot.writeStructEnd()
|
|
6752
6795
|
|
|
@@ -9026,13 +9069,15 @@ class RemoveStorageEngineReq(object):
|
|
|
9026
9069
|
Attributes:
|
|
9027
9070
|
- sessionId
|
|
9028
9071
|
- removedStorageEngineInfoList
|
|
9072
|
+
- forAllIginx
|
|
9029
9073
|
|
|
9030
9074
|
"""
|
|
9031
9075
|
|
|
9032
9076
|
|
|
9033
|
-
def __init__(self, sessionId=None, removedStorageEngineInfoList=None,):
|
|
9077
|
+
def __init__(self, sessionId=None, removedStorageEngineInfoList=None, forAllIginx=None,):
|
|
9034
9078
|
self.sessionId = sessionId
|
|
9035
9079
|
self.removedStorageEngineInfoList = removedStorageEngineInfoList
|
|
9080
|
+
self.forAllIginx = forAllIginx
|
|
9036
9081
|
|
|
9037
9082
|
def read(self, iprot):
|
|
9038
9083
|
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
@@ -9059,6 +9104,11 @@ class RemoveStorageEngineReq(object):
|
|
|
9059
9104
|
iprot.readListEnd()
|
|
9060
9105
|
else:
|
|
9061
9106
|
iprot.skip(ftype)
|
|
9107
|
+
elif fid == 3:
|
|
9108
|
+
if ftype == TType.BOOL:
|
|
9109
|
+
self.forAllIginx = iprot.readBool()
|
|
9110
|
+
else:
|
|
9111
|
+
iprot.skip(ftype)
|
|
9062
9112
|
else:
|
|
9063
9113
|
iprot.skip(ftype)
|
|
9064
9114
|
iprot.readFieldEnd()
|
|
@@ -9080,6 +9130,10 @@ class RemoveStorageEngineReq(object):
|
|
|
9080
9130
|
iter906.write(oprot)
|
|
9081
9131
|
oprot.writeListEnd()
|
|
9082
9132
|
oprot.writeFieldEnd()
|
|
9133
|
+
if self.forAllIginx is not None:
|
|
9134
|
+
oprot.writeFieldBegin('forAllIginx', TType.BOOL, 3)
|
|
9135
|
+
oprot.writeBool(self.forAllIginx)
|
|
9136
|
+
oprot.writeFieldEnd()
|
|
9083
9137
|
oprot.writeFieldStop()
|
|
9084
9138
|
oprot.writeStructEnd()
|
|
9085
9139
|
|
|
@@ -9088,6 +9142,8 @@ class RemoveStorageEngineReq(object):
|
|
|
9088
9142
|
raise TProtocolException(message='Required field sessionId is unset!')
|
|
9089
9143
|
if self.removedStorageEngineInfoList is None:
|
|
9090
9144
|
raise TProtocolException(message='Required field removedStorageEngineInfoList is unset!')
|
|
9145
|
+
if self.forAllIginx is None:
|
|
9146
|
+
raise TProtocolException(message='Required field forAllIginx is unset!')
|
|
9091
9147
|
return
|
|
9092
9148
|
|
|
9093
9149
|
def __repr__(self):
|
|
@@ -9635,66 +9691,6 @@ class UploadFileReq(object):
|
|
|
9635
9691
|
|
|
9636
9692
|
def __ne__(self, other):
|
|
9637
9693
|
return not (self == other)
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
class UploadFileResp(object):
|
|
9641
|
-
"""
|
|
9642
|
-
Attributes:
|
|
9643
|
-
- status
|
|
9644
|
-
|
|
9645
|
-
"""
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
def __init__(self, status=None,):
|
|
9649
|
-
self.status = status
|
|
9650
|
-
|
|
9651
|
-
def read(self, iprot):
|
|
9652
|
-
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
|
|
9653
|
-
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
|
|
9654
|
-
return
|
|
9655
|
-
iprot.readStructBegin()
|
|
9656
|
-
while True:
|
|
9657
|
-
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
9658
|
-
if ftype == TType.STOP:
|
|
9659
|
-
break
|
|
9660
|
-
if fid == 1:
|
|
9661
|
-
if ftype == TType.STRUCT:
|
|
9662
|
-
self.status = Status()
|
|
9663
|
-
self.status.read(iprot)
|
|
9664
|
-
else:
|
|
9665
|
-
iprot.skip(ftype)
|
|
9666
|
-
else:
|
|
9667
|
-
iprot.skip(ftype)
|
|
9668
|
-
iprot.readFieldEnd()
|
|
9669
|
-
iprot.readStructEnd()
|
|
9670
|
-
|
|
9671
|
-
def write(self, oprot):
|
|
9672
|
-
if oprot._fast_encode is not None and self.thrift_spec is not None:
|
|
9673
|
-
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
|
|
9674
|
-
return
|
|
9675
|
-
oprot.writeStructBegin('UploadFileResp')
|
|
9676
|
-
if self.status is not None:
|
|
9677
|
-
oprot.writeFieldBegin('status', TType.STRUCT, 1)
|
|
9678
|
-
self.status.write(oprot)
|
|
9679
|
-
oprot.writeFieldEnd()
|
|
9680
|
-
oprot.writeFieldStop()
|
|
9681
|
-
oprot.writeStructEnd()
|
|
9682
|
-
|
|
9683
|
-
def validate(self):
|
|
9684
|
-
if self.status is None:
|
|
9685
|
-
raise TProtocolException(message='Required field status is unset!')
|
|
9686
|
-
return
|
|
9687
|
-
|
|
9688
|
-
def __repr__(self):
|
|
9689
|
-
L = ['%s=%r' % (key, value)
|
|
9690
|
-
for key, value in self.__dict__.items()]
|
|
9691
|
-
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
9692
|
-
|
|
9693
|
-
def __eq__(self, other):
|
|
9694
|
-
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
9695
|
-
|
|
9696
|
-
def __ne__(self, other):
|
|
9697
|
-
return not (self == other)
|
|
9698
9694
|
all_structs.append(Status)
|
|
9699
9695
|
Status.thrift_spec = (
|
|
9700
9696
|
None, # 0
|
|
@@ -10018,6 +10014,7 @@ IginxInfo.thrift_spec = (
|
|
|
10018
10014
|
(1, TType.I64, 'id', None, None, ), # 1
|
|
10019
10015
|
(2, TType.STRING, 'ip', 'UTF8', None, ), # 2
|
|
10020
10016
|
(3, TType.I32, 'port', None, None, ), # 3
|
|
10017
|
+
(4, TType.STRING, 'connectable', 'UTF8', None, ), # 4
|
|
10021
10018
|
)
|
|
10022
10019
|
all_structs.append(StorageEngineInfo)
|
|
10023
10020
|
StorageEngineInfo.thrift_spec = (
|
|
@@ -10026,8 +10023,9 @@ StorageEngineInfo.thrift_spec = (
|
|
|
10026
10023
|
(2, TType.STRING, 'ip', 'UTF8', None, ), # 2
|
|
10027
10024
|
(3, TType.I32, 'port', None, None, ), # 3
|
|
10028
10025
|
(4, TType.I32, 'type', None, None, ), # 4
|
|
10029
|
-
(5, TType.STRING, '
|
|
10030
|
-
(6, TType.STRING, '
|
|
10026
|
+
(5, TType.STRING, 'connectable', 'UTF8', None, ), # 5
|
|
10027
|
+
(6, TType.STRING, 'schemaPrefix', 'UTF8', None, ), # 6
|
|
10028
|
+
(7, TType.STRING, 'dataPrefix', 'UTF8', None, ), # 7
|
|
10031
10029
|
)
|
|
10032
10030
|
all_structs.append(MetaStorageInfo)
|
|
10033
10031
|
MetaStorageInfo.thrift_spec = (
|
|
@@ -10148,6 +10146,7 @@ TaskInfo.thrift_spec = (
|
|
|
10148
10146
|
(3, TType.I64, 'timeout', None, None, ), # 3
|
|
10149
10147
|
(4, TType.LIST, 'sqlList', (TType.STRING, 'UTF8', False), None, ), # 4
|
|
10150
10148
|
(5, TType.STRING, 'pyTaskName', 'UTF8', None, ), # 5
|
|
10149
|
+
(6, TType.STRING, 'outputPrefix', 'UTF8', None, ), # 6
|
|
10151
10150
|
)
|
|
10152
10151
|
all_structs.append(CommitTransformJobReq)
|
|
10153
10152
|
CommitTransformJobReq.thrift_spec = (
|
|
@@ -10331,6 +10330,7 @@ RemoveStorageEngineReq.thrift_spec = (
|
|
|
10331
10330
|
None, # 0
|
|
10332
10331
|
(1, TType.I64, 'sessionId', None, None, ), # 1
|
|
10333
10332
|
(2, TType.LIST, 'removedStorageEngineInfoList', (TType.STRUCT, [RemovedStorageEngineInfo, None], False), None, ), # 2
|
|
10333
|
+
(3, TType.BOOL, 'forAllIginx', None, None, ), # 3
|
|
10334
10334
|
)
|
|
10335
10335
|
all_structs.append(ShowSessionIDReq)
|
|
10336
10336
|
ShowSessionIDReq.thrift_spec = (
|
|
@@ -10374,10 +10374,5 @@ UploadFileReq.thrift_spec = (
|
|
|
10374
10374
|
(1, TType.I64, 'sessionId', None, None, ), # 1
|
|
10375
10375
|
(2, TType.STRUCT, 'fileChunk', [FileChunk, None], None, ), # 2
|
|
10376
10376
|
)
|
|
10377
|
-
all_structs.append(UploadFileResp)
|
|
10378
|
-
UploadFileResp.thrift_spec = (
|
|
10379
|
-
None, # 0
|
|
10380
|
-
(1, TType.STRUCT, 'status', [Status, None], None, ), # 1
|
|
10381
|
-
)
|
|
10382
10377
|
fix_spec(all_structs)
|
|
10383
10378
|
del all_structs
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: iginx-pyclient
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: IGinX-PyClient
|
|
5
5
|
Author: THU IGinX
|
|
6
6
|
Author-email: TSIginX@gmail.com
|
|
@@ -8,6 +8,16 @@ License: Apache License 2.0
|
|
|
8
8
|
Requires-Python: >=3.8
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE
|
|
11
|
+
Requires-Dist: pandas>=2.0.3
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: author-email
|
|
14
|
+
Dynamic: description
|
|
15
|
+
Dynamic: description-content-type
|
|
16
|
+
Dynamic: license
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
Dynamic: requires-dist
|
|
19
|
+
Dynamic: requires-python
|
|
20
|
+
Dynamic: summary
|
|
11
21
|
|
|
12
22
|
# IGinX-PyClient
|
|
13
23
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|