Files
impala/testdata/workloads/targeted-perf/queries/string.test
Skye Wanderman-Milne c79cd3aa23 Add targted-perf query that makes local expr allocations
Change-Id: Ida40481cb429227058d78c619820de23f5c4a15e
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4772
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins
2014-10-07 15:48:32 -07: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
====
# Make sure we free local expr allocations
---- QUERY: PERF_STRING-Q7
SELECT count(*) FROM lineitem
WHERE lower(l_comment) = 'egular courts above the'
---- RESULTS
1
---- TYPES
BIGINT
====