11-15-2021 11:46 AM
I have a sql statement in snowflake execute snap.
“copy into table table_name from
(select t.$1,
t.$2,
t.$3
from file x(file_format=>'csv_format)t)”
I keep getting errors because of $ in the sql. Can anyone suggest how to enclose $ in the sql
11-15-2021 12:22 PM
I’m not sure, showing the actual error would be much more helpful. But I think turning your Expressions button on, will do the job.
I’m guessing that it is turned off and your columns are considered as incoming fields.
If this is not the case, please share more details about the error.
11-15-2021 03:51 PM
See also the SQL Substitution section on https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438163/Parameters+and+Fields#Parametersan...
11-17-2021 07:21 AM
Sangeetha:
I agree with @bojanvelevski - please show the actual error you’re getting.
Also, most of us here are not familiar with snowflake, so it would also help to understand your intent. I can see 4 possibilities (at least):