Skip to content

AvroDataToCatalyst Unary Expression

AvroDataToCatalyst is a <> that represents from_avro function in a structured query.

[[creating-instance]] AvroDataToCatalyst takes the following when created:

  • [[child]] <>
  • [[jsonFormatSchema]] JSON-encoded Avro schema

AvroDataToCatalyst <>.

=== [[doGenCode]] Generating Java Source Code (ExprCode) For Code-Generated Expression Evaluation -- doGenCode Method

[source, scala]

doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode

NOTE: doGenCode is part of <> to generate a Java source code (ExprCode) for code-generated expression evaluation.

doGenCode requests the CodegenContext to generate code to reference this AvroDataToCatalyst instance.

In the end, doGenCode <> with the function f that uses <>.

=== [[nullSafeEval]] nullSafeEval Method

[source, scala]

nullSafeEval(input: Any): Any

NOTE: nullSafeEval is part of the <> to...FIXME.

nullSafeEval...FIXME