Skip to content

Conversation

@07ARB
Copy link
Contributor

@07ARB 07ARB commented Oct 23, 2019

What changes were proposed in this pull request?

This is a follow-up of #24052 to correct assert condition.

Why are the changes needed?

To test IllegalArgumentException condition..

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manual Test (during fixing of SPARK-29453 find this issue)

…lass

 ###What changes were proposed in this pull request?
 This is a follow-up of apache#24052 to correct assert condition.

 ###Why are the changes needed?
 To test IllegalArgumentException condition..

 ###Does this PR introduce any user-facing change?
 No.

 ###How was this patch tested?
 Manual Test (during fixing of SPARK-29453 find this issue)

Author: 07ARB <[email protected]>
Copy link
Contributor

@HeartSaVioR HeartSaVioR left a comment

Choose a reason for hiding this comment

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

LGTM

@07ARB
Copy link
Contributor Author

07ARB commented Oct 23, 2019

@HeartSaVioR , Please check this two statement in AllExecutionsPageSuite.scala Testname : "sorting should be successful"
val html = renderSQLPage(request, tab, statusStore).toString().toLowerCase(Locale.ROOT)
assert(!html.contains("IllegalArgumentException"))

@HeartSaVioR
Copy link
Contributor

Yeah I know what this patch is fixing, so left +1 (non-binding). The change won't make existing test fail, right?

@07ARB
Copy link
Contributor Author

07ARB commented Oct 23, 2019

Yeah I know what this patch is fixing, so left +1 (non-binding). The change won't make existing test fail, right?

yes

@wangyum
Copy link
Member

wangyum commented Oct 24, 2019

cc @shahidki31

@wangyum
Copy link
Member

wangyum commented Oct 24, 2019

ok to test

@dongjoon-hyun
Copy link
Member

Hi, @07ARB . Thank you for splitting this.
I update the PR description style properly.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-29571][SQL][TESTS][FOLLOWUP]Fix UT in AllExecutionsPageSuite class [SPARK-29571][SQL][TESTS][FOLLOWUP] Fix typo in AllExecutionsPageSuite Oct 24, 2019
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-29571][SQL][TESTS][FOLLOWUP] Fix typo in AllExecutionsPageSuite [SPARK-29571][SQL][TESTS][FOLLOWUP] Fix UT in AllExecutionsPageSuite Oct 24, 2019
@07ARB
Copy link
Contributor Author

07ARB commented Oct 24, 2019

LGTM

@HeartSaVioR, @dongjoon-hyun ,@shahidki31 Thank you

@SparkQA
Copy link

SparkQA commented Oct 24, 2019

Test build #112575 has finished for PR 26234 at commit cce2fcc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to master.

when(request.getParameterMap()).thenReturn(map)
val html = renderSQLPage(request, tab, statusStore).toString().toLowerCase(Locale.ROOT)
assert(!html.contains("IllegalArgumentException"))
assert(!html.contains("illegalargumentexception"))
Copy link
Member

Choose a reason for hiding this comment

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

BTW, how come the tests passed before, @07ARB?

Copy link
Contributor

Choose a reason for hiding this comment

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

So the problem was that the assertion effectively doesn't verify anything - finding upper&lower string from lowercased string.

Copy link
Member

Choose a reason for hiding this comment

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

ah right, I misread :-).

@07ARB 07ARB deleted the SPARK-29571 branch October 25, 2019 06:51
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.

8 participants