mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
46 lines
797 B
Plaintext
46 lines
797 B
Plaintext
====
|
|
---- QUERY
|
|
# Simple describe (note Hive does not support this)
|
|
describe functional.alltypes
|
|
---- TYPES
|
|
string, string
|
|
---- RESULTS
|
|
'id','int'
|
|
'bool_col','boolean'
|
|
'tinyint_col','tinyint'
|
|
'smallint_col','smallint'
|
|
'int_col','int'
|
|
'bigint_col','bigint'
|
|
'float_col','float'
|
|
'double_col','double'
|
|
'date_string_col','string'
|
|
'string_col','string'
|
|
'timestamp_col','timestamp'
|
|
'year','int'
|
|
'month','int'
|
|
====
|
|
---- QUERY
|
|
USE functional
|
|
====
|
|
---- QUERY
|
|
# Default database
|
|
describe alltypes
|
|
---- TYPES
|
|
string, string
|
|
---- RESULTS
|
|
'id','int'
|
|
'bool_col','boolean'
|
|
'tinyint_col','tinyint'
|
|
'smallint_col','smallint'
|
|
'int_col','int'
|
|
'bigint_col','bigint'
|
|
'float_col','float'
|
|
'double_col','double'
|
|
'date_string_col','string'
|
|
'string_col','string'
|
|
'timestamp_col','timestamp'
|
|
'year','int'
|
|
'month','int'
|
|
====
|
|
|