apache-iotdb 1.3.0__tar.gz → 1.3.2.post0__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.
Files changed (73) hide show
  1. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/PKG-INFO +6 -1
  2. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/apache_iotdb.egg-info/PKG-INFO +6 -1
  3. apache_iotdb-1.3.2.post0/apache_iotdb.egg-info/requires.txt +5 -0
  4. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/template/TemplateNode.py +3 -6
  5. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/thrift/common/ttypes.py +64 -1
  6. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/thrift/rpc/IClientRPCService.py +198 -12
  7. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/thrift/rpc/ttypes.py +210 -7
  8. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/tsfile/common/constant/TsFileConstant.py +1 -2
  9. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/IoTDBRpcDataSet.py +10 -4
  10. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/setup.py +4 -5
  11. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_dataframe.py +1 -1
  12. apache-iotdb-1.3.0/apache_iotdb.egg-info/requires.txt +0 -6
  13. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/README.md +0 -0
  14. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/apache_iotdb.egg-info/SOURCES.txt +0 -0
  15. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/apache_iotdb.egg-info/dependency_links.txt +0 -0
  16. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/apache_iotdb.egg-info/entry_points.txt +0 -0
  17. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/apache_iotdb.egg-info/top_level.txt +0 -0
  18. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/IoTDBContainer.py +0 -0
  19. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/Session.py +0 -0
  20. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/SessionPool.py +0 -0
  21. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/__init__.py +0 -0
  22. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/dbapi/Connection.py +0 -0
  23. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/dbapi/Cursor.py +0 -0
  24. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/dbapi/Exceptions.py +0 -0
  25. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/dbapi/__init__.py +0 -0
  26. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/dbapi/tests/__init__.py +0 -0
  27. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/dbapi/tests/test_connection.py +0 -0
  28. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/dbapi/tests/test_cursor.py +0 -0
  29. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/sqlalchemy/IoTDBDialect.py +0 -0
  30. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/sqlalchemy/IoTDBIdentifierPreparer.py +0 -0
  31. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/sqlalchemy/IoTDBSQLCompiler.py +0 -0
  32. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/sqlalchemy/IoTDBTypeCompiler.py +0 -0
  33. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/sqlalchemy/__init__.py +0 -0
  34. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/sqlalchemy/tests/__init__.py +0 -0
  35. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/sqlalchemy/tests/test_dialect.py +0 -0
  36. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/template/InternalNode.py +0 -0
  37. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/template/MeasurementNode.py +0 -0
  38. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/template/Template.py +0 -0
  39. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/template/TemplateQueryType.py +0 -0
  40. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/template/__init__.py +0 -0
  41. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/thrift/__init__.py +0 -0
  42. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/thrift/common/__init__.py +0 -0
  43. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/thrift/common/constants.py +0 -0
  44. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/thrift/rpc/__init__.py +0 -0
  45. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/thrift/rpc/constants.py +0 -0
  46. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/tsfile/__init__.py +0 -0
  47. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/tsfile/common/__init__.py +0 -0
  48. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/tsfile/common/constant/__init__.py +0 -0
  49. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/tsfile/utils/Pair.py +0 -0
  50. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/tsfile/utils/ReadWriteIOUtils.py +0 -0
  51. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/tsfile/utils/__init__.py +0 -0
  52. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/BitMap.py +0 -0
  53. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/Field.py +0 -0
  54. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/IoTDBConnectionException.py +0 -0
  55. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/IoTDBConstants.py +0 -0
  56. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/NumpyTablet.py +0 -0
  57. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/RowRecord.py +0 -0
  58. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/SessionDataSet.py +0 -0
  59. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/Tablet.py +0 -0
  60. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/iotdb/utils/__init__.py +0 -0
  61. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/pyproject.toml +0 -0
  62. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/setup.cfg +0 -0
  63. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/__init__.py +0 -0
  64. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/tablet_performance_comparison.py +0 -0
  65. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_aligned_timeseries.py +0 -0
  66. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_delete_data.py +0 -0
  67. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_numpy_tablet.py +0 -0
  68. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_one_device.py +0 -0
  69. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_session.py +0 -0
  70. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_session_pool.py +0 -0
  71. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_tablet.py +0 -0
  72. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_template.py +0 -0
  73. {apache-iotdb-1.3.0 → apache_iotdb-1.3.2.post0}/tests/test_todf.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-iotdb
3
- Version: 1.3.0
3
+ Version: 1.3.2.post0
4
4
  Summary: Apache IoTDB client API
5
5
  Home-page: https://github.com/apache/iotdb
6
6
  Author: Apache Software Foundation
@@ -13,6 +13,11 @@ Classifier: Topic :: Software Development :: Libraries
13
13
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
14
14
  Requires-Python: >=3.7
15
15
  Description-Content-Type: text/markdown
