Skip to content

[branch-4.1](inverted-index) replace void* query_value with typed param interface (#62960)#63157

Merged
yiguolei merged 1 commit into
apache:branch-4.1from
csun5285:cp-62960-branch-4.1
May 20, 2026
Merged

[branch-4.1](inverted-index) replace void* query_value with typed param interface (#62960)#63157
yiguolei merged 1 commit into
apache:branch-4.1from
csun5285:cp-62960-branch-4.1

Conversation

@csun5285
Copy link
Copy Markdown
Contributor

pick from master #62960

…interface (apache#62960)

A typed query-param interface replaces the void*:

- InvertedIndexQueryParam (root) → StringQueryParam / NumericQueryParam
(intermediates) → TypedInvertedIndexQueryParam<PT> (concrete, picks base
via PT).
- Readers dynamic_cast to the appropriate intermediate at entry;
mismatch fail-fast with Status::InternalError.
- Sentinels move into
TypedInvertedIndexQueryParam::encode_min/max_ascending using
type_limit<storage_val> directly — no scratch buffer, no TypeInfo
callback.
- TypeInfo::set_to_min/max and all its overrides are removed.
- DATETIME signedness fix: storage_val = std::conditional_t<PT ==
TYPE_DATETIME, int64_t, ...> aligns the typed param with KeyCoder's
signed view, so type_limit<int64_t>::max() = INT64_MAX
  produces the correct +inf byte string.

(cherry picked from commit 789ec33)
@csun5285 csun5285 requested a review from yiguolei as a code owner May 12, 2026 03:33
@hello-stephen
Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@csun5285
Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label May 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@yiguolei yiguolei merged commit 0bdd0dc into apache:branch-4.1 May 20, 2026
27 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants