// Start to do real materialized view processing to fix the duplicates problem.
// (1) construct new projection columns for scan plan node.
Set<SchemaColumn> mvDDLGroupbyColumns = new HashSet<SchemaColumn>();
NodeSchema inlineProjSchema = new NodeSchema();
for (SchemaColumn scol: scanColumns) {
inlineProjSchema.addColumn(scol);
}
String mvTableAlias = getMVTableAlias();
for (int i = 0; i < numOfGroupByColumns; i++) {