Files
impala/testdata/workloads/functional-query/queries/QueryTest/insert-mem-limit.test
Adam Tamas 7295edcc26 IMPALA-9680: Fixed compressed inserts failing
Modified the insert testfiles to get which database they need to
use for 'CREATE TABLE LIKE' dynamically.

Tests:
Did targeted exhaustive testruns in test_insert.py and
test_mt_dop.py and did a full exhaustive testrun.

Change-Id: Ib3c7ba02190f57a7ed40311c95a3dd9eca9b474d
Reviewed-on: http://gerrit.cloudera.org:8080/15816
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Reviewed-by: Csaba Ringhofer <csringhofer@cloudera.com>
2020-05-11 19:32:08 +00:00

19 lines
616 B
Plaintext

====
---- QUERY
create table alltypesinsert like $ORIGINAL_DB.alltypesinsert;
====
---- QUERY
# Check that hdfs writers respects mem_limit. mem_limit is tuned for a 3-node HDFS
# minicluster.
truncate alltypesinsert;
set mem_limit=64m;
insert into table alltypesinsert
partition (year, month) /* +noclustered */
select at1.id, at1.bool_col, at1.tinyint_col, at1.smallint_col, at1.int_col, at1.bigint_col,
at1.float_col, at1.double_col, at1.date_string_col, at1.string_col, at1.timestamp_col,
at1.year, at2.id as month
from functional.alltypes at1, functional.alltypes at2;
---- CATCH
Memory limit exceeded
====