Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxingao committed Aug 27, 2020
1 parent d56f92d commit a50bf2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,7 @@ class Analyzer(
*/
private def lookupV2Relation(
identifier: Seq[String],
options: CaseInsensitiveStringMap = CaseInsensitiveStringMap.empty())
: Option[DataSourceV2Relation] =
options: CaseInsensitiveStringMap): Option[DataSourceV2Relation] =
expandRelationName(identifier) match {
case NonSessionCatalogAndIdentifier(catalog, ident) =>
CatalogV2Util.loadTable(catalog, ident) match {
Expand Down Expand Up @@ -1021,8 +1020,7 @@ class Analyzer(
// 3) If a v1 table is found, create a v1 relation. Otherwise, create a v2 relation.
private def lookupRelation(
identifier: Seq[String],
options: CaseInsensitiveStringMap = CaseInsensitiveStringMap.empty())
: Option[LogicalPlan] = {
options: CaseInsensitiveStringMap): Option[LogicalPlan] = {
expandRelationName(identifier) match {
case SessionCatalogAndIdentifier(catalog, ident) =>
lazy val loaded = CatalogV2Util.loadTable(catalog, ident).map {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class UnresolvedException[TreeType <: TreeNode[_]](tree: TreeType, function: Str
* Holds the name of a relation that has yet to be looked up in a catalog.
*
* @param multipartIdentifier table name
* @param options options for this relation
* @param options options to scan this relation. Only applicable to v2 table scan.
*/
case class UnresolvedRelation(
multipartIdentifier: Seq[String],
Expand Down

0 comments on commit a50bf2f

Please sign in to comment.