hive icon indicating copy to clipboard operation
hive copied to clipboard

HIVE-28334 Support queries with function expression in the prepare execute workflow

Open ramesh0201 opened this issue 1 year ago • 1 comments

What changes were proposed in this pull request?

Queries with function expression throw error as their ObjectInspector is not initialized. As part of prepare execute execute workflow, we serialize and deserialize plan during execute analyzer. During this step, ExprNodeGenericFuncDesc's ObjectInspector field is not initialized as it is a transient field and is never part of the serialized byte array. Assuming it can be null, we try to populate the field when required.

Why are the changes needed?

To make any queries with function expression work as part of the prepare execute workflow.

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

mvn test -Dtest=TestMiniLlapLocalCliDriver -Dqfile=prepare_plan_func_expr.q

ramesh0201 avatar Jun 18 '24 00:06 ramesh0201