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

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

Bruno Pusztahazi created HIVE-21661:
---------------------------------------

             Summary: 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


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)