mirror of
https://github.com/apache/impala.git
synced 2026-01-04 00:00:56 -05:00
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
75 lines
1.3 KiB
Plaintext
75 lines
1.3 KiB
Plaintext
====
|
|
---- QUERY
|
|
select count(*) from functional.table_no_newline
|
|
---- RESULTS
|
|
5
|
|
---- TYPES
|
|
BIGINT
|
|
====
|
|
---- QUERY
|
|
select count(col_3) from functional.table_no_newline
|
|
---- RESULTS
|
|
5
|
|
---- TYPES
|
|
BIGINT
|
|
====
|
|
---- QUERY
|
|
select count(*) from functional.table_no_newline_part
|
|
---- RESULTS
|
|
11
|
|
---- TYPES
|
|
BIGINT
|
|
====
|
|
---- QUERY
|
|
select count(year) from functional.table_no_newline_part
|
|
---- RESULTS
|
|
11
|
|
---- TYPES
|
|
BIGINT
|
|
====
|
|
---- QUERY
|
|
select count(year) from functional.table_no_newline_part where year=2015
|
|
---- RESULTS
|
|
6
|
|
---- TYPES
|
|
BIGINT
|
|
====
|
|
---- QUERY
|
|
select count(col_3) from functional.table_no_newline_part where year=2015
|
|
---- RESULTS
|
|
3
|
|
---- TYPES
|
|
BIGINT
|
|
====
|
|
---- QUERY
|
|
select distinct year from functional.table_no_newline_part order by year
|
|
---- RESULTS
|
|
2010
|
|
2015
|
|
---- TYPES
|
|
INT
|
|
====
|
|
---- QUERY
|
|
select count(id), count(col_1), count(col_2), count(col_3), count(year), count(month) from functional.table_no_newline_part
|
|
---- RESULTS
|
|
10,10,9,8,11,11
|
|
---- TYPES
|
|
BIGINT,BIGINT,BIGINT,BIGINT,BIGINT,BIGINT
|
|
====
|
|
---- QUERY
|
|
select year, count(*) from functional.table_no_newline_part group by year order by year
|
|
---- RESULTS
|
|
2010,5
|
|
2015,6
|
|
---- TYPES
|
|
INT,BIGINT
|
|
====
|
|
---- QUERY
|
|
select year, count(col_3) from functional.table_no_newline_part group by year order by year
|
|
---- RESULTS
|
|
2010,5
|
|
2015,3
|
|
---- TYPES
|
|
INT,BIGINT
|
|
====
|