public class DruidSQLRewriter extends ColumnarSQLRewriter
| Constructor and Description | 
|---|
DruidSQLRewriter()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
analyzeInternal(org.apache.hadoop.conf.Configuration conf,
               org.apache.hadoop.hive.conf.HiveConf hconf)
Analyze internal. 
 | 
void | 
buildDruidQuery(org.apache.hadoop.conf.Configuration conf,
               org.apache.hadoop.hive.conf.HiveConf hconf)
Builds the query. 
 | 
boolean | 
isHavingSupported()
Is Having supported. 
 | 
boolean | 
isOrderBySupported()
Is OrderBy supported. 
 | 
String | 
rewrite(org.apache.hadoop.hive.ql.parse.ASTNode currNode,
       org.apache.hadoop.conf.Configuration conf,
       org.apache.hadoop.hive.conf.HiveConf metastoreConf,
       boolean resolveNativeTables)  | 
String | 
rewrite(String query,
       org.apache.hadoop.conf.Configuration conf,
       org.apache.hadoop.hive.conf.HiveConf metastoreConf)
Rewrite. 
 | 
buildDimSubqueries, buildQuery, buildSubqueries, constructJoinChain, factFilterPushDown, getAggregateColumns, getAllDimColumns, getAllFactKeys, getAllFilters, getClause, getColumnCount, getFactAlias, getFactKeysFromNode, getFactNameAlias, getFilterInJoinCond, getFromAST, getGroupByAST, getHavingAST, getJoinAST, getJoinCond, getLimitClause, getOrderByAST, getSelectAST, getTableFromTabRefNode, getTableOrAlias, getTablesAndColumns, getWhereAST, init, isExpressionsAnswerableFromFact, replaceAliasInAST, replaceUDFForDB, resetpublic void analyzeInternal(org.apache.hadoop.conf.Configuration conf,
                            org.apache.hadoop.hive.conf.HiveConf hconf)
                     throws org.apache.hadoop.hive.ql.parse.SemanticException
analyzeInternal in class ColumnarSQLRewriterorg.apache.hadoop.hive.ql.parse.SemanticException - the semantic exceptionpublic void buildDruidQuery(org.apache.hadoop.conf.Configuration conf,
                            org.apache.hadoop.hive.conf.HiveConf hconf)
                     throws org.apache.hadoop.hive.ql.parse.SemanticException,
                            LensException
org.apache.hadoop.hive.ql.parse.SemanticExceptionLensExceptionpublic String rewrite(String query, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hive.conf.HiveConf metastoreConf) throws LensException
QueryRewriterrewrite in interface QueryRewriterrewrite in class ColumnarSQLRewriterquery - the queryconf - the query configurationmetastoreConf - The metastore configuration. If rewriters requires to access metastore, this configuration
  needs to passedLensException - the lens exceptionpublic String rewrite(org.apache.hadoop.hive.ql.parse.ASTNode currNode, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hive.conf.HiveConf metastoreConf, boolean resolveNativeTables) throws LensException
LensException@Generated(value="lombok") public boolean isHavingSupported()
@Generated(value="lombok") public boolean isOrderBySupported()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.