LuciferYang commented on PR #59217:
URL: https://github.com/apache/spark/pull/59217#issuecomment-5981707323
Added `SPARK-59962: a definition in a DECLARE VARIABLE default is not
inlined like a command's` in a7876948c06. It builds a `CreateVariable` whose
default is `With(udf) { ref => ref * ref }` and asserts the UDF appears at most
once; with the `!c.isInstanceOf[CreateVariable]` guard dropped it fails with
two copies.
It checks "not inlined" rather than "the `With` is kept": on this branch the
default still goes through the generic case and is pre-evaluated under the
variable names, which is the SPARK-59954 bug that #59209 fixes. Once both are
in, the assertion can tighten to the `With` surviving.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]