Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Managing Data Type Conversions for Silver Data Pipeline

I'm using a medallion architecture system where one pipeline ingests data in the Bronze layer as parquet files and another pipeline validates data types and copies the parquet files into the Silver l...
  • Srisakthi's avatar
    1 year ago

    Hi Anonymous ,

     

    Few ways to handle type conversion,

    Notebook:

    1. Have the mapping sheet for the datatypes between pyspark and fabric. 

    2. Create table with the proper datatype required for Fabric

    3. Define your schema and read the parquet files. Use casting only on the required places. or Use infer schema and read the parquet files.

    Copy Activity:

    1. If no transformation required then you can use copy activity and under mapping you can see Type Conversion settingsfor datetime data type .

    2. For other types if you want to convert use import schema and change the data type for destination table.

     

    Regards,

    Srisakthi