Files
impala/testdata/workloads/functional-query/queries/QueryTest/alloc-fail-update.test
Michael Ho 40f75fb1ba IMPALA-2925: Fix flaky tests in test_alloc_fail_update()
test_alloc_fail_update() aims to stress memory allocation
failure in the Update(), Serialize() and/or Finalize() functions
of UDAs. However, this test included some UDFs which allocated
memory in their Init() functions and not during their Update()
functions. This change removes those UDFs from the test.

Change-Id: I1ecc7e838e34ebc9ea3c878fee8ea2497b5fa23e
Reviewed-on: http://gerrit.cloudera.org:8080/2005
Reviewed-by: Matthew Jacobs <mj@cloudera.com>
Reviewed-by: Dan Hecht <dhecht@cloudera.com>
Tested-by: Internal Jenkins
2016-02-10 00:54:11 +00:00

53 lines
1.5 KiB
Plaintext

====
---- QUERY
# Due to somewhat non-determinstic way memory allocation happens in Impala now,
# we will just check to make sure the exception is a memory allocation failure.
select group_concat(l_comment) from tpch.lineitem
---- CATCH
failed to allocate
====
---- QUERY
select min(l_comment) from tpch.lineitem
---- CATCH
failed to allocate
====
---- QUERY
select max(l_comment) from tpch.lineitem
---- CATCH
failed to allocate
====
---- QUERY
select rank() over (partition by l_orderkey order by l_commitdate) from tpch.lineitem
---- CATCH
failed to allocate
====
---- QUERY
select first_value(l_comment) over (partition by l_orderkey order by l_commitdate) from tpch.lineitem
---- CATCH
failed to allocate
====
---- QUERY
select last_value(l_comment) over (partition by l_orderkey order by l_commitdate) from tpch.lineitem
---- CATCH
failed to allocate
====
---- QUERY
select cast(l_comment as char(120)) from tpch.lineitem
---- CATCH
failed to allocate
====
---- QUERY
# This aims to exercise malloc() failure in the Serialize() function of appx_median() but
# allocation can sometimes fail in the Init() functions as well.
select appx_median(l_quantity), appx_median(l_discount) from tpch.lineitem
---- CATCH
failed to allocate
====
---- QUERY
# This aims to exercise malloc() failure in the Serialize() functions of distinctpc() and
# ndv() but allocation can sometimes fail in the Init() functions as well.
select ndv(l_partkey), distinctpc(l_suppkey) from tpch.lineitem
---- CATCH
failed to allocate
====