PREHOOK: query: describe function inline PREHOOK: type: DESCFUNCTION POSTHOOK: query: describe function inline POSTHOOK: type: DESCFUNCTION inline( ARRAY( STRUCT()[,STRUCT()] - explodes and array and struct into a table PREHOOK: query: explain SELECT inline( ARRAY( STRUCT (1,'dude!'), STRUCT (2,'Wheres'), STRUCT (3,'my car?') ) ) as (id, text) FROM SRC limit 2 PREHOOK: type: QUERY POSTHOOK: query: explain SELECT inline( ARRAY( STRUCT (1,'dude!'), STRUCT (2,'Wheres'), STRUCT (3,'my car?') ) ) as (id, text) FROM SRC limit 2 POSTHOOK: type: QUERY ABSTRACT SYNTAX TREE: (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME SRC))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION inline (TOK_FUNCTION ARRAY (TOK_FUNCTION STRUCT 1 'dude!') (TOK_FUNCTION STRUCT 2 'Wheres') (TOK_FUNCTION STRUCT 3 'my car?'))) id text)) (TOK_LIMIT 2))) STAGE DEPENDENCIES: Stage-1 is a root stage Stage-0 is a root stage STAGE PLANS: Stage: Stage-1 Map Reduce Alias -> Map Operator Tree: src TableScan alias: src Select Operator expressions: expr: array(struct(1,'dude!'),struct(2,'Wheres'),struct(3,'my car?')) type: array> outputColumnNames: _col0 UDTF Operator function name: inline Limit File Output Operator compressed: false GlobalTableId: 0 table: input format: org.apache.hadoop.mapred.TextInputFormat output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat Stage: Stage-0 Fetch Operator limit: 2 PREHOOK: query: SELECT inline( ARRAY( STRUCT (1,'dude!'), STRUCT (2,'Wheres'), STRUCT (3,'my car?') ) ) as (id, text) FROM SRC limit 2 PREHOOK: type: QUERY PREHOOK: Input: default@src #### A masked pattern was here #### POSTHOOK: query: SELECT inline( ARRAY( STRUCT (1,'dude!'), STRUCT (2,'Wheres'), STRUCT (3,'my car?') ) ) as (id, text) FROM SRC limit 2 POSTHOOK: type: QUERY POSTHOOK: Input: default@src #### A masked pattern was here #### 1 dude! 2 Wheres PREHOOK: query: -- HIVE-3475 INLINE UDTF doesn't convert types properly select * from (SELECT ARRAY( STRUCT (1,'dude!'), STRUCT (2,'Wheres'), STRUCT (3,'my car?') ) as value FROM SRC limit 1) input LATERAL VIEW inline(value) myTable AS id, text PREHOOK: type: QUERY PREHOOK: Input: default@src #### A masked pattern was here #### POSTHOOK: query: -- HIVE-3475 INLINE UDTF doesn't convert types properly select * from (SELECT ARRAY( STRUCT (1,'dude!'), STRUCT (2,'Wheres'), STRUCT (3,'my car?') ) as value FROM SRC limit 1) input LATERAL VIEW inline(value) myTable AS id, text POSTHOOK: type: QUERY POSTHOOK: Input: default@src #### A masked pattern was here #### [{"col1":1,"col2":"dude!"},{"col1":2,"col2":"Wheres"},{"col1":3,"col2":"my car?"}] 1 dude! [{"col1":1,"col2":"dude!"},{"col1":2,"col2":"Wheres"},{"col1":3,"col2":"my car?"}] 2 Wheres [{"col1":1,"col2":"dude!"},{"col1":2,"col2":"Wheres"},{"col1":3,"col2":"my car?"}] 3 my car?