The GitHub Actions job "Required Checks" on texera.git/feat/generated-op-number-refs has succeeded. Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).
Head commit for run: e33b951a2a81fd937d1e4597907d3e762a3651e4 / Xinyuan Lin <[email protected]> refactor: move loop-variable probing and reasons into LoopVariableBinding Move the probing and the judging of loop-variable references out of PythonOperatorDescriptor (the base trait of generated operators) and its companion object, and the text reasons that WorkflowCompiler worked out, into their own file, LoopVariableBinding.scala. The class LoopVariableBinding, which was nested in PythonOperatorDescriptor's companion and is now top-level, and its new companion object hold the probing that was in PythonOperatorDescriptor (the probe pairs, edge values, baseline and variant copies, finding where a value lands, the probing helpers and the JSON copy helpers), the check of whether code runs when the operator starts (runsAtStartup), the text check that was the trait's textsReadBeforeTheLoop, and the reasons the compiler used to work out for text references (the code embeds the text, does not read it, reads it when the operator starts, or the text names an output column), with their gating and order. PythonOperatorDescriptor now only calls LoopVariableBinding.of(this) and builds its physical operator from the binding; its companion keeps only loopVariableLookup and loopVariableValueLookup, the calls through which generated code reads a loop variable. The binding now decides the number, true/false and text reasons itself: the number and true/false reasons other than the schema one while it generates the code (LoopVariableBinding.of), and the schema and text reasons in reasons, given the input schemas when every input has one, which returns them all in the order the error prints them. The columns an operator adds come from the baseline's output schemas, computed once in reasons for both the schema check and the column check. The physical operator propagates its schemas with outputSchemas, which throws the schema reason too, from the same schema check, decidedBy. One helper, readsAtStartup, checks whether code reads a value or a text when the operator starts, and each pair of messages that differ only by "text" or "value" comes from a builder that takes the noun (unread, readAtStartup, decidesOutputSchema). For a generated operator, WorkflowCompiler.unbindableStateReferences only reports the binding's reasons; any other operator that runs code still gets the fixed-code reason there. getPhysicalPlan and getPhysicalOp from a binding are now final, so the physical operator always runs the code the binding judged. LoopVariableBinding.of and outputSchemas, which only the operator package calls, are private[operator]; unboundBySchema, textsReadBeforeTheLoop, runsAtStartup and the reason strings are private. WorkflowCompilerSpec's note on its test-only operators now names LoopVariableBinding as what parses their copies. Every compile error message is unchanged, and so is the order of its parts. Line counts: PythonOperatorDescriptor.scala 773 -> 134, WorkflowCompiler.scala 549 -> 459, new LoopVariableBinding.scala 838. Report URL: https://github.com/apache/texera/actions/runs/43526033492 With regards, GitHub Actions via GitBox
