// Targets or search conditions may contain column references.
// However, actual values absent in tuples. So, Replace all column references by constant datum.
for (Column column : columnPartitionSchema.toArray()) {
FieldEval targetExpr = new FieldEval(column);
Datum datum = targetExpr.eval(columnPartitionSchema, partitionRow);
ConstEval constExpr = new ConstEval(datum);
for (Target target : plan.getTargets()) {
if (target.getEvalTree().equals(targetExpr)) {
if (!target.hasAlias()) {
target.setAlias(target.getEvalTree().getName());