Github user zellerh commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/577#discussion_r71197478
--- Diff: core/sql/parser/sqlparser.y ---
@@ -6953,13 +6968,22 @@ del_stmt_w_acc_type_rtn_list_and_as_clause_col_list
: '(' delete_statement acce
table_name_as_clause_and_hint : table_name as_clause optimizer_hint
hbase_access_options
{
- $1->setCorrName(*$2);
- $$ = new (PARSERHEAP()) Scan(*$1);
- if ($3)
- $$->setHint($3);
- if ($4)
- ((Scan*)$$)->setHbaseAccessOptions($4);
-
+ NAString tmp =
((*$1).getQualifiedNameAsString());
+
if(SqlParser_CurrentParser->hasWithDefinition(&tmp) )
+ {
+ RelExpr *re =
SqlParser_CurrentParser->getWithDefinition(&tmp);
+ RenameTable *rt = new (PARSERHEAP())
RenameTable(re, *$2);
+ $$=rt->copyTree(PARSERHEAP());
--- End diff --
Same as above, could give an error if we see a hint or an HBase access
option.
---
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.
---