Skip to content

Don't throw IOException from PointValues metadata methods - #16387

Merged
romseygeek merged 2 commits into
apache:mainfrom
romseygeek:numerics/ioexception
Jul 14, 2026
Merged

Don't throw IOException from PointValues metadata methods#16387
romseygeek merged 2 commits into
apache:mainfrom
romseygeek:numerics/ioexception

Conversation

@romseygeek

Copy link
Copy Markdown
Contributor

Metadata is loaded at segment open time and doesn't require any IO to load once the IndexReader is available. Stop throwing IOException from these methods.

Metadata is loaded at segment open time and doesn't require
any IO to load once the IndexReader is available.  Stop throwing
IOException from these methods.
}
}
return maxPackedValue;
} catch (IOException e) {

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.

❤️

ASC_SORT ? points.getMinPackedValue() : points.getMaxPackedValue();
return LongPoint.decodeDimension(sortValue, 0);
}
} catch (IOException _) {

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.

❤️

@iverase iverase 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

@romseygeek
romseygeek merged commit 0c57b5a into apache:main Jul 14, 2026
12 checks passed
@romseygeek
romseygeek deleted the numerics/ioexception branch July 14, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants