Github user DaveBirdsall commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/62#discussion_r37598884
--- Diff: core/sql/optimizer/BindRelExpr.cpp ---
@@ -1571,6 +1569,21 @@ NATable *BindWA::getNATable(CorrName& corrName,
((QualifiedName&)(table->getTableName())).setIsVolatile(TRUE);
}
+ // For now, do not allow access through the Trafodion external name
created for
+ // the HIVE object unless the inDDL flag is set. inDDL is set for drop
+ // table and SHOWDDL statements.
+ // TDB - may want to merge the Trafodion version with the HIVE version.
+ // TDB - similar operation may be needed for external HBase tables
+ if ((table) && (table->isExternalTable() && (! bindWA->inDDL())))
--- End diff --
Does this give correct behavior, for example, if an external name is
referenced in the SELECT part of a "CREATE TABLE LIKE ... SELECT ..."
statement?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---