Skip to content

Commit

Permalink
Merge pull request apache#47 in BDP/apache-spark from spark-2.3.2-loa…
Browse files Browse the repository at this point in the history
…dv2table to netflix/2.3.2-unstable

Squashed commit of the following:

commit fec21fd4abab2ef27ae1f4199e3c75217b6a3e8e
Author: Vinitha Gankidi <[email protected]>
Date:   Tue Feb 26 14:58:13 2019 -0800

    NETFLIX-BUILD: loadV2Table should throw NoSuchTableException instead of returning None
  • Loading branch information
jzhuge committed Feb 26, 2019
1 parent 4c9c0c7 commit 6c7f339
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,7 @@ final class DataFrameWriter[T] private[sql](ds: Dataset[T]) {
}

private def loadV2Table(catalog: TableCatalog, ident: TableIdentifier): Option[Table] = {
try {
Option(catalog.loadTable(ident))
} catch {
case _: NoSuchTableException =>
None
}
Option(catalog.loadTable(ident))
}


Expand Down

0 comments on commit 6c7f339

Please sign in to comment.