Forum Discussion

Hussein_charif's avatar
1 year ago
Solved

BC2ADLS to fabrics

hi, i am using BC2ADLS  extension to get large amount of data from BC to fabric lakehouse using the provided code on github https://github.com/Bertverbeek4PS/bc2adls/blob/2a2d5693a9f8fa1b3b9bd5f6591f...
  • v-sgandrathi's avatar
    v-sgandrathi
    1 year ago

    HI Hussein_charif,

     

    To correctly refresh the schema and allow the new columns to be ingested:

    Drop the table using Spark SQL -- This removes the logical table and all metadata from the Spark metastore.
    DROP TABLE IF EXISTS YourTableName

    Delete physical files -- If you also want to clear out the actual data or Delta files, delete the corresponding folder from the Lakehouse Files directory. It is useful when doing a full refresh.

    After these steps, re-running the ingestion code will recreate the table and correctly pick up the new schema, including any added columns.

     

    Happy to help! If this addressed your concern, marking it as "Accepted Solution" and giving us "kudos" would be valuable for others in the community.

     

    Thank you.