-
Notifications
You must be signed in to change notification settings - Fork 427
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
Creating a stage with file_format #265
Comments
hello, any update here , |
@ahaffar that you for reporting this, we will look into it when we have time. Note that issues that fall outside the scope of things we use at CZI often take awhile to address. In the meantime, I am happy to look at an PRs that address the issue. |
You can try something like this:
as a workaround |
@ahaffar try adding "FORMAT_NAME =" and giving the full path to the file_format. Like this: |
Hello @andybeeswax , thank you |
Full path to the |
I ran into the same issue. I was able to get the stage to apply successful using @ahaffar recomendation i.e. `file_format = "TYPE = JSON". This however had some unexpected behavior on subsequent runs. e.g.
state after first apply
so on next run it tries to change from I was able to work around this issue by setting the Hope that helps |
It looks like you can't refer to an existing file format by its name. As you can see in the code it always puts the value of If you want to refer to an existing file format it shouldn't be in brackets and the SQL statement should just be like e.g. Ideas:
I personally would prefer to go with option 2. What do you guys think? I could try to file in a PR for this. @andybeeswax : Thanks for the workaround - works like a charm! |
Is there any change in the status, I'm trying to refer to an existing file format by name and none of the solution above has worked. and more, didn't work with no more indications |
and more, didn't work with no more indications @mehdi-infostrux If your DB and SCHEMA are referring to their respective names, and that file format indeed exists in the schema and db then I am truly stumped. Are you creating the file_format via terraform as well? |
|
I'm using this line to inject DB, schema and file format:
|
had the same issue with |
## Description Doc-only change, no code was changed. This PR aims to lessen the confusion around how to specify `file_format` for the Stage resource, as people were hitting it in the past. Thanks to the contribution from the community - making the various example part of resource docs for finding it easier. ## References closes #265
Provider Version
0.16.0
Terraform Version
0.13.0
Describe the bug
Not able to create a stage when providing file_format name - the error mentioning a file format name which is not created by me
Expected behavior
the stage should be created
Code samples and commands
Please add code examples and commands that were run to cause the problem.
error
The text was updated successfully, but these errors were encountered: