mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
50 lines
980 B
Plaintext
50 lines
980 B
Plaintext
# Simple describe (note Hive does not support this)
|
|
describe default.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'
|
|
====
|
|
USE default
|
|
====
|
|
# 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'
|
|
====
|
|
# Different database. TODO: test USE testdb1 followed by describe <table only in testdb1>, when one exists.
|
|
describe testdb1.testtbl
|
|
---- TYPES
|
|
string, string
|
|
---- RESULTS
|
|
'id','bigint'
|
|
'name','string'
|
|
'birthday','string'
|
|
====
|