Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Star Tree ] Handle unsigned long during flush and merge operations #16645

Open
Shailesh-Kumar-Singh opened this issue Nov 14, 2024 · 0 comments
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing untriaged

Comments

@Shailesh-Kumar-Singh
Copy link

Is your feature request related to a problem? Please describe

Parent issue - [Star tree] Handle 'unsigned long' as part of star tree #15231

During flush and merge operations, unsigned long values in number fields are stored as Java.Long. When the unsigned long exceeds Long.MAX_VALUE, the value becomes negative, causing issues with comparison.

Describe the solution you'd like

Numeric dimensions now include an isUnsignedLong flag to indicate whether the value is unsigned, which impacts sorting and comparison operations. During sorting, Long.compareUnsigned is used to handle unsigned long values, ensuring that they are correctly compared even when they exceed the maximum value of a signed long.

Related component

Indexing

Describe alternatives you've considered

No response

Additional context

No response

@Shailesh-Kumar-Singh Shailesh-Kumar-Singh added enhancement Enhancement or improvement to existing feature or request untriaged labels Nov 14, 2024
@github-actions github-actions bot added the Indexing Indexing, Bulk Indexing and anything related to indexing label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing untriaged
Projects
None yet
Development

No branches or pull requests

1 participant