Skip to content

fix: checkSparkAnswer displays incorrect labels#3927

Merged
andygrove merged 1 commit intoapache:mainfrom
parthchandra:check-spark-answer
Apr 13, 2026
Merged

fix: checkSparkAnswer displays incorrect labels#3927
andygrove merged 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 !👍

@andygrove andygrove merged commit 38da631 into apache:main Apr 13, 2026
172 of 178 checks passed
@parthchandra
Copy link
Copy Markdown
Contributor Author

Thanks @andygrove, @coderfender @comphead. I did this because I misread (I should have known better) the results and went down a rabbit hole. Hopefully this will save others in future.

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