mirror of
https://github.com/apache/impala.git
synced 2025-12-30 12:02:10 -05:00
Our .test file parser used to not abort tests when there is a malformed test/section. This patch changes that behavior to report an error and treat the test as failed. Quite a few tests were not well-formed, and were not executed as a result. This patch fixes those tests. Arguably, the test file parser should be more flexible in which places to accept comments, but this patch does not address that problem. Change-Id: If53358eb0cb958b68e51940b071e64c1d6c3ec6f Reviewed-on: http://gerrit.sjc.cloudera.com:8080/5468 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: jenkins
20 lines
900 B
Plaintext
20 lines
900 B
Plaintext
====
|
|
---- QUERY
|
|
# Pre IMPALA-875, IntLiterals with value 1 would be cast to TINYINT during analysis of
|
|
# the insert statement.
|
|
#
|
|
# In this example, we create a partitioned table with three partitions whose partition
|
|
# columns are equal when evaluated TINYINT (i.e. mod 1024). The backend will fail if
|
|
# more than one partition is considered a potential target for an INSERT when
|
|
# considering its statically specified partition keys.
|
|
DROP TABLE IF EXISTS functional.insert_partition_key_type_promotion;
|
|
CREATE TABLE functional.insert_partition_key_type_promotion (c int)
|
|
PARTITIONED BY (p int);
|
|
ALTER TABLE functional.insert_partition_key_type_promotion ADD PARTITION(p=1025);
|
|
ALTER TABLE functional.insert_partition_key_type_promotion ADD PARTITION(p=2049);
|
|
# Will fail pre IMPALA-875
|
|
INSERT INTO functional.insert_partition_key_type_promotion PARTITION(p=1) VALUES(1)
|
|
---- RESULTS
|
|
p=1/: 1
|
|
====
|