Github user akashrn5 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2791#discussion_r222537366
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonFileMetastore.scala
---
@@ -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
+ }
--- End diff --
here we arereturning false directly after catching exception, telling the
table does not exists, this is wrong, i have check the flow , we might get
hiveException(regarding permission) also if the user is not allowed to access
the table, that time also we return false and we will not get the proper error.
---