Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

where is wholestagecodegen gandiva function implement #2113 #528

Open
LiLiu88 opened this issue Oct 13, 2021 · 1 comment
Open

where is wholestagecodegen gandiva function implement #2113 #528

LiLiu88 opened this issue Oct 13, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@LiLiu88
Copy link

LiLiu88 commented Oct 13, 2021

val wholeStageCodeGenNode = TreeBuilder.makeFunction(
s"wholestagecodegen",
Lists.newArrayList(childCtx.root),
new ArrowType.Int(32, true))

In ColumnarWholeStageCodegenExec.scala

And some other functions, like codegen_left_schema or codegen_right_schema:
auto n_left = TreeExprBuilder::MakeFunction(
"codegen_left_schema",
{TreeExprBuilder::MakeField(table0_f0), TreeExprBuilder::MakeField(table0_f1),
TreeExprBuilder::MakeField(table0_f2)},
uint32());
auto n_right = TreeExprBuilder::MakeFunction(
"codegen_right_schema",
{TreeExprBuilder::MakeField(table1_f0), TreeExprBuilder::MakeField(table1_f1)},
uint32());

@LiLiu88 LiLiu88 added the bug Something isn't working label Oct 13, 2021
@zhztheplayer
Copy link
Collaborator

Some of the function implementations are located in codegen/arrowcompute rather than in codegen/gandiva. Although Gandiva's Java API may be leveraged.

Some of the function parameters (e.g. codegen_XXX_schema) are at fix orders in the parameter list so the function names might be there only as descriptions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants