Search in sources :

Example 6 with ItemScalarSubQuery

use of com.actiontech.dble.plan.common.item.subquery.ItemScalarSubQuery in project dble by actiontech.

the class MySQLItemVisitor method endVisit.

@Override
public void endVisit(SQLQueryExpr x) {
    SQLSelectQuery sqlSelect = x.getSubQuery().getQuery();
    item = new ItemScalarSubQuery(currentDb, sqlSelect, metaManager);
    initName(x);
    item.setItemName(item.getItemName().replaceAll("\n\\t", " "));
}
Also used : SQLSelectQuery(com.alibaba.druid.sql.ast.statement.SQLSelectQuery) ItemScalarSubQuery(com.actiontech.dble.plan.common.item.subquery.ItemScalarSubQuery)

Aggregations

ItemScalarSubQuery (com.actiontech.dble.plan.common.item.subquery.ItemScalarSubQuery)6 ItemFunc (com.actiontech.dble.plan.common.item.function.ItemFunc)3 Item (com.actiontech.dble.plan.common.item.Item)2 ItemInSubQuery (com.actiontech.dble.plan.common.item.subquery.ItemInSubQuery)2 SQLSelectQuery (com.alibaba.druid.sql.ast.statement.SQLSelectQuery)2 ItemCondAnd (com.actiontech.dble.plan.common.item.function.operator.logic.ItemCondAnd)1 ItemCondOr (com.actiontech.dble.plan.common.item.function.operator.logic.ItemCondOr)1 ItemSum (com.actiontech.dble.plan.common.item.function.sumfunc.ItemSum)1 ItemExistsSubQuery (com.actiontech.dble.plan.common.item.subquery.ItemExistsSubQuery)1 BoolPtr (com.actiontech.dble.plan.common.ptr.BoolPtr)1 PlanNode (com.actiontech.dble.plan.node.PlanNode)1