Zoltán Borók-Nagy created IMPALA-15818:
------------------------------------------

             Summary: Move the VARIANT function helpers out of 
variant-functions-ir.cc
                 Key: IMPALA-15818
                 URL: https://issues.apache.org/jira/browse/IMPALA-15818
             Project: IMPALA
          Issue Type: Sub-task
            Reporter: Zoltán Borók-Nagy


{{be/src/exprs/variant-functions-ir.cc}} has all the code of {{variant_get()}}, 
{{try_variant_get()}} and {{variant_to_json()}}. Besides the entry points, it 
has the path navigation, the error reporting and the conversion to each target 
type of the typed form: {{ToInt64()}}, {{ToDouble()}}, {{DoGetString()}} etc., 
and the decimal conversions of IMPALA-15611 and IMPALA-15811. IMPALA-15141 adds 
the file to the IR module, so all of this is cross-compiled.

That grows the IR without a clear gain. The helpers decode the VARIANT encoding 
at run time, so there is little for codegen to specialize.

Move the helpers to a new {{variant-functions.cc}}, and keep only thin entry 
points in {{variant-functions-ir.cc}}. Raised in the review of IMPALA-15611: 
https://gerrit.cloudera.org/#/c/25184/



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to