aglinxinyuan commented on PR #9366: URL: https://github.com/apache/texera/pull/9366#issuecomment-6791395918
@Xiao-zhen-Liu thanks for the careful review — reworked in fa08044725 (tests in d0280bfb51). A later value now wins: a JVM `$var` takes it until it is bound, at the first row or when an input ends, and a Python UDF always reads the latest. An operator that changes `Loop Start`'s message sends it on before the change, `Loop End` applies `Loop Start`'s message first and every other message after it, whole, in arrival order, and the back-edge saves `Loop Start`'s names plus the names `update` binds at runtime, without modules, functions or classes. The version you reviewed also lost the loop's message at operators that read one input before another, such as the If's Condition port and a join's build side, which stopped the loop after one iteration; that's fixed now, and a body operator always sends its loop's message on. I also made the built-in If pass on a state without its condition, rewrote the title and description in plain English with a before/after table (the stamp defined once, "published" dropped), and moved the nested-loop outer scope to #9409. Two narrower cases stay as they are here and have their own issues: a state a body operator sends itself carries no stamp, so another branch's unchanged copy of it can still undo a change (#9410), and a change that reaches an operator only on the input it reads first is not kept there (#9411). -- 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]
