Skip to content

Conversation

@novatechflow
Copy link
Member

@novatechflow novatechflow commented Jan 19, 2026

Separates determinism fixes/tests from Spark DataFrames work. Cherry-picks commits 7bcf2ff and 93fbadb from PR #647.

  • Stable comparator + ordered sets for deterministic selection
  • Adds determinism tests for plan enumeration and channel conversion

solves #634

…rdered sets for scope/slot tracking, add stable cost tiebreaker, and cover with determinism tests.
@novatechflow novatechflow mentioned this pull request Jan 19, 2026

private static String describeInputSlot(InputSlot<?> slot) {
if (slot == null) {
return "null";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't this just return an actual null then? String is nullable, so this can be a valid value.
Or would this be a problem on comparison later on?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returning a "real" null would break the deterministic identifier: the values are .sorted() and then joined, and sorted() throws on nulls. The literal "null" keeps it stable and safe for comparison/concatenation. We could switch to real nulls only if we add null-safe sorting/joining.


private static String describeChannel(Channel channel, boolean isSourceChannel) {
if (channel == null) {
return "null";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the comment about null on other describeX above.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants