hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16190) Support expression in merge statement
Date Tue, 14 Mar 2017 05:23:41 GMT

    [ https://issues.apache.org/jira/browse/HIVE-16190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15923594#comment-15923594
] 

Pengcheng Xiong commented on HIVE-16190:
----------------------------------------

TestMergeStatement.testNegative5:

{code}
/**
   * why does this fail but next one passes
   * @throws ParseException
   */
  @Test
  public void testNegative5() throws ParseException {
    expectedException.expect(ParseException.class);
    expectedException.expectMessage("line 1:103 mismatched input '+' expecting ) near 'b'
in value row constructor");
    //todo: why does this fail but next one passes?
    ASTNode ast = parse(
      "MERGE INTO target USING source ON target.pk = source.pk WHEN NOT MATCHED THEN INSERT
VALUES(a,source.b + 1)");
  }
{code}

will remove it as we will support it.

> Support expression in merge statement
> -------------------------------------
>
>                 Key: HIVE-16190
>                 URL: https://issues.apache.org/jira/browse/HIVE-16190
>             Project: Hive
>          Issue Type: Bug
>          Components: Parser, Transactions
>    Affects Versions: 2.2.0
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>         Attachments: HIVE-16190.01.patch
>
>
> Right now, we only support atomExpression, rather than expression in values in MergeStatement.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message