-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL compilation error when using transformation in snowflake_pipe COPY INTO statement. #2165
Comments
Hey, @chriselion. Thanks for creating the issue. The provider itself does not interfere with the copy statement you are providing; it just passes it over to Snowflake. So, I would assume that this statement is not 100% correct. |
OK, I'll take another look at this today. Is there any way to enable output of the SQL that's being executed, so I can see whether it's getting altered somewhere along the way? |
@chriselion you can run terraform commands with |
I have the exact same problem. the error:
my code:
detailed error logs from @sfc-gh-asawicki 's technique
|
In my case, it turned out that I needed to quote the column names, but you're not using that form of COPY INTO. My guess is that you need quotes around the
but that might need to be
|
@chriselion, can you close the issue then? @leonard-henriquez, the suggestion above is a valid one. The provider itself does not interfere with the statements provided in places like the |
Closed. Just a thought: providing |
@chriselion, that's right. We have it high on our list of improvements. Hopefully, we will visit this in the upcoming months. |
Provider Version
v0.75.0
Terraform Version
1.4.6
Describe the bug
When trying to use the
col_name
parameters in theCOPY INTO
statement in asnowflake_pipe
resource, I get a "Error: 000904 (42000): SQL compilation error". A similarsnowflake_pipe
resource setup works without the destination columns, and a similar statement works when run in a worksheet.Expected behavior
The provider should support the
table_name (column_name)
syntax.Code samples and commands
Pipe definition:
which results in the proposed action:
and then produces the error
Additional context
If I use a simpler table, and don't use the "Data load with transformation" syntax, like
then the pipe is created without any problems.
I was following this guide for setting up the pipe, and was able to create the pipe using the columns in a worksheet.
I see that there are two different syntaxes for COPY INTO - is it possible that only the "Standard data load" one is supported?
The text was updated successfully, but these errors were encountered: