Skip to content

[SPARK-38268][SQL] Hide the "failOnError" field in the toString method of Abs/CheckOverflow#35590

Closed
gengliangwang wants to merge 3 commits intoapache:masterfrom
gengliangwang:fixStabilitySuite
Closed

[SPARK-38268][SQL] Hide the "failOnError" field in the toString method of Abs/CheckOverflow#35590
gengliangwang wants to merge 3 commits intoapache:masterfrom
gengliangwang:fixStabilitySuite

Conversation

@gengliangwang
Copy link
Member

What changes were proposed in this pull request?

Hide the "failOnError" field in the toString method of Abs/CheckOverflow. Here are two examples:

  • Abs.toString: abs(-1, true) => abs(-1)
  • CheckOverflow.toString: CheckOverflow(0.12, DecimalType(5, 3), true) => CheckOverflow(0.12, DecimalType(5, 3))

Why are the changes needed?

After changes, over 200 test failures of *PlanStabilitySuite are fixed with ANSI mode on. This is important for setting up testing job for ANSI mode.
Also, having the "failOnError" field in the string output of Abs, e.g. abs(-1, true), is quite odd.

Does this PR introduce any user-facing change?

Yes but quite minor, hiding the "failOnError" field in the toString method of Abs/CheckOverflow

How was this patch tested?

Manual turn on ANSI mode and test all the *PlanStabilitySuite

@gengliangwang
Copy link
Member Author

Merging to master

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants