Hi @David_Billa
Before ingesting the csv data into the delta table, you could create delta table using the table properties as shown below:
CREATE TABLE catalog_name.schema_name.table_name (`a` string, `b c` string)
TBLPROPERTIES (
'delta.minReaderVersion' = '2',
'delta.minWriterVersion' = '5',
'delta.columnMapping.mode' = 'name'
)
Note: I've created a column `b c` with space between them.
Later, I was able to add few more columns using alter table statement
ALTER TABLE
catalog_name.schema_name.table_name
ADD COLUMNS (
`SOURCE 1 NAME` string, `SOURCE 2 NAME` string
)
** Important: One thing I notice is you're on DBR version 10.2 which might not support column mapping mode.
This Databricks Documentation mentions that column mapping is enabled for DBX runtime 10.4 LTS or above.
Let me know your further thoughts.
Cheers!
Riz