Github user jihoonson commented on a diff in the pull request:
https://github.com/apache/tajo/pull/231#discussion_r22339025
--- Diff:
tajo-catalog/tajo-catalog-common/src/main/java/org/apache/tajo/catalog/CatalogUtil.java
---
@@ -868,4 +865,43 @@ public static KeyValueSet
newPhysicalProperties(StoreType type) {
return options;
}
+
+ /**
+ * Make a unique name by concatenating column names.
+ * The concatenation is performed in sequence of columns' occurrence in
the relation schema.
+ *
+ * @param originalSchema original relation schema
+ * @param columnNames column names which will be unified
+ * @return unified name
+ */
+ public static String getUnifiedSimpleColumnName(Schema originalSchema,
String[] columnNames) {
--- End diff --
The value ```originalSchema``` is a schema of a relation. I think that we
should guarantee that every column name is unique in a relation.
---
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.
---