Repository navigation
feat(java): add read-only ALP v1 decoding - #1145
Open
CRZbulabula wants to merge 2 commits into
Open
CRZbulabula wants to merge 2 commits into
CRZbulabula wants to merge 2 commits into
Conversation
Generated-by: OpenAI Codex
Declare C++ write support and Java and C++ read support for ALP FLOAT and DOUBLE across the table and tree models. Extend the C++ coverage scan to include ALP so the matrix exercises Java's decoder without implying Java encoding support. Group the ALP messages and document how to regenerate the fixtures using a portable path. Verified 1,401 Java tests, 92 C++ fixtures read by Java, and 44 Java fixtures read by C++. The full C++ and AddressSanitizer suites passed (1,859 and 1,886 tests), as did Spotless and Apache RAT. Generated-by: OpenAI Codex
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.
Motivation
Java readers currently reject ALP (encoding ID 15), so they cannot query FLOAT and DOUBLE series written with the C++ ALP v1 encoder.
Changes
For example,
DeviceTableModelReadercan query a FLOAT column from a table written by the C++ ALP encoder and recover the original values, including values at page boundaries.Tests
AlpCppInteropTestandMessagesTestpass against C++-generated fixtures../mvnw -B -P with-java clean test: 1,401 tests, 0 failures, 0 errors, 11 skipped../mvnw -B spotless:check -P with-java,with-cppand./mvnw -B apache-rat:check -P with-java,with-cpppass; RAT reports 0 unapproved files.Compatibility
This adds Java read support for existing ALP v1 FLOAT and DOUBLE files. It does not add ALP encoding to Java writers or change the on-disk format.
This change was developed with AI assistance and validated with the tests listed above.
🤖 Generated with Claude Code