16
+ Requires-Dist: thrift>=0.14.1
17
+ Requires-Dist: pandas>=1.3.5
18
+ Requires-Dist: numpy>=1.21.4
19
+ Requires-Dist: sqlalchemy<1.5,>=1.4
20
+ Requires-Dist: sqlalchemy-utils>=0.37.8
16
21
 
17
22
  <!--
18
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-iotdb
3
- Version: 1.3.0
3
+ Version: 1.3.2.post0
4
4
  Summary: Apache IoTDB client API
5
5
  Home-page: https://github.com/apache/iotdb
6
6
  Author: Apache Software Foundation
@@ -13,6 +13,11 @@ Classifier: Topic :: Software Development :: Libraries
13
13
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
14
14
  Requires-Python: >=3.7
15
15
  Description-Content-Type: text/markdown
16
+ Requires-Dist: thrift>=0.14.1
17
+ Requires-Dist: pandas>=1.3.5
18
+ Requires-Dist: numpy>=1.21.4
19
+ Requires-Dist: sqlalchemy<1.5,>=1.4
20
+ Requires-Dist: sqlalchemy-utils>=0.37.8
16
21
 
17
22
  <!--
18
23
 
@@ -0,0 +1,5 @@
1
+ thrift>=0.14.1
2
+ pandas>=1.3.5
3
+ numpy>=1.21.4
4
+ sqlalchemy<1.5,>=1.4
5
+ sqlalchemy-utils>=0.37.8
@@ -31,11 +31,9 @@ class TemplateNode(object):
31
31
  def get_children(self):
32
32
  return None
33
33
 
34
- def add_child(self, node):
35
- ...
34
+ def add_child(self, node): ...
36
35
 
37
- def delete_child(self, node):
38
- ...
36
+ def delete_child(self, node): ...
39
37
 
40
38
  def is_measurement(self):
41
39
  return False
@@ -43,5 +41,4 @@ class TemplateNode(object):
43
41
  def is_share_time(self):
44
42
  return False
45
43
 
46
- def serialize(self, *args, **kwargs):
47
- ...
44
+ def serialize(self, *args, **kwargs): ...
@@ -40,6 +40,7 @@ class TRegionMigrateFailedType(object):
40
40
  RemoveConsensusGroupFailed = 2
41
41
  DeleteRegionFailed = 3
42
42
  CreateRegionFailed = 4
43
+ Disconnect = 5
43
44
 
44
45
  _VALUES_TO_NAMES = {
45
46
  0: "AddPeerFailed",
@@ -47,6 +48,7 @@ class TRegionMigrateFailedType(object):
47
48
  2: "RemoveConsensusGroupFailed",
48
49
  3: "DeleteRegionFailed",
49
50
  4: "CreateRegionFailed",
51
+ 5: "Disconnect",
50
52
  }
51
53
 
52
54
  _NAMES_TO_VALUES = {
@@ -55,6 +57,28 @@ class TRegionMigrateFailedType(object):
55
57
  "RemoveConsensusGroupFailed": 2,
56
58
  "DeleteRegionFailed": 3,
57
59
  "CreateRegionFailed": 4,
60
+ "Disconnect": 5,
61
+ }
62
+
63
+
64
+ class TRegionMaintainTaskStatus(object):
65
+ TASK_NOT_EXIST = 0
66
+ PROCESSING = 1
67
+ SUCCESS = 2
68
+ FAIL = 3
69
+
70
+ _VALUES_TO_NAMES = {
71
+ 0: "TASK_NOT_EXIST",
72
+ 1: "PROCESSING",
73
+ 2: "SUCCESS",
74
+ 3: "FAIL",
75
+ }
76
+
77
+ _NAMES_TO_VALUES = {
78
+ "TASK_NOT_EXIST": 0,
79
+ "PROCESSING": 1,
80
+ "SUCCESS": 2,
81
+ "FAIL": 3,
58
82
  }
59
83
 
60
84
 
@@ -100,6 +124,15 @@ class TAggregationType(object):
100
124
  TIME_DURATION = 11
101
125
  MODE = 12
102
126
  COUNT_TIME = 13
127
+ STDDEV = 14
128
+ STDDEV_POP = 15
129
+ STDDEV_SAMP = 16
130
+ VARIANCE = 17
131
+ VAR_POP = 18
132
+ VAR_SAMP = 19
133
+ MAX_BY = 20
134
+ MIN_BY = 21
135
+ UDAF = 22
103
136
 
104
137
  _VALUES_TO_NAMES = {
105
138
  0: "COUNT",
@@ -116,6 +149,15 @@ class TAggregationType(object):
116
149
  11: "TIME_DURATION",
117
150
  12: "MODE",
118
151
  13: "COUNT_TIME",
152
+ 14: "STDDEV",
153
+ 15: "STDDEV_POP",
154
+ 16: "STDDEV_SAMP",
155
+ 17: "VARIANCE",
156
+ 18: "VAR_POP",
157
+ 19: "VAR_SAMP",
158
+ 20: "MAX_BY",
159
+ 21: "MIN_BY",
160
+ 22: "UDAF",
119
161
  }
