Thankyou for using Microsoft Q&A platform and posting your question here. As I understand your issue, you are trying to update the column of delta table but it's giving syntax error. Please let me know if that is not the case here.
It looks like you have defined the variable as a python dictionary and then trying to UPDATE the delta table using SQL command, which is why it's not able to interpret dictionary datatype in sql query and due to conflict, it's throwing syntax error.
My recommendation would be to use python for updating the delta table as well. For instance:
from delta.tables import *
from pyspark.sql.functions import *
deltaTable = DeltaTable.forPath(spark, 'abfss://bronze@Table Path')
# Declare the predicate by using a SQL-formatted string.
table_updates_id1 =
{'id1_table_1': datetime.datetime(2023, 3, 26, 4, 33, 22, 323000),
'id1_table_2': datetime.datetime(2023, 3, 26, 4, 33, 22, 323000)}
deltaTable.update(
condition = "id= 1",
set = { "table_updates": "table_updates_id1" }
)
For more details, kindly check out this documentation: Table deletes, updates, and merges
Hope it helps. Kindly accept the answer by clicking on Accept answer
button.