Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
62 views
in Technique[技术] by (71.8m points)

java - How to make a modulo function in Apache Arrow?

//**  x%2==0 <-- This is the condition which I want to evaluate **//

Code using Apache Arrow looks like:

Field a = Field.nullable("a",int64);
TreeNode b = TreeBuilder.makeLiteral(2);
TreeNode zero =TreeBuilder.makeLiteral(0);

Now I want to make a modulo function to filter on condition whether entry in field a is even or not and then I want to segregate them. What are the next steps which I should add to this code? For ex: when I try :

TreeNodemodulo=TreeBuilder.makeFunction( "modulo",Lists.newArrayList(TreeBuilder.makeField(a),b),int32); it says that there is no such modulo function.

question from:https://stackoverflow.com/questions/65839235/how-to-make-a-modulo-function-in-apache-arrow

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...