//** 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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…