Github user jihoonson commented on a diff in the pull request:
https://github.com/apache/tajo/pull/13#discussion_r13048589
--- Diff:
tajo-algebra/src/main/java/org/apache/tajo/algebra/CreateTable.java ---
@@ -349,43 +408,63 @@ public boolean equals(Object object) {
return false;
}
}
+
+ @Override
+ public Object clone() throws CloneNotSupportedException {
+ ListPartition listPartition = (ListPartition) super.clone();
+ listPartition.columns = new ColumnReferenceExpr[columns.length];
+ for (int i = 0; i < columns.length; i++) {
+ listPartition.columns[i] = (ColumnReferenceExpr)
columns[i].clone();
+ }
+ if (specifiers != null) {
+ listPartition.specifiers = new ArrayList<ListPartitionSpecifier>();
+ for (ListPartitionSpecifier specifier : specifiers) {
+ listPartition.specifiers.add(specifier);
+ }
+ }
+ return listPartition;
+ }
}
- public static class ColumnPartition extends PartitionMethodDescExpr {
+ public static class ColumnPartition extends PartitionMethodDescExpr
implements Cloneable {
@Expose @SerializedName("Columns")
private ColumnDefinition [] columns;
@Expose @SerializedName("IsOmitValues")
private boolean isOmitValues;
--- End diff --
It seems unnecessary.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---