mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
Change-Id: I6b72e4e6cf2a7b38d4687c6f0f860e9744c9cedb Reviewed-on: http://gerrit.ent.cloudera.com:8080/675 Tested-by: jenkins Reviewed-by: Marcel Kornacker <marcel@cloudera.com>
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
---- QUERY
|
|
# Tests explain insert
|
|
explain insert into table functional.alltypessmall
|
|
partition (year, month=4)
|
|
select id, bool_col, tinyint_col, smallint_col, int_col, bigint_col,
|
|
float_col, double_col, date_string_col, string_col, timestamp_col, year
|
|
from functional.alltypes
|
|
where year>2009 and month=4
|
|
---- TYPES
|
|
string
|
|
---- RESULTS: VERIFY_IS_SUBSET
|
|
'PLAN FRAGMENT 0'
|
|
' PARTITION: RANDOM'
|
|
''
|
|
' WRITE TO HDFS table=functional.alltypessmall'
|
|
' overwrite=false'
|
|
' partition keys: year,4 #partitions: 2
|
|
''
|
|
' 0:SCAN HDFS'
|
|
' table=functional.alltypes #partitions=1/24 size=19.71KB'
|
|
' table stats: 7300 rows total'
|
|
' columns missing stats: timestamp_col'
|
|
====
|
|
---- QUERY
|
|
# Tests explain query
|
|
explain select * from functional.alltypes
|
|
---- TYPES
|
|
string
|
|
---- RESULTS: VERIFY_IS_SUBSET
|
|
'PLAN FRAGMENT 0'
|
|
' PARTITION: UNPARTITIONED'
|
|
''
|
|
' 1:EXCHANGE'
|
|
''
|
|
'PLAN FRAGMENT 1'
|
|
' PARTITION: RANDOM'
|
|
''
|
|
' STREAM DATA SINK'
|
|
' EXCHANGE ID: 1'
|
|
' UNPARTITIONED'
|
|
''
|
|
' 0:SCAN HDFS'
|
|
' table=functional.alltypes #partitions=24/24 size=478.45KB'
|
|
' table stats: 7300 rows total'
|
|
' columns missing stats: timestamp_col'
|
|
====
|