You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by GitBox <gi...@apache.org> on 2022/11/26 14:25:26 UTC

[GitHub] [streampipes] dominikriemer opened a new issue, #529: Add FieldRenamer JVM processor for multiple fields

dominikriemer opened a new issue, #529:
URL: https://github.com/apache/streampipes/issues/529

   *Context*
   
   Rename multiple events field at once.
   ```
   
   {
     "time_stamp": 1234,
     "sensor_id": "sensor1",
     "sensor_measurement": 24.0
   }
   
   ```
   
   rename "sensor_id" -\> "id", "sensor_measurement", "measurement": new event
   ```
   
   {
     "time_stamp": 1234,
     "id": "sensor1",
     "measurement": 24.0
   }
   ```
   
    *Problem*
   
   Currently, we do have a FieldRenamer implemented using Flink wrapper, yet only allowing to rename one field at a time, i.e., renaming n fields requires a sequence of #n FieldRenamer processors. In addition, this option is unavailable when using lite version, i.e., standalone Java extensions.
   
   *Solution*
   
   Add FieldRenamer JVM processor using something like CollectionStaticProperty to allow arbitrary number of mappings, where a user can select a mapping property and add a new field name in a text field right next to it.
   
    
   
   [EDIT]: There is a duplicate https://issues.apache.org/jira/browse/STREAMPIPES-338 
   
   While this allows to rename single fields, it still does not support multi field renaming in one step.
   
   Imported from Jira [STREAMPIPES-347](https://issues.apache.org/jira/browse/STREAMPIPES-347). Original Jira may contain additional context.
   Reported by: wiener.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org