Stamatis Zampetakis created HIVE-24681:
------------------------------------------

             Summary: Run positive/negative qtests with the same CLI drivers
                 Key: HIVE-24681
                 URL: https://issues.apache.org/jira/browse/HIVE-24681
             Project: Hive
          Issue Type: Improvement
          Components: Testing Infrastructure
            Reporter: Stamatis Zampetakis


Currently tests that should fail need to run with some variant of 
{{NegativeCliDriver}} which expects that the return code for a query is 
non-zero. Alternatively, we could include the error (if any) in the query 
output file itself and assert simply that the output didn't change. There are 
certain advantages in doing so:
* Simpler code and less classes to maintain;
* Possibility to mix positive/negative queries in the same .q file;
* Possibility to include multiple negative queries in the same .q file;
* No need for special directory structure for positive/negative tests;

The proposal above implies removing {{NegativeCliDriver}} and related code in 
favor of the regular CLI drivers.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to