120
162
 
121
163
  _NAMES_TO_VALUES = {
@@ -133,6 +175,15 @@ class TAggregationType(object):
133
175
  "TIME_DURATION": 11,
134
176
  "MODE": 12,
135
177
  "COUNT_TIME": 13,
178
+ "STDDEV": 14,
179
+ "STDDEV_POP": 15,
180
+ "STDDEV_SAMP": 16,
181
+ "VARIANCE": 17,
182
+ "VAR_POP": 18,
183
+ "VAR_SAMP": 19,
184
+ "MAX_BY": 20,
185
+ "MIN_BY": 21,
186
+ "UDAF": 22,
136
187
  }
137
188
 
138
189
 
@@ -215,15 +266,17 @@ class TSStatus(object):
215
266
  - message
216
267
  - subStatus
217
268
  - redirectNode
269
+ - needRetry
218
270
 
219
271
  """
220
272
 
221
273
 
222
- def __init__(self, code=None, message=None, subStatus=None, redirectNode=None,):
274
+ def __init__(self, code=None, message=None, subStatus=None, redirectNode=None, needRetry=None,):
223
275
  self.code = code
224
276
  self.message = message
225
277
  self.subStatus = subStatus
226
278
  self.redirectNode = redirectNode
279
+ self.needRetry = needRetry
227
280
 
228
281
  def read(self, iprot):
229
282
  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
@@ -261,6 +314,11 @@ class TSStatus(object):
261
314
  self.redirectNode.read(iprot)
262
315
  else:
263
316
  iprot.skip(ftype)
317
+ elif fid == 5:
318
+ if ftype == TType.BOOL:
319
+ self.needRetry = iprot.readBool()
320
+ else:
321
+ iprot.skip(ftype)
264
322
  else:
265
323
  iprot.skip(ftype)
266
324
  iprot.readFieldEnd()
@@ -290,6 +348,10 @@ class TSStatus(object):
290
348
  oprot.writeFieldBegin('redirectNode', TType.STRUCT, 4)
291
349
  self.redirectNode.write(oprot)
292
350
  oprot.writeFieldEnd()
351
+ if self.needRetry is not None:
352
+ oprot.writeFieldBegin('needRetry', TType.BOOL, 5)
353
+ oprot.writeBool(self.needRetry)
354
+ oprot.writeFieldEnd()
293
355
  oprot.writeFieldStop()
294
356
  oprot.writeStructEnd()
295
357
 
@@ -1949,6 +2011,7 @@ TSStatus.thrift_spec = (
1949
2011
  (2, TType.STRING, 'message', 'UTF8', None, ), # 2
1950
2012
  (3, TType.LIST, 'subStatus', (TType.STRUCT, [TSStatus, None], False), None, ), # 3
1951
2013
  (4, TType.STRUCT, 'redirectNode', [TEndPoint, None], None, ), # 4
2014
+ (5, TType.BOOL, 'needRetry', None, None, ), # 5
1952
2015
  )
1953
2016
  all_structs.append(TConsensusGroupId)
1954
2017
  TConsensusGroupId.thrift_spec = (
@@ -498,6 +498,14 @@ class Iface(object):
498
498
  """
499
499
  pass
500
500
 
501
+ def pipeSubscribe(self, req):
502
+ """
503
+ Parameters:
504
+ - req
505
+
506
+ """
507
+ pass
508
+
501
509
  def getBackupConfiguration(self):
502
510
  pass
503
511
 
@@ -2434,6 +2442,38 @@ class Client(Iface):
2434
2442
  return result.success
2435
2443
  raise TApplicationException(TApplicationException.MISSING_RESULT, "pipeTransfer failed: unknown result")
2436
2444
 
2445
+ def pipeSubscribe(self, req):
2446
+ """
2447
+ Parameters:
2448
+ - req
2449
+
2450
+ """
2451
+ self.send_pipeSubscribe(req)
2452
+ return self.recv_pipeSubscribe()
2453
+
2454
+ def send_pipeSubscribe(self, req):
2455
+ self._oprot.writeMessageBegin('pipeSubscribe', TMessageType.CALL, self._seqid)
2456
+ args = pipeSubscribe_args()
2457
+ args.req = req
2458
+ args.write(self._oprot)
2459
+ self._oprot.writeMessageEnd()
2460
+ self._oprot.trans.flush()
2461
+
2462
+ def recv_pipeSubscribe(self):
2463
+ iprot = self._iprot
2464
+ (fname, mtype, rseqid) = iprot.readMessageBegin()
2465
+ if mtype == TMessageType.EXCEPTION:
2466
+ x = TApplicationException()
2467
+ x.read(iprot)
2468
+ iprot.readMessageEnd()
2469
+ raise x
2470
+ result = pipeSubscribe_result()
2471
+ result.read(iprot)
2472
+ iprot.readMessageEnd()
2473
+ if result.success is not None:
2474
+ return result.success
2475
+ raise TApplicationException(TApplicationException.MISSING_RESULT, "pipeSubscribe failed: unknown result")
2476
+
2437
2477
  def getBackupConfiguration(self):
