So I've got an ADF pipeline, a copy activity is fed from a for each loop a list of tables to copy into Snowflake. Nearly all tables work perfectly, a few only load the first column.
In Snowflake the command ADF is issuing for the majority of tables is;
COPY INTO SchemaName.TableName
FROM @SchemaName.adfstagename
FORCE = TRUE LOAD_UNCERTAIN_FILES = TRUE
;
On the few that fail to load other columns it is because ADF is specifically choosing to only load the first column with the following;
COPY INTO SchemaName.TableName
(Col1)
FROM (SELECT $1 FROM @SchemaName.adfstagename)
FORCE = TRUE LOAD_UNCERTAIN_FILES = TRUE
;
I've checked all fields are named the same, data types etc. Does anyone know why ADF would be doing this?
Thanks, Dan