Skip to content

Commit

Permalink
Merge 6d835f7 into c3a8704
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrn5 committed Oct 3, 2018
2 parents c3a8704 + 6d835f7 commit 26f495b
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -23,6 +23,7 @@ import java.net.URI
import scala.collection.mutable.ArrayBuffer

import org.apache.hadoop.fs.permission.{FsAction, FsPermission}
import org.apache.hadoop.hive.ql.metadata.HiveException
import org.apache.spark.sql.{CarbonDatasourceHadoopRelation, CarbonEnv, SparkSession}
import org.apache.spark.sql.CarbonExpressions.{CarbonSubqueryAlias => SubqueryAlias}
import org.apache.spark.sql.catalyst.TableIdentifier
Expand Down Expand Up @@ -208,7 +209,10 @@ class CarbonFileMetastore extends CarbonMetaStore {
try {
lookupRelation(tableIdentifier)(sparkSession)
} catch {
case _: Exception =>
case ex: Exception =>
if (ex.getCause.isInstanceOf[HiveException]) {
throw ex
}
return false
}
true
Expand Down

0 comments on commit 26f495b

Please sign in to comment.