Skip to content

Conversation

@amanomer
Copy link
Contributor

@amanomer amanomer commented Sep 21, 2019

What changes were proposed in this pull request?

Setting custom sort key for duration and execution time column.

Why are the changes needed?

Sorting on duration and execution time columns consider time as a string after converting into readable form which is the reason for wrong sort results as mentioned in SPARK-29053.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Test manually.

Back-port of commit 93ac4e1

Setting custom sort key for duration and execution time column.

Sorting on duration and execution time columns consider time as a string after converting into readable form which is the reason for wrong sort results as mentioned in [SPARK-29053](https://issues.apache.org/jira/browse/SPARK-29053).

No

Test manually. Screenshots are attached.

After patch:
**Duration**
![Duration](https://user-images.githubusercontent.com/40591404/65339861-93cc9800-dbea-11e9-95e6-63b107a5a372.png)
**Execution time**
![Execution Time](https://user-images.githubusercontent.com/40591404/65339870-97601f00-dbea-11e9-9d1d-690c59bc1bde.png)

Closes apache#25855 from amanomer/SPARK29053.

Authored-by: aman_omer <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
@amanomer
Copy link
Contributor Author

cc @srowen

@HyukjinKwon
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Sep 21, 2019

Test build #111121 has finished for PR 25882 at commit b1978d2.

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

@wangyum
Copy link
Member

wangyum commented Sep 22, 2019

@amanomer Could you rename PR title to [SPARK-29053][WEBUI][2.4] Sort does not work on some columns?

@amanomer amanomer changed the title [SPARK-29053][WEBUI] Sort does not work on some columns [SPARK-29053][WEBUI][2.4] Sort does not work on some columns Sep 22, 2019
@amanomer
Copy link
Contributor Author

Thanks @wangyum

@wangyum
Copy link
Member

wangyum commented Sep 22, 2019

@amanomer Please add [SPARK-28599] to PR title.

@amanomer amanomer changed the title [SPARK-29053][WEBUI][2.4] Sort does not work on some columns [SPARK-29053][SPARK-28599][WEBUI][2.4] Sort does not work on some columns Sep 22, 2019
@SparkQA
Copy link

SparkQA commented Sep 22, 2019

Test build #111157 has finished for PR 25882 at commit f788acf.

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

@srowen
Copy link
Member

srowen commented Sep 22, 2019

@wangyum does this really address SPARK-28599? this seems to just sort the current page? which brings up an issue of whether that's confusing (or maybe I misunderstood). In any event, this one is just a back-port; does the original PR address it too?

<td>{info.groupId}</td>
<td>{formatDate(info.startTimestamp)}</td>
<td>{formatDate(info.finishTimestamp)}</td>
<td>{formatDurationOption(Some(info.totalTime))}</td>
Copy link
Member

@wangyum wangyum Sep 22, 2019

Choose a reason for hiding this comment

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

@srowen This change to backport SPARK-28599.
Or we should revert this change and make another PR to make it clear?

Copy link
Member

Choose a reason for hiding this comment

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

I see, these are really duplicates? I would first merge #25892 then, but, hm, how is it not a merge conflict? I'm missing something.

My larger point was: does this actually mean you sort all of the entries when there are many pages of them? or just the current page?

Copy link
Member

Choose a reason for hiding this comment

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

#25855 for ThriftServerPage, #25892 for ThriftServerSessionPage. We can support all pages in ThriftServerTab after this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Oh I see. Well, want to at least merge #25892 first and then include it here? we can back-port it separately, too.

Copy link
Member

Choose a reason for hiding this comment

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

I'll review #25892 now and merge it soon. And, +1 for backporting separately.

Copy link
Contributor Author

@amanomer amanomer Sep 22, 2019

Choose a reason for hiding this comment

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

Ok. I have reverted my last commit and created another PR #25893 to back-port #25892 to branch-2.4.
Kindly review it

@amanomer amanomer changed the title [SPARK-29053][SPARK-28599][WEBUI][2.4] Sort does not work on some columns [SPARK-29053][WEBUI][2.4] Sort does not work on some columns Sep 22, 2019
@amanomer
Copy link
Contributor Author

@srowen @dongjoon-hyun

@SparkQA
Copy link

SparkQA commented Sep 22, 2019

Test build #111167 has finished for PR 25882 at commit 52edb8d.

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

srowen pushed a commit that referenced this pull request Sep 23, 2019
### What changes were proposed in this pull request?
Setting custom sort key for duration and execution time column.

### Why are the changes needed?
Sorting on duration and execution time columns consider time as a string after converting into readable form which is the reason for wrong sort results as mentioned in [SPARK-29053](https://issues.apache.org/jira/browse/SPARK-29053).

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

### How was this patch tested?
Test manually.

Back-port of commit 93ac4e1

Closes #25882 from amanomer/BP29053.

Authored-by: aman_omer <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
@srowen
Copy link
Member

srowen commented Sep 23, 2019

Merged to 2.4

@srowen srowen closed this Sep 23, 2019
@amanomer
Copy link
Contributor Author

Thank you @srowen

@dongjoon-hyun
Copy link
Member

Thank you all!

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.

6 participants