-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_bigquery_table seems to not like valid data type names INT64 and FLOAT64 #8774
Comments
@jamiet-msm I can't repro. What version of the provider are you using? If you use an old version, can you try the latest version? It would be great if you can share the |
@jamiet-msm is this still an issue? |
Hi @edwardmedia , Apologies for the delay in replying.
|
@jamiet-msm here is the code that is expected to addresses There are several issues related to this. Below is one of them that might help follow the issue. Can you try the provider of the latest version to see if this is still an issue? 10MB is big. You may post several requests & response related to the |
@jamiet-msm based on the latest code and the fact I can't repro the issue, I am closing this issue now. If you see the issue remains, please provide the details so I can follow and repro. Thanks |
Hi @edwardmedia I have good news tho. Upgrading to the latest version of the provider has solved the problem. We were on 3.51.0, we're now on 3.63.0. It looks like the fix is in this commit: a8ff070 on 2021-01-15 and it made it into 3.56.0. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
0.14.9
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
When running
terraform apply
after the table above has already been created terraform should not try and make any changes to the table. The type of column ExtractAuditKey is INT64 which is listed at https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types as the name of a data type.Actual Behavior
When running
terraform apply
after the table above has already been created terraform deems it necessary to change the type of column ExtractAuditKey:We can prevent this from happening by changing the table definition to:
however we're of the opinion that we shouldn't have to. We have used the correct name of the data type as per the documentation so why is it being changed? If I look at the table in bigquery it does state the data type as being INTEGER, not INT64, so I'm assuming that INTEGER & INT64 are considered synonyms of each other. if that is the case then terraform shouldn't recognise them as being different in my opinion.
Interested in your thoughts.
We have the same issue with columns of type FLOAT64/FLOAT too by the way.
Steps to Reproduce
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered: