Hi IoTDB developers,

Could someone review PR #19403? It fixes a Python client bug that can
silently turn a valid reading into a missing value and a missing value into
a zero.

I reproduced it with two (timestamp, value) rows: (20, NULL) and (10, 123),
using 0 as the placeholder for NULL. NumpyTablet sorts the timestamps and
values but leaves the null bitmap in its original order. As a result, the
client sends (10, NULL) and (20, 0).

The fix applies the same sort order to each column’s null bitmap. I
verified that the corrected request contains (10, 123) and (20, NULL). The
new regression test fails on the original code, and all 55 Python client
unit tests pass with the fix.

Issue: https://github.com/apache/iotdb/issues/19402
Pull request: https://github.com/apache/iotdb/pull/19403

Thanks,
DaZuiZui

Reply via email to