Skip to content

Conversation

@BryanCutler
Copy link
Member

This fixes a bug that when a ZeroVector is compared with a vector of any other type, it always returns true. Instead of hard-coding a return value of true in ZeroVector.accept, the RangeEqualsVisitor is used to compare the vector types.

@BryanCutler
Copy link
Member Author

cc @tianchen92

@BryanCutler BryanCutler changed the title Fix case when ZeroVector is compared against other vector types ARROW-6215: [Java] Fix case when ZeroVector is compared against other vector types Aug 12, 2019
@codecov-io
Copy link

Codecov Report

Merging #5070 into master will increase coverage by 2.1%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5070      +/-   ##
==========================================
+ Coverage    87.6%   89.71%    +2.1%     
==========================================
  Files        1009      670     -339     
  Lines      144082    99567   -44515     
  Branches     1418        0    -1418     
==========================================
- Hits       126227    89327   -36900     
+ Misses      17493    10240    -7253     
+ Partials      362        0     -362
Impacted Files Coverage Δ
cpp/src/arrow/csv/column-builder.cc 95.54% <0%> (-1.49%) ⬇️
cpp/src/plasma/thirdparty/ae/ae.c 70.75% <0%> (-0.95%) ⬇️
cpp/src/arrow/util/thread-pool-test.cc 97.66% <0%> (-0.94%) ⬇️
r/src/recordbatch.cpp
r/R/Table.R
js/src/util/fn.ts
go/arrow/array/bufferbuilder.go
r/src/symbols.cpp
rust/datafusion/src/execution/projection.rs
rust/datafusion/src/execution/filter.rs
... and 333 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e362b5d...7ad41be. Read the comment docs.

Copy link
Contributor

@tianchen92 tianchen92 left a comment

Choose a reason for hiding this comment

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

+1, LGTM

@BryanCutler
Copy link
Member Author

merged to master

@BryanCutler BryanCutler deleted the java-RangeEqualsVisitor-fix-ZeroVector-ARROW-6215 branch August 12, 2019 23:44
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
… vector types

This fixes a bug that when a ZeroVector is compared with a vector of any other type, it always returns true. Instead of hard-coding a return value of `true` in `ZeroVector.accept`, the `RangeEqualsVisitor` is used to compare the vector types.

Closes apache#5070 from BryanCutler/java-RangeEqualsVisitor-fix-ZeroVector-ARROW-6215 and squashes the following commits:

7ad41be <Bryan Cutler> Fix case when ZeroVector is compared against other vector types

Authored-by: Bryan Cutler <cutlerb@gmail.com>
Signed-off-by: Bryan Cutler <cutlerb@gmail.com>
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.

3 participants