HIVE-28334 Support queries with function expression in the prepare execute workflow
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
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code