The transformation flattens a map into two fields for the key and value elements in the map. For a map field that you flattened, you cannot change the value of Occurs from Auto to an integer value.
For example, you want to flatten the following map field emp_sal with a string key and an array of integer values:
<emp_name -> [base_sal, bonus, commision]>
The following image shows the map field that you want to flatten in the Normalizer view:
The table contains the following values:
emp_id
emp_sal
12200
<Greg -> [4000, 1000, 500]>
12201
<Patricia -> [3800, 1500, 1000]>
When you flatten the map port, the output returns a string field for the map key and an array field for the map value as follows:
emp_id
emp_sal_Key
emp_sal_Value
GCID_emp_salary
12200
Greg
[4000, 1000, 500]
1
12201
Patricia
[3800, 1500, 1000]
1
The following image shows the map field that is flattened to a string key field and an array value field in the Normalizer view:
The following image shows the Output group in the Ports view: