Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds
OBJECTtype support to the Python session client for both write and read paths, and adds test coverage for object-type serialization and round-trip query behavior.Content1: Add OBJECT type definition and write-path support
TSDataType.OBJECT = 12in Python constants to align with server-side enum semantics.Session.value_to_bytes()(iotdb-client/client-py/iotdb/Session.py)Tablet.get_binary_values()(iotdb-client/client-py/iotdb/utils/Tablet.py)NumpyTablet.get_binary_values()(iotdb-client/client-py/iotdb/utils/NumpyTablet.py)OBJECTas binary payload (length-prefixed bytes), consistent with existing TEXT/STRING/BLOB binary transport pattern and Java-side session behavior.Content2: Add OBJECT type read-path support
OBJECTcolumns:read_column_types()andread_binary_column()iniotdb-client/client-py/iotdb/tsfile/utils/tsblock_serde.pyiotdb-client/client-py/iotdb/utils/iotdb_rpc_dataset.pyiotdb-client/client-py/iotdb/utils/Field.pyiotdb-client/client-py/iotdb/utils/SessionDataSet.pyOBJECTas rawbytesin Python APIs (same practical behavior as BLOB-style handling) for deterministic round-trip verification.Content3: Tests for OBJECT type
iotdb-client/client-py/tests/integration/test_object_type.pyTablet,NumpyTablet, and record APIs.iotdb-client/client-py/tests/unit/test_numpy_tablet.pyTabletandNumpyTablet.This PR has:
Key changed/added classes (or packages if there are too many classes) in this PR
iotdb-client/client-py/iotdb/utils/IoTDBConstants.pyiotdb-client/client-py/iotdb/Session.pyiotdb-client/client-py/iotdb/utils/Tablet.pyiotdb-client/client-py/iotdb/utils/NumpyTablet.pyiotdb-client/client-py/iotdb/tsfile/utils/tsblock_serde.pyiotdb-client/client-py/iotdb/utils/iotdb_rpc_dataset.pyiotdb-client/client-py/iotdb/utils/Field.pyiotdb-client/client-py/iotdb/utils/SessionDataSet.pyiotdb-client/client-py/tests/integration/test_object_type.pyiotdb-client/client-py/tests/unit/test_numpy_tablet.py