| //// |
| 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. |
| //// |
| :documentationPath: /plugins/transforms/ |
| :language: en_US |
| :page-alternativeEditUrl: https://github.com/apache/incubator-hop/edit/master/plugins/transforms/denormaliser/src/main/doc/denormaliser.adoc |
| = Row Denormaliser |
| |
| == Description |
| |
| The De-normalizer transform allows you de-normalize data by looking up key-value pairs. It also allows you to immediately convert data types. |
| |
| == Options |
| |
| [width="90%", options="header"] |
| |=== |
| |Transform name|Name of the transform. This name has to be unique in a single pipeline. |
| |Key field|The field that defined the key of the output row. |
| |Group fields|Specify the fields that make up the grouping here. |
| |Target fields|Select the fields to de-normalize by specifying the String value for the key field (see above). |
| Options are provided to convert data types. |
| Strings are most common as key-value pairs so you must often convert to Integer, Number or Date. |
| If you get key-value pair collisions (key is not unique for the group specified) specify the aggregation method to use. |
| |=== |
| |
| == Metadata Injection Support |
| You can use the Metadata Injection supported fields with ETL Metadata Injection transform to pass metadata to your pipeline at runtime. The following Value fields of the Row Denormaliser transform support metadata injection: |
| |
| * Target Filename, Value Fieldname, Key Value, Type, Format, Length, Precision, Currency, Decimal, Group, and Aggregation |
| |
| == Example |
| |
| [width="90%", options="header"] |
| |=== |
| |CustomerId|Key|Value |
| |101|COUSINS_FIRST_NAME|Mary |
| |101|COUSINS_SECOND_NAME|J. |
| |101|COUSINS_LAST_NAME|Blige |
| |101|COUSINS_BIRTH_DATE|1969/02/14 |
| |101|COUSINS_INCOME|1723.86 |
| |101|...45 more keys...|... |
| |=== |
| |
| image::denormaliser.png[] |