Files
impala/testdata/workloads/targeted-perf/queries/string.test
Martin Grund 89113544cd Fix targeted perf queries to deal with run-workload.py limitations.
This patch fixes the comment style in the queries to work properly with
the limitations of the run-workload.py script. This includes removing
quotes and + from comments that otherwise get interpreted.

Change-Id: I791e7bd4145717aa0628c56b93582cd207195039
Reviewed-on: http://gerrit.cloudera.org:8080/1689
Reviewed-by: Martin Grund <mgrund@cloudera.com>
Tested-by: Internal Jenkins
2016-01-05 00:52:38 +00:00

59 lines
1.0 KiB
Plaintext

====
---- QUERY: PERF_STRING-Q1
SELECT count(*) FROM lineitem
WHERE l_comment = 'egular courts above the'
---- RESULTS
1
---- TYPES
BIGINT
====
---- QUERY: PERF_STRING-Q2
SELECT count(*) FROM lineitem
WHERE l_comment LIKE 'egular courts above the'
---- RESULTS
1
---- TYPES
BIGINT
====
---- QUERY: PERF_STRING-Q3
SELECT count(*) FROM lineitem
WHERE l_comment LIKE 'egular courts above the%'
---- RESULTS
6
---- TYPES
BIGINT
====
---- QUERY: PERF_STRING-Q4
SELECT count(*) FROM lineitem
WHERE l_comment LIKE '%egular courts above the'
---- RESULTS
3
---- TYPES
BIGINT
====
---- QUERY: PERF_STRING-Q5
SELECT count(*) FROM lineitem
WHERE l_comment LIKE '%egular courts above the%'
---- RESULTS
28
---- TYPES
BIGINT
====
---- QUERY: PERF_STRING-Q6
SELECT count(*) FROM lineitem
WHERE l_comment LIKE 'egular courts above th%e'
---- RESULTS
2
---- TYPES
BIGINT
====
---- QUERY: PERF_STRING-Q7
-- Make sure we free local expr allocations
SELECT count(*) FROM lineitem
WHERE lower(l_comment) = 'egular courts above the'
---- RESULTS
1
---- TYPES
BIGINT
====