mirror of
https://github.com/apache/impala.git
synced 2026-01-01 00:00:20 -05:00
Hue is moving to HiveServer2 but HiveServer2 does not have an "explain" RPC call. To support "explain", I added it to the language. An "explain" statement will return a result set: one row per explain line.
47 lines
990 B
Plaintext
47 lines
990 B
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
|
|
'PLAN FRAGMENT 0'
|
|
' PARTITION: RANDOM'
|
|
''
|
|
' WRITE TO HDFS table=functional.alltypessmall'
|
|
' overwrite=false'
|
|
' partitions: year,4'
|
|
''
|
|
' 0:SCAN HDFS'
|
|
' table=functional.alltypes #partitions=1 size=19.71KB'
|
|
' tuple ids: 0 '
|
|
====
|
|
---- QUERY
|
|
# Tests explain query
|
|
explain select * from functional.alltypes
|
|
---- TYPES
|
|
string
|
|
---- RESULTS
|
|
'PLAN FRAGMENT 0'
|
|
' PARTITION: UNPARTITIONED'
|
|
''
|
|
' 1:EXCHANGE'
|
|
' tuple ids: 0 '
|
|
''
|
|
'PLAN FRAGMENT 1'
|
|
' PARTITION: RANDOM'
|
|
''
|
|
' STREAM DATA SINK'
|
|
' EXCHANGE ID: 1'
|
|
' UNPARTITIONED'
|
|
''
|
|
' 0:SCAN HDFS'
|
|
' table=functional.alltypes #partitions=24 size=478.45KB'
|
|
' tuple ids: 0 '
|
|
====
|
|
|