2438
2478
  self.send_getBackupConfiguration()
2439
2479
  return self.recv_getBackupConfiguration()
@@ -2551,6 +2591,7 @@ class Processor(Iface, TProcessor):
2551
2591
  self._processMap["sendPipeData"] = Processor.process_sendPipeData
2552
2592
  self._processMap["sendFile"] = Processor.process_sendFile
2553
2593
  self._processMap["pipeTransfer"] = Processor.process_pipeTransfer
2594
+ self._processMap["pipeSubscribe"] = Processor.process_pipeSubscribe
2554
2595
  self._processMap["getBackupConfiguration"] = Processor.process_getBackupConfiguration
2555
2596
  self._processMap["fetchAllConnectionsInfo"] = Processor.process_fetchAllConnectionsInfo
2556
2597
  self._on_message_begin = None
@@ -3955,6 +3996,29 @@ class Processor(Iface, TProcessor):
3955
3996
  oprot.writeMessageEnd()
3956
3997
  oprot.trans.flush()
3957
3998
 
3999
+ def process_pipeSubscribe(self, seqid, iprot, oprot):
4000
+ args = pipeSubscribe_args()
4001
+ args.read(iprot)
4002
+ iprot.readMessageEnd()
4003
+ result = pipeSubscribe_result()
4004
+ try:
4005
+ result.success = self._handler.pipeSubscribe(args.req)
4006
+ msg_type = TMessageType.REPLY
4007
+ except TTransport.TTransportException:
4008
+ raise
4009
+ except TApplicationException as ex:
4010
+ logging.exception('TApplication exception in handler')
4011
+ msg_type = TMessageType.EXCEPTION
4012
+ result = ex
4013
+ except Exception:
4014
+ logging.exception('Unexpected exception in handler')
4015
+ msg_type = TMessageType.EXCEPTION
4016
+ result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
4017
+ oprot.writeMessageBegin("pipeSubscribe", msg_type, seqid)
4018
+ result.write(oprot)
4019
+ oprot.writeMessageEnd()
4020
+ oprot.trans.flush()
4021
+
3958
4022
  def process_getBackupConfiguration(self, seqid, iprot, oprot):
3959
4023
  args = getBackupConfiguration_args()
3960
4024
  args.read(iprot)
@@ -7274,10 +7338,10 @@ class deleteTimeseries_args(object):
7274
7338
  elif fid == 2:
7275
7339
  if ftype == TType.LIST:
7276
7340
  self.path = []
7277
- (_etype634, _size631) = iprot.readListBegin()
7278
- for _i635 in range(_size631):
7279
- _elem636 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7280
- self.path.append(_elem636)
7341
+ (_etype641, _size638) = iprot.readListBegin()
7342
+ for _i642 in range(_size638):
7343
+ _elem643 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7344
+ self.path.append(_elem643)
7281
7345
  iprot.readListEnd()
7282
7346
  else:
7283
7347
  iprot.skip(ftype)
@@ -7298,8 +7362,8 @@ class deleteTimeseries_args(object):
7298
7362
  if self.path is not None:
7299
7363
  oprot.writeFieldBegin('path', TType.LIST, 2)
7300
7364
  oprot.writeListBegin(TType.STRING, len(self.path))
7301
- for iter637 in self.path:
7302
- oprot.writeString(iter637.encode('utf-8') if sys.version_info[0] == 2 else iter637)
7365
+ for iter644 in self.path:
7366
+ oprot.writeString(iter644.encode('utf-8') if sys.version_info[0] == 2 else iter644)
7303
7367
  oprot.writeListEnd()
7304
7368
  oprot.writeFieldEnd()
7305
7369
  oprot.writeFieldStop()
@@ -7418,10 +7482,10 @@ class deleteStorageGroups_args(object):
7418
7482
  elif fid == 2:
7419
7483
  if ftype == TType.LIST:
7420
7484
  self.storageGroup = []
7421
- (_etype641, _size638) = iprot.readListBegin()
7422
- for _i642 in range(_size638):
7423
- _elem643 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7424
- self.storageGroup.append(_elem643)
7485
+ (_etype648, _size645) = iprot.readListBegin()
7486
+ for _i649 in range(_size645):
7487
+ _elem650 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
7488
+ self.storageGroup.append(_elem650)
7425
7489
  iprot.readListEnd()
