Skip to content

Conversation

@shahidki31
Copy link
Contributor

@shahidki31 shahidki31 commented Sep 29, 2018

What changes were proposed in this pull request?

Currently, SQL tab in the WEBUI doesn't support hiding table. Other tabs in the web ui like, Jobs, stages etc supports hiding table (refer SPARK-23024 #20216).
In this PR, added the support for hide table in the sql tab also.

How was this patch tested?

bin/spark-shell

sql("create table a (id int)")
for(i <- 1 to 100) sql(s"insert into a values ($i)")

Open SQL tab in the web UI

Before fix:

image

After fix: Consistent with the other tabs.

screenshot from 2018-09-30 00-11-28

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Please review http://spark.apache.org/contributing.html before opening a pull request.

…how features, when the table records very much.
@shahidki31
Copy link
Contributor Author

Jobs and stages page support hiding table. So to make it consistent, SQL tab also should behave the same.
screenshot from 2018-09-30 00-15-08
screenshot from 2018-09-30 00-15-22

@shahidki31
Copy link
Contributor Author

cc @srowen @dongjoon-hyun

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.

I think it's OK. Do you need to collapse this one table though? It's the only thing on the page.
CC @ajbozarth in case he's still watching.

@shahidki31
Copy link
Contributor Author

Thanks @srowen for reviewing.

I think it's OK. Do you need to collapse this one table though? It's the only thing on the page.

There are 'Running', 'Completed' and 'Failed' tables in the SQL page. Similar to the Jobs page.
Also, all the pages ( Jobs, stages etc.) supports hiding table, except SQL page. So, behavior should be same for SQL page also, right?

Copy link
Member

@ajbozarth ajbozarth left a comment

Choose a reason for hiding this comment

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

@srowen I'm still watching, just too busy to review the larger PRs usually. This LGTM, nice to see more tables being collapsible.

@shahidki31
Copy link
Contributor Author

Thank you for the review @ajbozarth .

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.

That all makes sense, I see it now. I think this is a fine change.

@shahidki31
Copy link
Contributor Author

Thank you @srowen .

@shahidki31
Copy link
Contributor Author

Hi @srowen , @ajbozarth . Could you please merge the code, if there are no further comments.
Thanks.

@srowen
Copy link
Member

srowen commented Oct 1, 2018

@shahidki31 when changes aren't urgent, we usually leave them open at least a few days for comments. No need to ping unless it's been a week or something.

@SparkQA
Copy link

SparkQA commented Oct 1, 2018

Test build #4355 has finished for PR 22592 at commit ef40698.

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

@srowen
Copy link
Member

srowen commented Oct 1, 2018

Merged to master

@asfgit asfgit closed this in 3422fc0 Oct 1, 2018
@shahidki31
Copy link
Contributor Author

Thank you @srowen for merging.

@shahidki31 shahidki31 deleted the SPARK-25575 branch October 2, 2018 03:09
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…, to make it consistent with other tabs.

## What changes were proposed in this pull request?
Currently, SQL tab in the WEBUI doesn't support hiding table. Other tabs in the web ui like, Jobs, stages etc supports hiding table (refer SPARK-23024 apache#20216).
In this PR, added the support for hide table in the sql tab also.

## How was this patch tested?
bin/spark-shell
```
sql("create table a (id int)")
for(i <- 1 to 100) sql(s"insert into a values ($i)")
```
Open SQL tab in the web UI

**Before fix:**

![image](https://user-images.githubusercontent.com/23054875/46249137-f5c44880-c441-11e8-953a-a811e33ac24d.png)

**After fix:** Consistent with the other tabs.

![screenshot from 2018-09-30 00-11-28](https://user-images.githubusercontent.com/23054875/46249354-75074b80-c445-11e8-9417-28751fd8628a.png)

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Please review http://spark.apache.org/contributing.html before opening a pull request.

Closes apache#22592 from shahidki31/SPARK-25575.

Authored-by: Shahid <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…ables

## What changes were proposed in this pull request?
After the PR, apache#22592, SQL tab supports collapsing table.
However, after refreshing the page, it doesn't store it previous state. This was due to a typo in the argument list in the collapseTablePageLoadCommand().

## How was this patch tested?
bin/spark-shell
```
sql("create table a (id int)")
for(i <- 1 to 100) sql(s"insert into a values ($i)")
```
![screenshot from 2018-10-06 10-19-30](https://user-images.githubusercontent.com/23054875/46567490-59bea380-c951-11e8-9484-9aa2ee84b816.png)

Please review http://spark.apache.org/contributing.html before opening a pull request.

Closes apache#22650 from shahidki31/SPARK-25575-followUp.

Authored-by: Shahid <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
srowen pushed a commit that referenced this pull request Nov 4, 2019
…s, to make it consistent with other tabs

### What changes were proposed in this pull request?

Currently, JDBC/ODBC tab in the WEBUI doesn't support hiding table. Other tabs in the web ui like, Jobs, stages, SQL etc supports hiding table (refer #22592).
In this PR, added the support for hide table in the jdbc/odbc tab also.

### Why are the changes needed?
Spark ui about the contents of the form need to have hidden and show features, when the table records very much. Because sometimes you do not care about the record of the table, you just want to see the contents of the next table, but you have to scroll the scroll bar for a long time to see the contents of the next table.

### Does this PR introduce any user-facing change?
No, except support of hide table

### How was this patch tested?
Manually tested
 ![Screenshot 2019-11-01 at 12 10 05 PM](https://user-images.githubusercontent.com/23054875/68007364-61aa5d80-fca1-11e9-841e-c5a7382871fa.png)
![Screenshot 2019-11-01 at 12 10 43 PM](https://user-images.githubusercontent.com/23054875/68007355-5a834f80-fca1-11e9-844a-f4ba1a333db7.png)

Closes #26353 from shahidki31/hideTable.

Authored-by: shahid <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
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