rambleraptor commented on PR #10:
URL: https://github.com/apache/iceberg-terraform/pull/10#issuecomment-3947723904
@zeroshade I wish we could 😢
Terraform loves reinventing the wheel. They don't use any of the normal Go
primitives (int64, string, etc.). They've reimplemented all of them. If I
marshal a Terraform string to JSON, I get `{ "Value": "my-string", "Null":
"false", "Unknown": "false" }` when I'm expecting `"my-string"`.
Sadly, this means that we can't just directly convert between Terraform +
iceberg-go. We have to have our own marshallers that grab the actual value.
It's very annoying. The inner struct model seemed like the best way of doing
this, let me know if there's a better way.
(Anybody on the internet reading this - why does Terraform do this versus
just using a pointer to a regular Go type?)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]