7426
7490
  else:
7427
7491
  iprot.skip(ftype)
@@ -7442,8 +7506,8 @@ class deleteStorageGroups_args(object):
7442
7506
  if self.storageGroup is not None:
7443
7507
  oprot.writeFieldBegin('storageGroup', TType.LIST, 2)
7444
7508
  oprot.writeListBegin(TType.STRING, len(self.storageGroup))
7445
- for iter644 in self.storageGroup:
7446
- oprot.writeString(iter644.encode('utf-8') if sys.version_info[0] == 2 else iter644)
7509
+ for iter651 in self.storageGroup:
7510
+ oprot.writeString(iter651.encode('utf-8') if sys.version_info[0] == 2 else iter651)
7447
7511
  oprot.writeListEnd()
7448
7512
  oprot.writeFieldEnd()
7449
7513
  oprot.writeFieldStop()
@@ -11535,6 +11599,128 @@ pipeTransfer_result.thrift_spec = (
11535
11599
  )
11536
11600
 
11537
11601
 
11602
+ class pipeSubscribe_args(object):
11603
+ """
11604
+ Attributes:
11605
+ - req
11606
+
11607
+ """
11608
+
11609
+
11610
+ def __init__(self, req=None,):
11611
+ self.req = req
11612
+
11613
+ def read(self, iprot):
11614
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11615
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11616
+ return
11617
+ iprot.readStructBegin()
11618
+ while True:
11619
+ (fname, ftype, fid) = iprot.readFieldBegin()
11620
+ if ftype == TType.STOP:
11621
+ break
11622
+ if fid == -1:
11623
+ if ftype == TType.STRUCT:
11624
+ self.req = TPipeSubscribeReq()
11625
+ self.req.read(iprot)
11626
+ else:
11627
+ iprot.skip(ftype)
11628
+ else:
11629
+ iprot.skip(ftype)
11630
+ iprot.readFieldEnd()
11631
+ iprot.readStructEnd()
11632
+
11633
+ def write(self, oprot):
11634
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
11635
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11636
+ return
11637
+ oprot.writeStructBegin('pipeSubscribe_args')
11638
+ if self.req is not None:
11639
+ oprot.writeFieldBegin('req', TType.STRUCT, -1)
11640
+ self.req.write(oprot)
11641
+ oprot.writeFieldEnd()
11642
+ oprot.writeFieldStop()
11643
+ oprot.writeStructEnd()
11644
+
11645
+ def validate(self):
11646
+ return
11647
+
11648
+ def __repr__(self):
11649
+ L = ['%s=%r' % (key, value)
11650
+ for key, value in self.__dict__.items()]
11651
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11652
+
11653
+ def __eq__(self, other):
11654
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11655
+
11656
+ def __ne__(self, other):
11657
+ return not (self == other)
11658
+ all_structs.append(pipeSubscribe_args)
11659
+ pipeSubscribe_args.thrift_spec = ()
11660
+
11661
+
11662
+ class pipeSubscribe_result(object):
11663
+ """
11664
+ Attributes:
11665
+ - success
11666
+
11667
+ """
11668
+
11669
+
11670
+ def __init__(self, success=None,):
11671
+ self.success = success
11672
+
11673
+ def read(self, iprot):
11674
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
11675
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
11676
+ return
11677
+ iprot.readStructBegin()
11678
+ while True:
11679
+ (fname, ftype, fid) = iprot.readFieldBegin()
11680
+ if ftype == TType.STOP:
11681
+ break
11682
+ if fid == 0:
11683
+ if ftype == TType.STRUCT:
11684
+ self.success = TPipeSubscribeResp()
11685
+ self.success.read(iprot)
11686
+ else:
11687
+ iprot.skip(ftype)
11688
+ else:
11689
+ iprot.skip(ftype)
11690
+ iprot.readFieldEnd()
11691
+ iprot.readStructEnd()
11692
+
11693
+ def write(self, oprot):
11694
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
11695
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
11696
+ return
11697
+ oprot.writeStructBegin('pipeSubscribe_result')
11698
+ if self.success is not None:
11699
+ oprot.writeFieldBegin('success', TType.STRUCT, 0)
11700
+ self.success.write(oprot)
11701
+ oprot.writeFieldEnd()
11702
+ oprot.writeFieldStop()
11703
+ oprot.writeStructEnd()
11704
+
11705
+ def validate(self):
11706
+ return
11707
+
11708
+ def __repr__(self):
11709
+ L = ['%s=%r' % (key, value)
11710
+ for key, value in self.__dict__.items()]
11711
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11712
+
11713
+ def __eq__(self, other):
11714
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11715
+
11716
+ def __ne__(self, other):
11717
+ return not (self == other)
11718
+ all_structs.append(pipeSubscribe_result)
11719
+ pipeSubscribe_result.thrift_spec = (
11720
+ (0, TType.STRUCT, 'success', [TPipeSubscribeResp, None], None, ), # 0
11721
+ )
11722
+
11723
+
11538
11724
  class getBackupConfiguration_args(object):
