Apache Impala View、order by、group by、having子句、with子句、limit、offset、distinct
view视图 视图仅仅是存储在数据库中具有关联名称的Impala查询语言的语句。 它是以预定义的SQL查询形式的表的组合。 视图可以包含表的所有行或选定的行。 Create View IF NOT EXISTS view_name as Select statement 创建视图view、查询视图view CREATE VIEW IF NOT EXISTS employee_view AS select name , age from employee ; [ hadoop03 . Hadoop . com: 21000 ] > select * from employee ; Query: select * from employee Query submitted at: 2019 - 12 - 10 21 : 14 : 35 ( Coordinator: http: //hadoop03:25000) Query progress can be monitored at: http: //hadoop03:25000/query_plan?query_id=1345b7c2c1089195:f2cb775f00000000 + ----+----------+-----+-----------+--------+ | id | name | age | address |