}
@Override
public Void visitTableScan(TableScanNode node, Void context)
{
TupleDomain partitionsDomainSummary = node.getPartitionsDomainSummary();
TableMetadata tableMetadata = metadata.getTableMetadata(node.getTable());
ImmutableList.Builder<Column> columnBuilder = ImmutableList.builder();
for (Map.Entry<Symbol, ColumnHandle> entry : node.getAssignments().entrySet()) {
ColumnMetadata columnMetadata = metadata.getColumnMetadata(node.getTable(), entry.getValue());
Domain domain = null;
if (!partitionsDomainSummary.isNone() && partitionsDomainSummary.getDomains().keySet().contains(entry.getValue())) {
domain = partitionsDomainSummary.getDomains().get(entry.getValue());
}
else if (partitionsDomainSummary.isNone()) {
domain = Domain.none(columnMetadata.getType().getNativeType());
}
Column column = new Column(
columnMetadata.getName(),
columnMetadata.getType().toString(),