Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shengquan-ni
Copy link
Collaborator

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.

Copy link
Collaborator

@bobbai00 bobbai00 left a 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)
Copy link
Collaborator

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")
Copy link
Collaborator

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?

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

Successfully merging this pull request may close these issues.

2 participants