Using Self hosted IR, In ADF Pipeline Can we change the column names of all tables in DB having special characters with underscore without altering the TABLE within pipeline ?

(Manasa) 0 Reputation points
2023-07-21T02:44:09.4733333+00:00

Using Self hosted IR, In ADF Pipeline for on-premises data copy of sql server tables to Parquet format .Can we change the column names of all tables in DB having special characters with underscore Dynamically without altering the TABLE within pipeline. I hope we cannot use data flow in self hosted and please tell us other approach that we can use within ADF to handle this scenario.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,625 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnnuKumari-MSFT 34,556 Reputation points Microsoft Employee Moderator
    2023-07-24T06:52:12.7433333+00:00

    Hi (Manasa) ,

    Welcome to Microsoft Q&A platform and thanks for posting your question here.

    I understand that you are trying to look for the possibility to change the column names of all tables having special characters with underscores dynamically without altering the table while copying data from on-premise SQL server to parquet file using ADF pipeline.

    You have correctly pointed out that self hosted IR can't be used in mapping dataflow. You can try using copy activity in ADF pipeline to achieve the requirement.

    In copy activity, under mapping tab, you can change the column names for the destination datastore by typing in the desired columnnames.

    User's image

    In order to map the source and destination columns dynamically, you can iterate through the mapping json for multiple tables and update the column names dynamically, however, you need to store the json before hand. Kindly go through this video for more details: Dynamic Column mapping in Copy Activity in Azure Data Factory

    Hope it helps. Kindly accept the answer by clicking on Accept answer button. Thankyou


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.