You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Bruno Pusztahazi (JIRA)" <ji...@apache.org> on 2019/04/29 09:44:00 UTC

[jira] [Updated] (HIVE-21661) Add option to check q file syntax before execution

     [ https://issues.apache.org/jira/browse/HIVE-21661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno Pusztahazi updated HIVE-21661:
------------------------------------
    Attachment: HIVE-21661.1.patch

> Add option to check q file syntax before execution
> --------------------------------------------------
>
>                 Key: HIVE-21661
>                 URL: https://issues.apache.org/jira/browse/HIVE-21661
>             Project: Hive
>          Issue Type: Improvement
>          Components: Testing Infrastructure
>            Reporter: Bruno Pusztahazi
>            Assignee: Bruno Pusztahazi
>            Priority: Major
>         Attachments: HIVE-21661.1.patch
>
>
> Currently q file tests are executed line-by-line. This could lead to problems, e.g. when a q file has some long running queries and the last line contains a syntax error. In this case everything before the wrong line will be executed first, which could take a lot of time and only then will the test fail due to the syntax error.
> I propose a simple syntax checker that will check the q file for errors before executing any statements. This check can will be turned off by default and can be enabled with the following option: 
> {code:java}
> -Dtest.check.syntax=true{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)