The GitHub Actions job "Running Copilot Code Review" on texera.git/main has failed. Run started by GitHub user Copilot (triggered by Copilot).
Head commit for run: ada1cfe48e8fdcead95bcee851406af63d7aed16 / Kary Zheng <[email protected]> feat(workflow-operator): keep the rows Distinct's engine keeps for NaN and signed zero (#8975) ### What changes were proposed in this PR? Distinct's exported Python called `drop_duplicates`, which counts two NaN values as equal and 0.0 as equal to -0.0. The engine's `DistinctOpExec` keeps rows in a `LinkedHashSet` that compares them with Scala's `==`, under which NaN equals nothing, and hashes each double by its bits, so 0.0 and -0.0 land apart. The export therefore emitted fewer rows than the run it came from. The export now selects rows with `_texera_key_codes(in1df, signed=True)`, the shared helper from #8341: one code per row, equal exactly where the engine's rows are, so `duplicated()` keeps the first row of each key in input order. ### Any related issues, documentation, discussions? Closes #8974. ### How was this PR tested? `DistinctOpDescSpec` gains a test that runs `DistinctOpExec` and the exported Python over 1.0, NaN, 0.0, -0.0, null, 1.0, NaN, null, -0.0 and compares the rows in order. The engine keeps 6. The old export kept 4 and fails the test. It replaces the test that pinned the old `drop_duplicates` line. All 8 Distinct tests pass. `WorkflowToPythonResourceSpec`, which looked for `drop_duplicates` in the served script, now looks for `_texera_key_codes`. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Report URL: https://github.com/apache/texera/actions/runs/43217153157 With regards, GitHub Actions via GitBox
