HTHou opened a new pull request, #8576:
URL: https://github.com/apache/iotdb/pull/8576

   ## Description
   
   NumpyTablet insert None values.
   
   ```python
   # insert one numpy tablet with none into the database.
   np_values_ = [
       np.array([False, True, False, True], TSDataType.BOOLEAN.np_dtype()),
       np.array([10, 100, 100, 0], TSDataType.INT32.np_dtype()),
       np.array([11, 11111, 1, 0], TSDataType.INT64.np_dtype()),
       np.array([1.1, 1.25, 188.1, 0], TSDataType.FLOAT.np_dtype()),
       np.array([10011.1, 101.0, 688.25, 6.25], TSDataType.DOUBLE.np_dtype()),
       np.array(["test01", "test02", "test03", "test04"], 
TSDataType.TEXT.np_dtype()),
   ]
   np_timestamps_ = np.array([98, 99, 100, 101], TSDataType.INT64.np_dtype())
   np_bitmaps_ = []
   for i in range(len(measurements_)):
       np_bitmaps_.append(BitMap(len(np_timestamps_)))
   np_bitmaps_[0].mark(0)
   np_bitmaps_[1].mark(1)
   np_bitmaps_[2].mark(2)
   np_bitmaps_[4].mark(3)
   np_bitmaps_[5].mark(3)
   np_tablet_with_none = NumpyTablet(
       device_id, measurements_, data_types_, np_values_, np_timestamps_, 
np_bitmaps_
   )
   session.insert_tablet(np_tablet_with_none)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to