11539
11725
 
11540
11726
 
@@ -6305,6 +6305,194 @@ class TPipeTransferResp(object):
6305
6305
  return not (self == other)
6306
6306
 
6307
6307
 
6308
+ class TPipeSubscribeReq(object):
6309
+ """
6310
+ Attributes:
6311
+ - version
6312
+ - type
6313
+ - body
6314
+
6315
+ """
6316
+
6317
+
6318
+ def __init__(self, version=None, type=None, body=None,):
6319
+ self.version = version
6320
+ self.type = type
6321
+ self.body = body
6322
+
6323
+ def read(self, iprot):
6324
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6325
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6326
+ return
6327
+ iprot.readStructBegin()
6328
+ while True:
6329
+ (fname, ftype, fid) = iprot.readFieldBegin()
6330
+ if ftype == TType.STOP:
6331
+ break
6332
+ if fid == 1:
6333
+ if ftype == TType.BYTE:
6334
+ self.version = iprot.readByte()
6335
+ else:
6336
+ iprot.skip(ftype)
6337
+ elif fid == 2:
6338
+ if ftype == TType.I16:
6339
+ self.type = iprot.readI16()
6340
+ else:
6341
+ iprot.skip(ftype)
6342
+ elif fid == 3:
6343
+ if ftype == TType.STRING:
6344
+ self.body = iprot.readBinary()
6345
+ else:
6346
+ iprot.skip(ftype)
6347
+ else:
6348
+ iprot.skip(ftype)
6349
+ iprot.readFieldEnd()
6350
+ iprot.readStructEnd()
6351
+
6352
+ def write(self, oprot):
6353
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
6354
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6355
+ return
6356
+ oprot.writeStructBegin('TPipeSubscribeReq')
6357
+ if self.version is not None:
6358
+ oprot.writeFieldBegin('version', TType.BYTE, 1)
6359
+ oprot.writeByte(self.version)
6360
+ oprot.writeFieldEnd()
6361
+ if self.type is not None:
6362
+ oprot.writeFieldBegin('type', TType.I16, 2)
6363
+ oprot.writeI16(self.type)
6364
+ oprot.writeFieldEnd()
6365
+ if self.body is not None:
6366
+ oprot.writeFieldBegin('body', TType.STRING, 3)
6367
+ oprot.writeBinary(self.body)
6368
+ oprot.writeFieldEnd()
6369
+ oprot.writeFieldStop()
6370
+ oprot.writeStructEnd()
6371
+
6372
+ def validate(self):
6373
+ if self.version is None:
6374
+ raise TProtocolException(message='Required field version is unset!')
6375
+ if self.type is None:
6376
+ raise TProtocolException(message='Required field type is unset!')
6377
+ return
6378
+
6379
+ def __repr__(self):
6380
+ L = ['%s=%r' % (key, value)
6381
+ for key, value in self.__dict__.items()]
6382
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6383
+
6384
+ def __eq__(self, other):
6385
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6386
+
6387
+ def __ne__(self, other):
6388
+ return not (self == other)
6389
+
6390
+
6391
+ class TPipeSubscribeResp(object):
6392
+ """
6393
+ Attributes:
6394
+ - status
6395
+ - version
6396
+ - type
6397
+ - body
6398
+
6399
+ """
6400
+
6401
+
6402
+ def __init__(self, status=None, version=None, type=None, body=None,):
6403
+ self.status = status
6404
+ self.version = version
6405
+ self.type = type
6406
+ self.body = body
6407
+
6408
+ def read(self, iprot):
6409
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
6410
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
6411
+ return
6412
+ iprot.readStructBegin()
6413
+ while True:
6414
+ (fname, ftype, fid) = iprot.readFieldBegin()
6415
+ if ftype == TType.STOP:
6416
+ break
6417
+ if fid == 1:
6418
+ if ftype == TType.STRUCT:
6419
+ self.status = iotdb.thrift.common.ttypes.TSStatus()
6420
+ self.status.read(iprot)
6421
+ else:
6422
+ iprot.skip(ftype)
6423
+ elif fid == 2:
6424
+ if ftype == TType.BYTE:
6425
+ self.version = iprot.readByte()
6426
+ else:
6427
+ iprot.skip(ftype)
6428
+ elif fid == 3:
6429
+ if ftype == TType.I16:
6430
+ self.type = iprot.readI16()
6431
+ else:
6432
+ iprot.skip(ftype)
6433
+ elif fid == 4:
6434
+ if ftype == TType.LIST:
6435
+ self.body = []
6436
+ (_etype627, _size624) = iprot.readListBegin()
6437
+ for _i628 in range(_size624):
6438
+ _elem629 = iprot.readBinary()
6439
+ self.body.append(_elem629)
6440
+ iprot.readListEnd()
6441
+ else:
6442
+ iprot.skip(ftype)
6443
+ else:
6444
+ iprot.skip(ftype)
6445
+ iprot.readFieldEnd()
6446
+ iprot.readStructEnd()
6447
+
6448
+ def write(self, oprot):
6449
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
6450
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
6451
+ return
6452
+ oprot.writeStructBegin('TPipeSubscribeResp')
6453
+ if self.status is not None:
6454
+ oprot.writeFieldBegin('status', TType.STRUCT, 1)
6455
+ self.status.write(oprot)
6456
+ oprot.writeFieldEnd()
6457
+ if self.version is not None:
6458
+ oprot.writeFieldBegin('version', TType.BYTE, 2)
6459
+ oprot.writeByte(self.version)
6460
+ oprot.writeFieldEnd()
6461
+ if self.type is not None:
6462
+ oprot.writeFieldBegin('type', TType.I16, 3)
6463
+ oprot.writeI16(self.type)
6464
+ oprot.writeFieldEnd()
6465
+ if self.body is not None:
6466
+ oprot.writeFieldBegin('body', TType.LIST, 4)
6467
+ oprot.writeListBegin(TType.STRING, len(self.body))
6468
+ for iter630 in self.body:
6469
+ oprot.writeBinary(iter630)
6470
+ oprot.writeListEnd()
6471
+ oprot.writeFieldEnd()
6472
+ oprot.writeFieldStop()
6473
+ oprot.writeStructEnd()
6474
+
6475
+ def validate(self):
6476
+ if self.status is None:
6477
+ raise TProtocolException(message='Required field status is unset!')
6478
+ if self.version is None:
6479
+ raise TProtocolException(message='Required field version is unset!')
6480
+ if self.type is None:
6481
+ raise TProtocolException(message='Required field type is unset!')
6482
+ return
6483
+
6484
+ def __repr__(self):
6485
+ L = ['%s=%r' % (key, value)
6486
+ for key, value in self.__dict__.items()]
6487
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6488
+
6489
+ def __eq__(self, other):
6490
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6491
+
6492
+ def __ne__(self, other):
6493
+ return not (self == other)
6494
+
6495
+
6308
6496
  class TSBackupConfigurationResp(object):
6309
6497
  """
6310
6498
  Attributes:
@@ -6519,11 +6707,11 @@ class TSConnectionInfoResp(object):
6519
6707
  if fid == 1:
6520
6708
  if ftype == TType.LIST:
6521
6709
  self.connectionInfoList = []
6522
- (_etype627, _size624) = iprot.readListBegin()
6523
- for _i628 in range(_size624):
6524
- _elem629 = TSConnectionInfo()
6525
- _elem629.read(iprot)
6526
- self.connectionInfoList.append(_elem629)
6710
+ (_etype634, _size631) = iprot.readListBegin()
6711
+ for _i635 in range(_size631):
6712
+ _elem636 = TSConnectionInfo()
6713
+ _elem636.read(iprot)
6714
+ self.connectionInfoList.append(_elem636)
6527
6715
  iprot.readListEnd()
6528
6716
  else:
6529
6717
  iprot.skip(ftype)
@@ -6540,8 +6728,8 @@ class TSConnectionInfoResp(object):
6540
6728
  if self.connectionInfoList is not None:
6541
6729
  oprot.writeFieldBegin('connectionInfoList', TType.LIST, 1)
6542
6730
  oprot.writeListBegin(TType.STRUCT, len(self.connectionInfoList))
6543
- for iter630 in self.connectionInfoList:
6544
- iter630.write(oprot)
6731
+ for iter637 in self.connectionInfoList:
6732
+ iter637.write(oprot)
6545
6733
  oprot.writeListEnd()
6546
6734
  oprot.writeFieldEnd()
6547
6735
  oprot.writeFieldStop()
@@ -7025,6 +7213,21 @@ TPipeTransferResp.thrift_spec = (
7025
7213
  (1, TType.STRUCT, 'status', [iotdb.thrift.common.ttypes.TSStatus, None], None, ), # 1
7026
7214
  (2, TType.STRING, 'body', 'BINARY', None, ), # 2
7027
7215
  )
7216
+ all_structs.append(TPipeSubscribeReq)
7217
+ TPipeSubscribeReq.thrift_spec = (
7218
+ None, # 0
7219
+ (1, TType.BYTE, 'version', None, None, ), # 1
7220
+ (2, TType.I16, 'type', None, None, ), # 2
7221
+ (3, TType.STRING, 'body', 'BINARY', None, ), # 3
7222
+ )
7223
+ all_structs.append(TPipeSubscribeResp)
7224
+ TPipeSubscribeResp.thrift_spec = (
7225
+ None, # 0
7226
+ (1, TType.STRUCT, 'status', [iotdb.thrift.common.ttypes.TSStatus, None], None, ), # 1
7227
+ (2, TType.BYTE, 'version', None, None, ), # 2
7228
+ (3, TType.I16, 'type', None, None, ), # 3
7229
+ (4, TType.LIST, 'body', (TType.STRING, 'BINARY', False), None, ), # 4
7230
+ )
7028
7231
  all_structs.append(TSBackupConfigurationResp)
7029
7232
  TSBackupConfigurationResp.thrift_spec = (
7030
7233
  None, # 0
@@ -32,5 +32,4 @@ class TsFileConstant:
32
32
 
33
33
  VALUE_COLUMN_MASK = 0x40
34
34
 
35
- def __ts_file_constant(self):
36
- ...
35
+ def __ts_file_constant(self): ...
@@ -151,7 +151,7 @@ class IoTDBRpcDataSet(object):
151
151
  self.__query_data_set.time, np.dtype(np.longlong).newbyteorder(">")
152
152
  )
153
153
  if time_array.dtype.byteorder == ">":
154
- time_array = time_array.byteswap().newbyteorder("<")
154
+ time_array = time_array.byteswap().view(time_array.dtype.newbyteorder("<"))
155
155
  result[0] = time_array
156
156
  total_length = len(time_array)
157
157
  for i in range(self.column_size):
@@ -205,7 +205,9 @@ class IoTDBRpcDataSet(object):
205
205
  else:
206
206
  raise RuntimeError("unsupported data type {}.".format(data_type))
207
207
  if data_array.dtype.byteorder == ">":
208
- data_array = data_array.byteswap().newbyteorder("<")
208
+ data_array = data_array.byteswap().view(
209
+ data_array.dtype.newbyteorder("<")
210
+ )
209
211
  # self.__query_data_set.valueList[location] = None
210
212
  if len(data_array) < total_length:
211
213
  # INT32 or INT64 or boolean
@@ -258,7 +260,9 @@ class IoTDBRpcDataSet(object):
258
260
  self.__query_data_set.time, np.dtype(np.longlong).newbyteorder(">")
259
261
  )
260
262
  if time_array.dtype.byteorder == ">":
261
- time_array = time_array.byteswap().newbyteorder("<")
263
+ time_array = time_array.byteswap().view(
264
+ time_array.dtype.newbyteorder("<")
265
+ )
262
266
  if self.ignore_timestamp is None or self.ignore_timestamp is False:
263
267
  result[IoTDBRpcDataSet.TIMESTAMP_STR].append(time_array)
264
268
 
@@ -317,7 +321,9 @@ class IoTDBRpcDataSet(object):
317
321
  else:
318
322
  raise RuntimeError("unsupported data type {}.".format(data_type))
319
323
  if data_array.dtype.byteorder == ">":
320
- data_array = data_array.byteswap().newbyteorder("<")
324
+ data_array = data_array.byteswap().view(
325
+ data_array.dtype.newbyteorder("<")
326
+ )
321
327
  self.__query_data_set.valueList[location] = None
322
328
  tmp_array = []
323
329
  if len(data_array) < total_length:
@@ -31,7 +31,7 @@ print(long_description)
31
31
 
32
32
  setuptools.setup(
33
33
  name="apache-iotdb", # Replace with your own username
34
- version="1.3.0",
34
+ version="1.3.2.post0",
35
35
  author=" Apache Software Foundation",
36
36
  author_email="dev@iotdb.apache.org",
37
37
  description="Apache IoTDB client API",
@@ -40,10 +40,9 @@ setuptools.setup(
40
40
  url="https://github.com/apache/iotdb",
41
41
  packages=setuptools.find_packages(),
42
42
  install_requires=[
43
- "thrift>=0.13.0",
44
- "pandas>=1.0.0,<1.99.99",
45
- "numpy>=1.0.0",
46
- "testcontainers>=2.0.0",
43
+ "thrift>=0.14.1",
44
+ "pandas>=1.3.5",
45
+ "numpy>=1.21.4",
47
46
  "sqlalchemy<1.5,>=1.4",
48
47
  "sqlalchemy-utils>=0.37.8",
49
48
  ],
@@ -80,7 +80,7 @@ def test_non_time_query():
80
80
  "root.device0.pressure",
81
81
  None,
82
82
  "root.device0",
83
- "FLOAT",
83
+ "DOUBLE",
84
84
  "GORILLA",
85
85
  "LZ4",
86
86
  None,
@@ -1,6 +0,0 @@
1
- thrift>=0.13.0
2
- pandas<1.99.99,>=1.0.0
3
- numpy>=1.0.0
4
- testcontainers>=2.0.0
5
- sqlalchemy<1.5,>=1.4
6
- sqlalchemy-utils>=0.37.8