[
https://issues.apache.org/jira/browse/ARROW-6472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16926320#comment-16926320
]
Ji Liu commented on ARROW-6472:
-------------------------------
cc [~pravindra] What do you think Liya's suggestion? If you have no objections,
I would fix that way.
> [Java] ValueVector#accept may has potential cast exception
> ----------------------------------------------------------
>
> Key: ARROW-6472
> URL: https://issues.apache.org/jira/browse/ARROW-6472
> Project: Apache Arrow
> Issue Type: Bug
> Components: Java
> Reporter: Ji Liu
> Assignee: Ji Liu
> Priority: Major
>
> Per discussion
> [https://github.com/apache/arrow/pull/5195#issuecomment-528425302]
> We may use API this way:
> {code:java}
> RangeEqualsVisitor visitor = new RangeEqualsVisitor(vector1, vector2);
> vector3.accept(visitor, range){code}
> if vector1/vector2 are say, {{StructVector}}s and vector3 is an {{IntVector}}
> - things can go bad. we'll use the {{compareBaseFixedWidthVectors()}} and do
> wrong type-casts for vector1/vector2.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)