Repository navigation
feat(workflow-operator): require a Name Column in Pie Chart - #9633
Draft
Matthew-DWM wants to merge 1 commit into
Draft
Matthew-DWM wants to merge 1 commit into
Matthew-DWM wants to merge 1 commit into
Conversation
Pie Chart declared its Name Column required with @NotNull, which accepts an empty string, and only the Value Column was asserted non-empty. An empty name therefore passed code generation and reached pandas as dropna(subset=[value, ""]), failing the run with a KeyError. Both generation stages now assert the name is non-empty, as Radar Chart does, so the editor reports "Name Column cannot be empty" as a compile error before anything runs. The test that pinned the old asymmetry is replaced by rejection tests for each stage.
Contributor
Automated Reviewer SuggestionsBased on the
|
Matthew-DWM
marked this pull request as draft
November 23, 2026 17:49
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Pie Chart marks its Name Column as required with
@NotNull, which accepts an empty string, and only the Value Column was checked for being non-empty. A Pie Chart with Value set and Name left blank therefore compiled, and the run failed in pandas.manipulateTableandcreatePlotlyFigurenow assert that the name is non-empty, right after the existing Value check and with the message Radar Chart uses. The compiler already turns an assertion raised during code generation into an error on that operator, so the editor shows it before anything runs.Any related issues, documentation, discussions?
Closes #8167. Builds on #8168 by @carloea2.
How was this PR tested?
The new tests were written before the fix and all pass with it; 3 of them fail on
main.PieChartOpDescSpecreplaces the test that pinned the old behaviour ("render successfully when only name is empty") with three tests. Each sets Value, leaves Name empty, and expects "Name Column cannot be empty" frommanipulateTable,createPlotlyFigureandgeneratePythonCoderespectively. The existing tests that expect the Value error first still pass, and all 11 tests in the spec pass.WorkflowOperator/testpasses (3,016 unit and 85 integration tests), as doWorkflowCompiler/test(87) andscalafmtCheckAll/scalafixAll --check.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)