Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In this JIRA, we will enhance the run-time code generation component, in the following ways:
1. Allow generate the run-time code for function whose parameter is FieldReader. A parameter FieldReader could match an argument of Repeated List, Repeated Map, or an element in Repeated List/map, or any nested complex type.
2. In addition, FieldReader will also match any singular value, such as int, float4, varchar.
With this support enabled, one could implement a function with parameter FieldReader to match any simple or complex nested type.
As an example of how to leverage this new code generation logic, we add a new function "convert_toJson", which will convert any simple or complex type into a string in json format.
@Param FieldReader input;
@Output VarBinaryHolder out;