set hive.support.sql11.reserved.keywords=false; -- We need the above setting for backward compatibility because 'user' is a keyword in SQL2011 -- ppd leaves invalid expr in field expr CREATE TABLE test_issue (fileid int, infos ARRAY>, test_c STRUCT>); CREATE VIEW v_test_issue AS SELECT fileid, i.user, test_c.user_c.age FROM test_issue LATERAL VIEW explode(infos) info AS i; -- dummy data LOAD DATA LOCAL INPATH '../../data/files/kv1.txt' INTO TABLE test_issue; SELECT * FROM v_test_issue WHERE age = 25;