==== ---- QUERY describe functional.alltypes ---- RESULTS 'id','int','Add a comment' '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','' ---- TYPES string, string, string ==== ---- QUERY # Test printing of complex types. describe functional.allcomplextypes ---- RESULTS 'id','int','' 'int_array_col','array','' 'array_array_col','array>','' 'map_array_col','array>','' 'struct_array_col','array>','' 'int_map_col','map','' 'array_map_col','map>','' 'map_map_col','map>','' 'struct_map_col','map>','' 'int_struct_col','struct<\n f1:int,\n f2:int\n>','' 'complex_struct_col','struct<\n f1:int,\n f2:array,\n f3:map\n>','' 'nested_struct_col','struct<\n f1:int,\n f2:struct<\n f11:bigint,\n f12:struct<\n f21:bigint\n >\n >\n>','' 'complex_nested_struct_col','struct<\n f1:int,\n f2:array>\n >>\n>','' 'year','int','' 'month','int','' ---- TYPES string, string, string ==== ---- QUERY describe functional_parquet.allcomplextypes.int_array_col ---- RESULTS 'item','int','' 'pos','bigint','' ---- TYPES string,string,string ==== ---- QUERY describe functional_parquet.allcomplextypes.map_array_col.item ---- RESULTS 'key','string','' 'value','int','' ---- TYPES string,string,string ==== ---- QUERY describe functional_parquet.allcomplextypes.complex_struct_col ---- RESULTS 'f1','int','' 'f2','array','' 'f3','map','' ---- TYPES string,string,string ==== ---- QUERY describe functional_parquet.allcomplextypes.complex_struct_col.f2 ---- RESULTS 'item','int','' 'pos','bigint','' ---- TYPES string,string,string ==== ---- QUERY describe functional_parquet.allcomplextypes.nested_struct_col ---- RESULTS 'f1','int','' 'f2','struct<\n f11:bigint,\n f12:struct<\n f21:bigint\n >\n>','' ---- TYPES string,string,string ==== ---- QUERY # Test describing structs within collections. create table if not exists nested_structs ( map_array_struct_col map>>, struct_array_struct_col struct>>, map_array_map_struct_col map>>>) ---- RESULTS ==== ---- QUERY describe nested_structs ---- RESULTS 'map_array_struct_col','map>>','' 'struct_array_struct_col','struct<\n f1:int,\n f2:array>\n>','' 'map_array_map_struct_col','map>>>','' ---- TYPES string,string,string ==== ---- QUERY use functional ==== ---- QUERY # Check that paths relative to current database work ok. describe alltypes ---- RESULTS 'id','int','Add a comment' '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','' ---- TYPES string, string, string ==== ---- QUERY use functional_parquet ==== ---- QUERY # Check that paths relative to current database work ok. describe allcomplextypes.int_array_col ---- RESULTS 'item','int','' 'pos','bigint','' ---- TYPES string,string,string ====