Class HiveParserQB
- java.lang.Object
-
- org.apache.flink.table.planner.delegation.hive.copy.HiveParserQB
-
public class HiveParserQB extends Object
Counterpart of hive's org.apache.hadoop.hive.ql.parse.QB.
-
-
Constructor Summary
Constructors Constructor Description HiveParserQB(String outerId, String alias, boolean isSubQ)
-
Method Summary
-
-
-
Method Detail
-
print
public void print(String msg)
-
getParseInfo
public HiveParserQBParseInfo getParseInfo()
-
getMetaData
public HiveParserQBMetaData getMetaData()
-
countSelDi
public void countSelDi()
-
countSel
public void countSel()
-
exists
public boolean exists(String alias)
-
setTabAlias
public void setTabAlias(String alias, String originTableName, String qualifiedName)
Maintain table alias -> (originTableName, qualifiedName).- Parameters:
alias
- table aliasoriginTableName
- table name that be actually specified, may be "table", "db.table", "catalog.db.table"qualifiedName
- table name with full path, always is "catalog.db.table"
-
setSubqAlias
public void setSubqAlias(String alias, HiveParserQBExpr qbexpr)
-
addAlias
public void addAlias(String alias)
-
getId
public String getId()
-
getNumSels
public int getNumSels()
-
getSubqForAlias
public HiveParserQBExpr getSubqForAlias(String alias)
-
rewriteViewToSubq
public void rewriteViewToSubq(String alias, String viewName, HiveParserQBExpr qbexpr, CatalogView view)
-
rewriteCTEToSubq
public void rewriteCTEToSubq(String alias, String cteName, HiveParserQBExpr qbexpr)
-
setIsQuery
public void setIsQuery(boolean isQuery)
-
getIsQuery
public boolean getIsQuery()
Set to true in SemanticAnalyzer.getMetadataForDestFile, if destination is a file and query is not CTAS.
-
isSimpleSelectQuery
public boolean isSimpleSelectQuery()
-
getTableDesc
public org.apache.hadoop.hive.ql.plan.CreateTableDesc getTableDesc()
-
setDirectoryDesc
public void setDirectoryDesc(HiveParserDirectoryDesc directoryDesc)
-
getDirectoryDesc
public HiveParserDirectoryDesc getDirectoryDesc()
-
isCTAS
public boolean isCTAS()
-
getSkewedColumnNames
public List<String> getSkewedColumnNames(String alias)
Retrieve skewed column name for a table.
-
getPTFInvocationSpec
public HiveParserPTFInvocationSpec getPTFInvocationSpec(HiveParserASTNode node)
-
addPTFNodeToSpec
public void addPTFNodeToSpec(HiveParserASTNode node, HiveParserPTFInvocationSpec spec)
-
getWindowingSpec
public HiveParserWindowingSpec getWindowingSpec(String dest)
-
addDestToWindowingSpec
public void addDestToWindowingSpec(String dest, HiveParserWindowingSpec windowingSpec)
-
hasWindowingSpec
public boolean hasWindowingSpec(String dest)
-
getAllWindowingSpecs
public HashMap<String,HiveParserWindowingSpec> getAllWindowingSpecs()
-
incrNumSubQueryPredicates
public int incrNumSubQueryPredicates()
-
getViewToTabSchema
public HashMap<String,CatalogView> getViewToTabSchema()
-
isInsideView
public boolean isInsideView()
-
setInsideView
public void setInsideView(boolean insideView)
-
containsQueryWithoutSourceTable
public boolean containsQueryWithoutSourceTable()
returns true, if the query block contains any query, or subquery without a source table. Like select current_user(), select current_database()- Returns:
- true, if the query block contains any query without a source table
-
isMaterializedView
public boolean isMaterializedView()
-
-