public boolean isTopLevelSelectStarQuery() { return !isCTAS() && qbp.isTopLevelSimpleSelectStarQuery(); }
public boolean isTopLevelSelectStarQuery() { return !isCTAS() && qbp.isTopLevelSimpleSelectStarQuery(); }
public boolean isSimpleSelectQuery() { if (!qbp.isSimpleSelectQuery() || isCTAS() || qbp.isAnalyzeCommand()) { return false; } for (QBExpr qbexpr : aliasToSubq.values()) { if (!qbexpr.isSimpleSelectQuery()) { return false; } } return true; }
public boolean isSimpleSelectQuery() { if (!qbp.isSimpleSelectQuery() || isCTAS() || qbp.isAnalyzeCommand()) { return false; } for (QBExpr qbexpr : aliasToSubq.values()) { if (!qbexpr.isSimpleSelectQuery()) { return false; } } return true; }
boolean needToLogMessage = STATIC_LOG.isInfoEnabled(); boolean isSupportedRoot = root == HiveParser.TOK_QUERY || root == HiveParser.TOK_EXPLAIN || qb.isCTAS() || qb.isMaterializedView(); || qb.isCTAS() || qb.isMaterializedView() || cboCtx.type == PreCboCtx.Type.INSERT || cboCtx.type == PreCboCtx.Type.MULTI_INSERT; boolean noBadTokens = HiveCalciteUtil.validateASTForUnsupportedTokens(ast);
boolean needToLogMessage = STATIC_LOG.isInfoEnabled(); boolean isSupportedRoot = root == HiveParser.TOK_QUERY || root == HiveParser.TOK_EXPLAIN || qb.isCTAS() || qb.isMaterializedView(); || qb.isCTAS() || qb.isMaterializedView() || cboCtx.type == PreCboCtx.Type.INSERT || cboCtx.type == PreCboCtx.Type.MULTI_INSERT; boolean noBadTokens = HiveCalciteUtil.validateASTForUnsupportedTokens(ast);
!getQB().isMaterializedView() && !ctx.isLoadingMaterializedView() && !getQB().isCTAS()) { calcitePreCboPlan = applyMaterializedViewRewriting(planner, calcitePreCboPlan, mdProvider.getMetadataProvider(), executorProvider);
!getQB().isMaterializedView() && !getQB().isCTAS()) { perfLogger.PerfLogBegin(this.getClass().getName(), PerfLogger.OPTIMIZER);
(qb.isCTAS() || qb.isView() || qb.isMaterializedView() || qb.isMultiDestQuery())) {
&& (((ASTNode) ast.getChild(0)).getToken().getType() == HiveParser.TOK_TMP_FILE)) { if (qb.isCTAS() || qb.isMaterializedView()) { qb.setIsQuery(false); ctx.setResDir(null);
&& (((ASTNode) ast.getChild(0)).getToken().getType() == HiveParser.TOK_TMP_FILE)) { if (qb.isCTAS() || qb.isMaterializedView()) { qb.setIsQuery(false); ctx.setResDir(null);
public boolean isTopLevelSelectStarQuery() { return !isCTAS() && qbp.isTopLevelSimpleSelectStarQuery(); }
public boolean isSelectStarQuery() { return qbp.isSelectStarQuery() && aliasToSubq.isEmpty() && !isCTAS() && !qbp.isAnalyzeCommand(); }
public boolean isSimpleSelectQuery() { if (!qbp.isSimpleSelectQuery() || isCTAS() || qbp.isAnalyzeCommand()) { return false; } for (QBExpr qbexpr : aliasToSubq.values()) { if (!qbexpr.isSimpleSelectQuery()) { return false; } } return true; }
boolean needToLogMessage = STATIC_LOG.isInfoEnabled(); boolean isSupportedRoot = root == HiveParser.TOK_QUERY || root == HiveParser.TOK_EXPLAIN || qb.isCTAS(); boolean isSupportedType = qb.getIsQuery() || qb.isCTAS() || cboCtx.type == PreCboCtx.Type.INSERT; boolean noBadTokens = HiveCalciteUtil.validateASTForUnsupportedTokens(ast);
&& (((ASTNode) ast.getChild(0)).getToken().getType() == HiveParser.TOK_TMP_FILE)) { if (qb.isCTAS()) { qb.setIsQuery(false); ctx.setResDir(null);
&& (((ASTNode) ast.getChild(0)).getToken().getType() == HiveParser.TOK_TMP_FILE)) { if (qb.isCTAS()) { qb.setIsQuery(false); ctx.setResDir(null);