Project contact: [Zhihui Li] (mailto:[email protected]), Jason Dai
"Project Panthera" is our open source efforts to enable efficient support of standard SQL features on Hadoop. While Higher level languages or APIs (such as Pig, Hive and Cascading) significantly lower the barrier to MapReduce, SQL is still the most important query language in modern business application environment, with more than 30 years of investments by the industry. There is a wealth of business users, enterprise analytics applications and third-party tools (such as query builders and BI applications) that all require full SQL support.
While there are continuous efforts in extending Hive’s SQL support, there are still large gaps in today’s Hadoop stack with regard to full SQL support. Many widely used SQL constructs in OLAP, such as nested subqueries, multiples-table select, etc., are still not supported by Hive/Hadoop.
Under "Project Panthera", we are building ASE, a new analytical SQL engine for Hadoop, whose goal is to provide full SQL support for OLAP applications on Hadoop. It enables complex and sophisticated SQL queries on Hadoop through a series of advanced transformations and optimizations (e.g., subquery unnesting), and currently uses Hive as its execution backend (with necessary enhancements to the underlying stack being added and contributed back to the existing Apache projects).
- git clone https://github.com/intel-hadoop/project-panthera-ase.git
- cd project-panthera-ase/
- ant package
- cd build/dist/bin/
- ./hive
- hive>set hive.ql.mode=sql; (execute the command before every query(SELECT ... or EXPLAIN PLAN FOR SELECT ...))
- hive>select a from x where b > (select max(c) from y);
-
- Support all Hive query syntax which is compatible SQL92.
-
- Base on 1, Panthera ASE support:
Feature | Comment | Example |
Multi-Table in FROM clause | select * from x,y where x.a=y.b | |
Subquery in WHERE clause | Not support non-equal joint condition | select a from x where a = (select max(c) from y) |
Subquery in HAVING clause | Not support non-equal joint condition | select max(a) from x group by b having max(a) = (select max(c) from y) |
Order by column position | select a,b from x order by 1 | |
Top level UNION ALL | select a from x union all select a from y |
- You can also click here to see what ASE supports in detail.