You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by Koert Kuipers <ko...@tresata.com> on 2017/02/09 06:47:00 UTC
when is doGenCode called?
hello all,
i am trying to add an Expression to catalyst.
my Expression compiles fine and has:
override def eval(input: InternalRow): Any = ...
override def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode = ...
it also seems to run fine. but i only ever see eval get called. how do i
tell spark to use doGenCode instead of eval?
thanks! koert