Uh oh!
There was an error while loading. Please reload this page.
Support OBJECT data type in table-model tablet writes - #64
Open
CritasWang wants to merge 1 commit into
Open
Conversation
Add TSDataType.OBJECT (12) and table-model OBJECT write support: - Tablet.BuildObjectValue / SetObjectValueAt with the Java-compatible 9-byte segment header (isEOF + big-endian offset + content), including null-bit clearing after a previously null cell is overwritten - Serialize OBJECT columns like BLOB in EstimateBufferSize/GetBinaryValues - Accept OBJECT (and STRING/BLOB) in BinaryArrayColumnDecoder - Return "(Object) ..." summaries from RpcDataSet GetObject/GetString/GetRow and reject GetBinary for OBJECT columns - Add unit tests for segment framing, request bytes, null bitmap, read semantics, and size formatting Refs apache/iotdb-client-go#175
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 freeto 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.
Summary
Ports the OBJECT data type write support from apache/iotdb-client-go#175 to the C# client.
TSDataType.OBJECT = 12andClient.GetDataTypeByStr("OBJECT")Tablet.BuildObjectValue/SetObjectValueAtwith the Java-compatible segment frame:[1 byte isEOF][8 byte big-endian offset][content], including null-bit clearing after overwriting a null cellEstimateBufferSize/GetBinaryValuesBinaryArrayColumnDecoder(Object) ...size summaries fromRpcDataSet.GetObject/GetString/GetRowand rejectsGetBinaryfor OBJECT columnsTests
tests/Apache.IoTDB.Tests/TabletObjectTests.cscovers segment framing,GenInsertTabletReqwire bytes, null bitmap behavior, and validationRpcDataSetTestsfor OBJECT read semantics andUtilsTestsfor size formattingVerification: the solution builds; the full unit suite passes locally (59 tests) when run as net6:
dotnet test tests/Apache.IoTDB.Tests -p:TargetFramework=net6.0 --no-restoreRefs apache/iotdb-client-go#175