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 STAGE DEPENDENCIES: Stage-0 is a root stage STAGE PLANS: Stage: Stage-0 Fetch Operator limit: 2 Processor Tree: TableScan alias: src Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: COMPLETE Select Operator expressions: array(struct(1,'dude!'),struct(2,'Wheres'),struct(3,'my car?')) (type: array>) outputColumnNames: _col0 Statistics: Num rows: 500 Data size: 1220000 Basic stats: COMPLETE Column stats: COMPLETE UDTF Operator Statistics: Num rows: 500 Data size: 1220000 Basic stats: COMPLETE Column stats: COMPLETE function name: inline Limit Number of rows: 2 Statistics: Num rows: 2 Data size: 4880 Basic stats: COMPLETE Column stats: COMPLETE ListSink 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?