Files
impala/testdata/workloads/functional-query/queries/QueryTest/describe.test
Henry Robinson 91c3b979ca IMP-370: SHOW TABLES IN support and IMP-363: SHOW DATABASES
Change-Id: Ic41c4b0767a0480f0a18e1e985f25de3bc2ca947
2014-01-08 10:45:59 -08:00

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'
====