use of com.facebook.presto.sql.planner.plan.TableScanNode in project presto by prestodb.
the class TableScanMatcher method detailMatches.
@Override
public MatchResult detailMatches(PlanNode node, Session session, Metadata metadata, SymbolAliases symbolAliases) {
checkState(shapeMatches(node), "Plan testing framework error: shapeMatches returned false in detailMatches in %s", this.getClass().getName());
TableScanNode tableScanNode = (TableScanNode) node;
TableMetadata tableMetadata = metadata.getTableMetadata(session, tableScanNode.getTable());
String actualTableName = tableMetadata.getTable().getTableName();
return new MatchResult(expectedTableName.equalsIgnoreCase(actualTableName) && domainMatches(tableScanNode, session, metadata));
}
Aggregations