Skip to content

fix: checkSparkAnswer displays incorrect labels#3927

Open
parthchandra wants to merge 1 commit intoapache:mainfrom
parthchandra:check-spark-answer
Open

fix: checkSparkAnswer displays incorrect labels#3927
parthchandra wants to merge 1 commit intoapache:mainfrom
parthchandra:check-spark-answer

Conversation

@parthchandra
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

If a unit test fails because Comet's answer does not match Spark's answer, we print the wrong label in the output, labelling Comet's answer as Spark's answer. This is because we directly use Spark's checkAnswer which uses the label 'Spark's Answer'.
This is misleading and annoying.

What changes are included in this PR?

Implements a copy of Spark's checkAnswer with the right label.

How are these changes tested?

Added a ignored test that fails.

Copy link
Copy Markdown
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

Thanks @parthchandra. This issue has annoyed me for a long time!

Copy link
Copy Markdown
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

Thanks @parthchandra!

@coderfender
Copy link
Copy Markdown
Contributor

You are a savior @parthchandra !👍

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.

4 participants