-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Create PIPE does not use proper DATABASE #135
Comments
It's likely that this is due to the hyphen in your database name. Hyphens are not currently escaped. |
@sjauld good catch. we are planning some work to overhaul the way we generate queries. I will make sure to add this to the list of things to fix |
Does the issue also occur with underscores? Getting same error; no hyphens, but with a name like 'FOO_BAR'. |
Also running into this issue with a database name including an underscore. |
If you're able to point me to the section of code which generates the 'use db' query I can submit a PR |
I have the same underscore issue, is there a workaround? |
So far I've been creating the pipes manually and then importing them into the terraform state so that at least there's a record they exist. You can't modify them through terraform though without the same issue as above |
The identifiers are quoted, so I don't think this is the problem. Either way the code for generating the queries is here or can be found by starting there. I would like to help fix this, but given that my team doesn't use this resource my context on how it works is somewhat limited. What would really help is if someone could write an acceptance test for this resource. One that reproduces this bug would be 💯 . |
The issue for me was that the copy statement did not include the database name. This led to the error of
I overcame the problem by fully specifying all references with DB_NAME.SCHEMA_NAME.STAGE/TABLE As the provider doesn't execute a Solved I think @ryanking (my database name has underscores) |
Going to close this for now, if someone wants to write up or code a feature to make this better, go for it. |
I still have issues creating snowpipe using Terraform If I specify just the table name --> i get table not found Please advise |
@asad3gh please create a new GitHub issue using general usage template if you're still having this issue. |
I tested new feature in 0.10.0
but it fails to use specified database.
The plan looks good:
However the apply fails to use specified DATABASE:
The text was updated successfully, but these errors were encountered: