Skip to content

Conversation

@wangyum
Copy link
Member

@wangyum wangyum commented Jun 28, 2019

What changes were proposed in this pull request?

This pr add two API for SessionCatalog:

def listTables(db: String, pattern: String, includeLocalTempViews: Boolean): Seq[TableIdentifier]

def listLocalTempViews(pattern: String): Seq[TableIdentifier]

Because in some cases listTables does not need local temporary view and sometimes only need list local temporary view.

How was this patch tested?

unit tests

@SparkQA
Copy link

SparkQA commented Jun 28, 2019

Test build #106985 has finished for PR 24995 at commit df4cb47.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@wangyum
Copy link
Member Author

wangyum commented Jun 28, 2019

retest this please

@SparkQA
Copy link

SparkQA commented Jun 28, 2019

Test build #106989 has finished for PR 24995 at commit df4cb47.

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

@wangyum
Copy link
Member Author

wangyum commented Jun 28, 2019

cc @juliuszsompolski

Copy link
Contributor

@juliuszsompolski juliuszsompolski left a comment

Choose a reason for hiding this comment

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

LGTM. cc @gatorsmile

Copy link
Member

@gatorsmile gatorsmile left a comment

Choose a reason for hiding this comment

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

LGTM

Merged to master.

@wangyum wangyum deleted the SPARK-28196 branch June 30, 2019 01:54
Tonix517 pushed a commit to Tonix517/spark that referenced this pull request Jul 3, 2019
…Is for SessionCatalog

## What changes were proposed in this pull request?

This pr add two API for [SessionCatalog](https://github.com/apache/spark/blob/df4cb471c9712a2fe496664028d9303caebd8777/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala):
```scala
def listTables(db: String, pattern: String, includeLocalTempViews: Boolean): Seq[TableIdentifier]

def listLocalTempViews(pattern: String): Seq[TableIdentifier]
```
Because in some cases `listTables` does not need local temporary view and sometimes only need list local temporary view.

## How was this patch tested?

unit tests

Closes apache#24995 from wangyum/SPARK-28196.

Authored-by: Yuming Wang <[email protected]>
Signed-off-by: gatorsmile <[email protected]>
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.

5 participants