Skip to content

ARROW-5637: [Java][C++][Gandiva] Complete In Expression Support#4662

Closed
praveenbingo wants to merge 5 commits intoapache:masterfrom
praveenbingo:in-expr
Closed

ARROW-5637: [Java][C++][Gandiva] Complete In Expression Support#4662
praveenbingo wants to merge 5 commits intoapache:masterfrom
praveenbingo:in-expr

Conversation

@praveenbingo
Copy link
Contributor

Complete the java and jni bindings for In expression.

@praveenbingo praveenbingo changed the title ARROW-5637:[Java][C++][Gandiva]Complete In Expression Support. ARROW-5637: [Java][C++][Gandiva]Complete In Expression Support. Jun 23, 2019
return TreeExprBuilder::MakeInExpressionBinary(field, stringvalues);
}
// not supported yet.
return nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

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

pls add an error message / exception.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

private final Set<byte[]> binaryValues;
private final Field field;

private InNode(Set<Integer> values, Set<Long> longValues, Set<String> stringValues, Set<byte[]>
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks a bit ugly - but I guess there's no easy way to restrict the types.

Copy link
Contributor Author

@praveenbingo praveenbingo Jun 23, 2019

Choose a reason for hiding this comment

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

yeah..templates can be used but we would still need some way to build the protobuf.

}

@Test
public void testInExpr() throws GandivaException, Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

add a test with strings too ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<protobuf.version>2.5.0</protobuf.version>
<protobuf.version>2.6.1</protobuf.version>
Copy link
Contributor

Choose a reason for hiding this comment

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

sorry, missed this earlier. This could impact Dremio because it uses a different protobuf version. Can you please move the protobuf version change to a different PR ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sounds good..reverting this back.

e Please enter the commit message for your changes. Lines starting
@wesm wesm changed the title ARROW-5637: [Java][C++][Gandiva]Complete In Expression Support. ARROW-5637: [Java][C++][Gandiva] Complete In Expression Support Jun 23, 2019
@wesm wesm closed this in 5d3668f Jun 23, 2019
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
Complete the java and jni bindings for In expression.

Author: Praveen <praveen@dremio.com>

Closes apache#4662 from praveenbingo/in-expr and squashes the following commits:

82e1d34 <Praveen> Fix lint issues.
ce51188 <Praveen> Fix review comments.
d204f0d <Praveen> Address Review comments.
7722fa5 <Praveen> Fixed lint issues.
d2c448c <Praveen> Complete In Expression Support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants