[
https://issues.apache.org/jira/browse/METRON-1539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16450445#comment-16450445
]
ASF GitHub Bot commented on METRON-1539:
----------------------------------------
Github user ottobackwards commented on a diff in the pull request:
https://github.com/apache/metron/pull/1002#discussion_r183859958
--- Diff:
metron-platform/metron-common/src/main/java/org/apache/metron/common/field/transformation/RenameTransformation.java
---
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.metron.common.field.transformation;
+
+import org.apache.metron.stellar.dsl.Context;
+
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
--- End diff --
why isn't this an enum?
> Specialized RENAME field transformer
> ------------------------------------
>
> Key: METRON-1539
> URL: https://issues.apache.org/jira/browse/METRON-1539
> Project: Metron
> Issue Type: New Feature
> Reporter: Casey Stella
> Priority: Major
>
> Currently our advice is to use the Stellar field transformation to do simple
> field renaming. Given how common this situation is and how the old field
> must be nulled out, thus making the stellar transformation awkward, it's
> worthwhile having a specialized field transformer for RENAME.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)