mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
IMPALA-3004: Fix QueryTest tests
Test files in testdata/workloads/functional-query/queries/QueryTest
are parsed by test_file_parser.py, which used to ignore everything
before the first ==== line as a file header. This change fixes all
affected files.
This change also modifies the test file parser to forbid headers
starting with what looks like a subsection title ('----'), which
should prevent the reintroduction of similar errors in the future.
Change-Id: Iaa1bc5ffd02782e24289c7843dcb35401c334519
Reviewed-on: http://gerrit.cloudera.org:8080/2220
Reviewed-by: Lars Volker <lv@cloudera.com>
Tested-by: Internal Jenkins
This commit is contained in:
committed by
Harrison Sheinblatt
parent
0589b86481
commit
6b566a2d35
5
testdata/workloads/functional-query/queries/QueryTest/invalid_header.test
vendored
Normal file
5
testdata/workloads/functional-query/queries/QueryTest/invalid_header.test
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
---- QUERY
|
||||
SELECT count(*) FROM functional.alltypes;
|
||||
---- RESULT
|
||||
0
|
||||
====
|
||||
Reference in New Issue
Block a user