Files
impala/testdata/datasets/functional/schema_constraints.csv
Alex Behm 19bab59854 Create/alter/describe tables with complex types.
This patch adds parsing of complex types and tests for using complex
types in various exprs and create/alter/describe stmts.

Change-Id: Ibc211a560c889f5ccfb616813700b923c89d8245
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3577
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3594
2014-07-23 17:26:14 -07:00

7.3 KiB

1# Table level constraints:
2# Allows for defining constraints on which file formats to generate for an individual
3# table. The table name should match the base table name defined in the schema template
4# file.
5table_name:stringids, constraint:restrict_to, table_format:hbase/none/none
6table_name:hbasecolumnfamilies, constraint:restrict_to, table_format:hbase/none/none
7table_name:insertalltypesagg, constraint:restrict_to, table_format:hbase/none/none
8table_name:alltypessmallbinary, constraint:restrict_to, table_format:hbase/none/none
9table_name:insertalltypesaggbinary, constraint:restrict_to, table_format:hbase/none/none
10table_name:hbasealltypeserror, constraint:restrict_to, table_format:hbase/none/none
11table_name:hbasealltypeserrornonulls, constraint:restrict_to, table_format:hbase/none/none
12table_name:alltypesinsert, constraint:restrict_to, table_format:text/none/none
13table_name:alltypesnopart_insert, constraint:restrict_to, table_format:text/none/none
14table_name:insert_overwrite_nopart, constraint:restrict_to, table_format:text/none/none
15table_name:insert_overwrite_partitioned, constraint:restrict_to, table_format:text/none/none
16table_name:insert_string_partitioned, constraint:restrict_to, table_format:text/none/none
17table_name:alltypesinsert, constraint:restrict_to, table_format:parquet/none/none
18table_name:alltypesnopart_insert, constraint:restrict_to, table_format:parquet/none/none
19table_name:alltypesinsert, constraint:restrict_to, table_format:text/none/none
20table_name:alltypesnopart_insert, constraint:restrict_to, table_format:text/none/none
21table_name:insert_overwrite_nopart, constraint:restrict_to, table_format:text/none/none
22table_name:insert_overwrite_partitioned, constraint:restrict_to, table_format:text/none/none
23table_name:insert_string_partitioned, constraint:restrict_to, table_format:text/none/none
24table_name:alltypesinsert, constraint:restrict_to, table_format:parquet/none/none
25table_name:alltypesnopart_insert, constraint:restrict_to, table_format:parquet/none/none
26table_name:insert_overwrite_nopart, constraint:restrict_to, table_format:parquet/none/none
27table_name:insert_overwrite_partitioned, constraint:restrict_to, table_format:parquet/none/none
28table_name:insert_string_partitioned, constraint:restrict_to, table_format:parquet/none/none
29table_name:old_rcfile_table, constraint:restrict_to, table_format:rc/none/none
30table_name:bad_text_lzo, constraint:restrict_to, table_format:text/lzo/block
31table_name:bad_seq_snap, constraint:restrict_to, table_format:seq/snap/block
32table_name:bad_parquet, constraint:restrict_to, table_format:parquet/none/none
33# TODO: Support Avro. Data loading currently fails for Avro because complex types
34# cannot be converted to the corresponding Avro types yet.
35table_name:allcomplextypes, constraint:restrict_to, table_format:text/none/none
36table_name:allcomplextypes, constraint:restrict_to, table_format:parquet/none/none
37table_name:allcomplextypes, constraint:restrict_to, table_format:hbase/none/none
38table_name:functional, constraint:restrict_to, table_format:text/none/none
39table_name:alltypeserror, constraint:exclude, table_format:parquet/none/none
40table_name:alltypeserrornonulls, constraint:exclude, table_format:parquet/none/none
41table_name:unsupported_types, constraint:exclude, table_format:parquet/none/none
42table_name:escapechartesttable, constraint:exclude, table_format:parquet/none/none
43table_name:TblWithRaggedColumns, constraint:exclude, table_format:parquet/none/none
44# the text_ tables are for testing test delimiters and escape chars in text files
45table_name:text_comma_backslash_newline, constraint:restrict_to, table_format:text/none/none
46table_name:text_dollar_hash_pipe, constraint:restrict_to, table_format:text/none/none
47table_name:text_thorn_ecirc_newline, constraint:restrict_to, table_format:text/none/none
48table_name:bad_serde, constraint:restrict_to, table_format:text/none/none
49table_name:rcfile_lazy_binary_serde, constraint:restrict_to, table_format:rc/none/none
50table_name:unsupported_partition_types, constraint:restrict_to, table_format:text/none/none
51table_name:nullformat_custom, constraint:exclude, table_format:parquet/none/none
52table_name:alltypes_view, constraint:restrict_to, table_format:text/none/none
53table_name:allcomplextypes_view, constraint:restrict_to, table_format:text/none/none
54table_name:alltypes_view, constraint:restrict_to, table_format:seq/snap/block
55table_name:alltypes_hive_view, constraint:restrict_to, table_format:text/none/none
56table_name:alltypes_view_sub, constraint:restrict_to, table_format:text/none/none
57table_name:alltypes_view_sub, constraint:restrict_to, table_format:seq/snap/block
58table_name:alltypes_parens, constraint:restrict_to, table_format:text/none/none
59table_name:complex_view, constraint:restrict_to, table_format:text/none/none
60table_name:complex_view, constraint:restrict_to, table_format:seq/snap/block
61table_name:view_view, constraint:restrict_to, table_format:text/none/none
62table_name:view_view, constraint:restrict_to, table_format:seq/snap/block
63# liketbl and tblwithraggedcolumns all have
64# NULLs in primary key columns. hbase does not support
65# writing NULLs to primary key columns.
66table_name:liketbl, constraint:exclude, table_format:hbase/none/none
67table_name:tblwithraggedcolumns, constraint:exclude, table_format:hbase/none/none
68# Tables with only one column are not supported in hbase.
69table_name:greptiny, constraint:exclude, table_format:hbase/none/none
70table_name:tinyinttable, constraint:exclude, table_format:hbase/none/none
71# overflow has a bigint that's too big. hbase may lose precision, hence this
72# table cannot be loaded.
73table_name:overflow, constraint:exclude, table_format:hbase/none/none
74# widerow has a single column with a single row containing a 10MB string. hbase doesn't
75# seem to like this.
76table_name:widerow, constraint:exclude, table_format:hbase/none/none
77# nullformat_custom is used in null-insert tests, which user insert overwrite,
78# which is not supported in hbase. The schema is also specified in HIVE_CREATE
79# with no corresponding LOAD statement.
80table_name:nullformat_custom, constraint:exclude, table_format:hbase/none/none
81table_name:unsupported_types, constraint:exclude, table_format:hbase/none/none
82# On CDH4, decimal can only be tested on formats Impala can write to (text and parquet)
83# TODO: add Avro once Hive or Impala can write Avro decimals
84table_name:decimal_tbl, constraint:restrict_to, table_format:text/none/none
85table_name:decimal_tiny, constraint:restrict_to, table_format:text/none/none
86table_name:decimal_tbl, constraint:restrict_to, table_format:parquet/none/none
87table_name:decimal_tiny, constraint:restrict_to, table_format:parquet/none/none
88# invalid_decimal_part_tbl[1,2,3] tables are used for testing invalid decimal
89# partition key values (see IMPALA-1040)
90table_name:invalid_decimal_part_tbl1, constraint:restrict_to, table_format:text/none/none
91table_name:invalid_decimal_part_tbl2, constraint:restrict_to, table_format:text/none/none
92table_name:invalid_decimal_part_tbl3, constraint:restrict_to, table_format:text/none/none
93table_name:avro_decimal_tbl, constraint:restrict_to, table_format:avro/snap/block
94# hbase doesn't seem to like very wide tables
95table_name:widetable_250_cols, constraint:exclude, table_format:hbase/none/none
96table_name:widetable_500_cols, constraint:exclude, table_format:hbase/none/none
97table_name:widetable_1000_cols, constraint:exclude, table_format:hbase/none/none