Skip to content

fix(jdbc): skip slash-only prefixes in optimized overlap queries - #5029

Open
vigneshio wants to merge 2 commits into
apache:mainfrom
vigneshio:fix/jdbc-overlap-odd-root-prefixes
Open

fix(jdbc): skip slash-only prefixes in optimized overlap queries#5029
vigneshio wants to merge 2 commits into
apache:mainfrom
vigneshio:fix/jdbc-overlap-odd-root-prefixes

Conversation

@vigneshio

Copy link
Copy Markdown
Contributor

Fixes #5023.

Follow-up from the side note on #5003.

When building JDBC optimized location-overlap queries, scheme stripping turns paths like s3://bucket/tmp/location into //bucket/tmp/location. The prefix walk then emitted slash-only terms (/, //) that are not real storage locations.

@dimas-b dimas-b left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall with minor comments 👍

Comment thread CHANGELOG.md Outdated
@dimas-b
dimas-b requested a review from adutra August 14, 2026 16:03
Scheme stripping turns s3://bucket/path into //bucket/path, so the
prefix walk previously emitted / and // equality terms that are not
real storage locations. Skip slash-only prefixes when building the
overlap query. Same for file:/// paths that produced /// alone.

Fixes apache#5023
@vigneshio
vigneshio force-pushed the fix/jdbc-overlap-odd-root-prefixes branch from b513ba6 to 837b1dc Compare August 14, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Odd / and // paths in JDBC optimized location overlap checks

3 participants