Skip to content

Conversation

@iRakson
Copy link
Contributor

@iRakson iRakson commented Jun 13, 2020

What changes were proposed in this pull request?

Sorting result for duration column in tables of structured streaming tab is wrong sometimes.
Screenshot 2020-06-13 at 1 58 53 PM

We are sorting on string, which results in this behaviour.
sorttable_numeric and sorttable_customkey is used to fix this.

Refer this and this

After changes :
Screenshot 2020-06-13 at 8 05 32 PM

Why are the changes needed?

Sorting results are wrong for duration column in tables of structured streaming tab.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Screenshots attached.

@iRakson iRakson changed the title Fix sorting for structured streaming tab [SPARK-31983][WEBUI][3.0] Fix sorting for duration column in structured streaming tab Jun 13, 2020
@iRakson
Copy link
Contributor Author

iRakson commented Jun 13, 2020

@SparkQA
Copy link

SparkQA commented Jun 13, 2020

Test build #123978 has finished for PR 28823 at commit dcf5035.

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

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me.

sarutak pushed a commit that referenced this pull request Jun 15, 2020
…ed streaming tab

### What changes were proposed in this pull request?
Sorting result for duration column in tables of structured streaming tab is wrong sometimes.
<img width="1677" alt="Screenshot 2020-06-13 at 1 58 53 PM" src="https://user-images.githubusercontent.com/15366835/84572178-10755700-adb6-11ea-9131-338e8ba7fb24.png">

We are sorting on string, which results in this behaviour.
`sorttable_numeric` and `sorttable_customkey` is used to fix this.

Refer [this](#28752 (comment)) and [this](#28752 (comment))

After changes :
<img width="1677" alt="Screenshot 2020-06-13 at 8 05 32 PM" src="https://user-images.githubusercontent.com/15366835/84572299-a8734080-adb6-11ea-9aa3-b4bc594de4cf.png">

### Why are the changes needed?
Sorting results are wrong for duration column in tables of structured streaming tab.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Screenshots attached.

Closes #28823 from iRakson/testsort.

Authored-by: iRakson <[email protected]>
Signed-off-by: Kousuke Saruta <[email protected]>
@sarutak
Copy link
Member

sarutak commented Jun 15, 2020

LGTM. Merged to branch-3.0.

@sarutak sarutak closed this Jun 15, 2020
@iRakson
Copy link
Contributor Author

iRakson commented Jun 15, 2020

Thank You. @srowen @sarutak :)

holdenk pushed a commit to holdenk/spark that referenced this pull request Jun 25, 2020
…ed streaming tab

### What changes were proposed in this pull request?
Sorting result for duration column in tables of structured streaming tab is wrong sometimes.
<img width="1677" alt="Screenshot 2020-06-13 at 1 58 53 PM" src="https://user-images.githubusercontent.com/15366835/84572178-10755700-adb6-11ea-9131-338e8ba7fb24.png">

We are sorting on string, which results in this behaviour.
`sorttable_numeric` and `sorttable_customkey` is used to fix this.

Refer [this](apache#28752 (comment)) and [this](apache#28752 (comment))

After changes :
<img width="1677" alt="Screenshot 2020-06-13 at 8 05 32 PM" src="https://user-images.githubusercontent.com/15366835/84572299-a8734080-adb6-11ea-9aa3-b4bc594de4cf.png">

### Why are the changes needed?
Sorting results are wrong for duration column in tables of structured streaming tab.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Screenshots attached.

Closes apache#28823 from iRakson/testsort.

Authored-by: iRakson <[email protected]>
Signed-off-by: Kousuke Saruta <[email protected]>
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.

4 participants