vdiravka commented on a change in pull request #1559: DRILL-540: Allow querying
hive views in Drill
URL: https://github.com/apache/drill/pull/1559#discussion_r243306828
##########
File path:
contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveAuthorizationHelper.java
##########
@@ -146,6 +147,12 @@ private void authorize(final HiveOperationType
hiveOpType, final List<HivePrivil
} catch (final HiveAccessControlException e) {
throw e;
} catch (final Exception e) {
+ if (toRead.size() == 1 &&
InfoSchemaConstants.IS_SCHEMA_NAME.equalsIgnoreCase(toRead.get(0).getObjectName()))
{
Review comment:
I think you meant `'hive.%'`, but not `'hi.%'`
Am I right, it solves the following case:
```
USE hive.some_db;
SHOW SCHEMAS LIKE 'hive.%'
```
But why it should be solved in scope of exception handling? What exception
is obtained and why it is obtained?
Looks like it is a fix for consequence, but not the root cause of the issue.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services