Forum Discussion

giupegiupe's avatar
giupegiupe
Helper I
1 year ago
Solved

bug #1069

Hi community Does anyone have information of when this bug will be fixed ? Does anyone have any idea how to fix it of course by keeping in               " .option("delta.columnMapping.mode...
  • v-hashadapu's avatar
    1 year ago

    Hi giupegiupe , Thank you for reaching out to the Microsoft Community Forum.

     

    Create the Delta table in advance using a clean schema with only supported types and then only append data using .mode("append"). This avoids triggering metadata changes that break the sync. Avoid using overwrite, schema evolution (mergeSchema) or operations that alter the schema once the table is created. Try this:

    df.write
    .format("delta")
    .option("delta.columnMapping.mode", "name")
    .option("delta.minReaderVersion", "2")
    .option("delta.minWriterVersion", "5")
    .mode("append")
    .saveAsTable(destination_table_full_name)

     

    If this helped solve the issue, please consider marking it “Accept as Solution” so others with similar queries may find it more easily. If not, please share the details, always happy to help.
    Thank you.