Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-8862][SQL]Support multiple SQLContexts in Web UI #7962

Closed
wants to merge 2 commits into from
Closed

[SPARK-8862][SQL]Support multiple SQLContexts in Web UI #7962

wants to merge 2 commits into from

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Aug 5, 2015

This is a follow-up PR to solve the UI issue when there are multiple SQLContexts. Each SQLContext has a separate tab and contains queries which are executed by this SQLContext.

multiple sqlcontexts


private def nextTabName: String = {
val nextId = nextTabId.getAndIncrement()
if (nextId == 0) "sql" else s"sql${nextId}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think SQL should be in all caps in the tab name.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@JoshRosen
Copy link
Contributor

Does Streaming do this same sort of sequential numbering? Maybe that's less of an issue for Streaming given that they have a way to stop the context, whereas SQLContext doesn't really have a stop() method.

@SparkQA
Copy link

SparkQA commented Aug 5, 2015

Test build #39869 has finished for PR 7962 at commit 39b0c97.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • public static final class BinaryPrefixComparator extends PrefixComparator
    • public static final class BinaryPrefixComparatorDesc extends PrefixComparator
    • case class SequenceNumberRanges(ranges: Seq[SequenceNumberRange])
    • case class ArrayContains(left: Expression, right: Expression)
    • // class DataFrame

@zsxwing
Copy link
Member Author

zsxwing commented Aug 6, 2015

Does Streaming do this same sort of sequential numbering? Maybe that's less of an issue for Streaming given that they have a way to stop the context, whereas SQLContext doesn't really have a stop() method.

There is only one active StreamingContext at the same time in an application. So Streaming doesn't have such issue.

@SparkQA
Copy link

SparkQA commented Aug 6, 2015

Test build #39965 has finished for PR 7962 at commit cf661e1.

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

@rxin
Copy link
Contributor

rxin commented Aug 7, 2015

I've merged this. Thanks.

asfgit pushed a commit that referenced this pull request Aug 7, 2015
This is a follow-up PR to solve the UI issue when there are multiple SQLContexts. Each SQLContext has a separate tab and contains queries which are executed by this SQLContext.

<img width="1366" alt="multiple sqlcontexts" src="https://cloud.githubusercontent.com/assets/1000778/9088391/54584434-3bc2-11e5-9caf-94c2b0da528e.png">

Author: zsxwing <zsxwing@gmail.com>

Closes #7962 from zsxwing/multi-sqlcontext-ui and squashes the following commits:

cf661e1 [zsxwing] sql -> SQL
39b0c97 [zsxwing] Support multiple SQLContexts in Web UI

(cherry picked from commit 7aaed1b)
Signed-off-by: Reynold Xin <rxin@databricks.com>
@asfgit asfgit closed this in 7aaed1b Aug 7, 2015
@zsxwing zsxwing deleted the multi-sqlcontext-ui branch August 7, 2015 06:37
CodingCat pushed a commit to CodingCat/spark that referenced this pull request Aug 17, 2015
This is a follow-up PR to solve the UI issue when there are multiple SQLContexts. Each SQLContext has a separate tab and contains queries which are executed by this SQLContext.

<img width="1366" alt="multiple sqlcontexts" src="https://cloud.githubusercontent.com/assets/1000778/9088391/54584434-3bc2-11e5-9caf-94c2b0da528e.png">

Author: zsxwing <zsxwing@gmail.com>

Closes apache#7962 from zsxwing/multi-sqlcontext-ui and squashes the following commits:

cf661e1 [zsxwing] sql -> SQL
39b0c97 [zsxwing] Support multiple SQLContexts in Web UI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants