-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-35528:[Java] Fix RangeEqualsVisitor comparing BitVector with different begin index #35525
Conversation
…ors have different begin index.
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format?
or
In the case of PARQUET issues on JIRA the title also supports:
See also: |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall. Thanks!
(Just one comment.)
import org.apache.arrow.vector.LargeVarCharVector; | ||
import org.apache.arrow.vector.VarCharVector; | ||
import org.apache.arrow.vector.ZeroVector; | ||
import org.apache.arrow.vector.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I realize this was probably the IDE but can this be reverted? For review it's easier to list out imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is reverted now~
…ors have different begin index.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, will merge after CI
Ah, CI is not happy since the imports have to be sorted |
…ors have different begin index.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Benchmark runs are scheduled for baseline = cdefbb8 and contender = 1624d5a. 1624d5a is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
['Python', 'R'] benchmarks have high level of regressions. |
… different begin index (apache#35525) ### Rationale for this change bugfix: RangeEqualsVisitor compare BitVector false when compared vectors have different begin index. In origin code, when compared vectors have different begin index, it will compare vectors value with same index, which is error logic. this pr is to fix it. ### What changes are included in this PR? only changes RangeEqualsVisitor.compareBaseFixedWidthVectors method, and add test ### Are these changes tested? yes. ### Are there any user-facing changes? no. * Closes: apache#35528 Authored-by: wenxianglan.233 <[email protected]> Signed-off-by: David Li <[email protected]>
… different begin index (apache#35525) ### Rationale for this change bugfix: RangeEqualsVisitor compare BitVector false when compared vectors have different begin index. In origin code, when compared vectors have different begin index, it will compare vectors value with same index, which is error logic. this pr is to fix it. ### What changes are included in this PR? only changes RangeEqualsVisitor.compareBaseFixedWidthVectors method, and add test ### Are these changes tested? yes. ### Are there any user-facing changes? no. * Closes: apache#35528 Authored-by: wenxianglan.233 <[email protected]> Signed-off-by: David Li <[email protected]>
Rationale for this change
bugfix: RangeEqualsVisitor compare BitVector false when compared vectors have different begin index.
In origin code, when compared vectors have different begin index, it will compare vectors value with same index, which is error logic. this pr is to fix it.
What changes are included in this PR?
only changes RangeEqualsVisitor.compareBaseFixedWidthVectors method, and add test
Are these changes tested?
yes.
Are there any user-facing changes?
no.