HappenLee opened a new pull request, #71347: URL: https://github.com/apache/doris/pull/71347
### What problem does this PR solve? Issue Number: None Related PR: #71284, #71302 Problem Summary: Combine two merged fixes for branch-4.1: - IP hash routing: equality and IN predicates on IPv4/IPv6 distribution keys can prune the tablet holding an existing row, including short-circuit point queries. Encode FE literals as the same little-endian 4/16-byte values used by BE writes. Existing data does not need redistribution. - Large OFFSET: the single-run sorted merge narrows the remaining offset to int before computing its skip count. OFFSET 4294967296 can consequently produce a zero skip and leave the worker looping. Compute the minimum in size_t, bounded by the current block's remaining rows. The production changes preserve the implementations merged in #71284 and #71302. Tests use this branch's fe-core module, tablet-ID pruner interface, JUnit 4 fixture, and Java 8-compatible Guava utilities. The 4.1 scalar-audit test omits UUID and TIMESTAMP_NS, which are not supported on this branch. ### Validation - `run-fe-ut.sh --run org.apache.doris.analysis.IpLiteralHashTest,org.apache.doris.analysis.DistributionLiteralEncodingTest,org.apache.doris.planner.HashDistributionPrunerTest,org.apache.doris.catalog.PartitionKeyTest`: **44 tests passed**, zero failures, errors, or skips. The run compiled the branch's FE production and test sources using JDK 17 with the branch's Java 8 release target. - FE Checkstyle: passed via Maven `validate` with `-Dcheckstyle.skip=false`. - BE formatting: repository `clang-format.sh` and `check-format.sh` passed using clang-format 16.0.6. - The original IP SQL regression suite and generated expectations are carried over unchanged from #71284. - No local full BE build or live-cluster SQL regression was run for these backports; those remain for CI. The large-OFFSET production change is identical to #71302. ### Release note Fix missing rows for hash-distributed IPv4/IPv6 equality and IN queries, including short-circuit point queries, and prevent sorted-run merging from stalling on large OFFSET values. ### Check List (For Author) - Test: focused FE unit tests and style checks; original IP SQL regression and generated expectations included. - Behavior changed: Yes; affected IP queries return existing rows and large-offset merging makes progress. - Does this need documentation: No. ### AI Disclosure - Tool: Codex. - Generated: branch adaptations, validation, and PR description. - Human review: upstream fixes were reviewed and merged; this combined backport awaits review. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
