-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix "NullpointerException" when an operator is created initially #3193
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments.
Also can you elaborate more in the PR description?
@@ -6,12 +6,13 @@ | |||
|
|||
public class SortCriteriaUnit { | |||
|
|||
@JsonProperty(value = "attribute", required = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary?
@JsonSchemaTitle("Font Size") | ||
@JsonPropertyDescription("Font size of the Figure Factory Table") | ||
var fontSize: String = "12" | ||
|
||
@JsonProperty(required = false) | ||
@JsonProperty(required = false, defaultValue = "#000000") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does the default value need to be written twice?
This PR resolves the issues described in #3191 and addresses all related Python visualization operators. The fix involves removing unnecessary assertions and assigning default values to fields that were previously null.
The root cause of the issue was the early Python code generation during the transformation from a logical plan to a physical plan. This behavior is expected due to the decision to push schema propagation to the physical plan layer.