feat: add snapshot-consistent query service - #738
Draft
JingsongLi wants to merge 1 commit into
Draft
Conversation
JingsongLi
marked this pull request as draft
August 23, 2026 07:52
JingsongLi
force-pushed
the
codex/query-service
branch
from
August 23, 2026 10:25
eb153fc to
c9a7209
Compare
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.
Purpose
Add a production-oriented single-node point-query service for Paimon tables. The first capability resolves snapshot-consistent Blob descriptors by database, table, and key fields, while the crate and process boundaries remain generic enough to add projected non-Blob fields later.
The required Paimon core primitives were reviewed and merged separately in #739. This branch is rebased onto that merge and contains only the query-service changes.
Linked issue: none yet.
Brief change log
paimon-query-servicewith typed key normalization, policy validation, bounded scan planning, strict snapshot selection, snapshot-pinned caching, and singleflight miss coalescing.paimon-query-service-serverwith bearer-token authorization, explicit anonymous opt-in, request and connection resource limits, graceful H1/H2 draining, JSON errors, readiness checks, metrics, and non-blocking structured logs./api/blob/v1; use generic query-service crate, binary, configuration, and metric naming for future point-query capabilities.Tests
cargo test -p paimon-query-service --lib --test lookup(25 passed)cargo test -p paimon-query-service-server --lib(25 passed)cargo clippy -p paimon-query-service -p paimon-query-service-server --all-targets -- -D warningscargo fmt --all -- --checkPYTHONDONTWRITEBYTECODE=1 python3 scripts/dependencies.py verifycargo deny --locked --all-features check --warn unmaintained advisories licenses(passes with the existingpaste 1.0.15unmaintained warning)A local full-workspace run reached the existing DataFusion integration suite but seven fixture-dependent tests could not find
default.partitioned_log_tableordefault.multi_partitioned_log_table; the Paimon core suite completed before those fixture failures.API and Format
/api/blob/v1/databases/{database}/tables/{table}/descriptors:batchGetHTTP endpoint and operational endpoints.Documentation
Adds
crates/query-service-server/README.mdwith configuration, authentication, resource limits, API examples, metrics, and operational behavior.