You will have to add a Select transformation after the Flatten and use patterns there to rename the columns
Rule based mapping in Flatten transformation
Subashri Vasudevan
11,306
Reputation points
Volunteer Moderator
Hi,
Is there a way I can simplify renaming columns in flatten settings without adding each column manually? Like column patterns.
For example, in the below example, I want to write expression to rename columns by ignoring all hierarchical info (ex: goods.orders.shipped.orderitems) and just keep the last portion as column name. Can we write expressions to achieve this? Basically, a generic expression that would just get me the last part of hierarchical shape for all the available columns.
Please advise. TIA
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
Answer accepted by question author
-
MarkKromer-MSFT 5,231 Reputation points Microsoft Employee Moderator2022-08-23T07:25:47.133+00:00