Invalid plan arising from integer rounding
bendbennett opened this issue · comments
Module version
github.com/hashicorp/terraform-plugin-framework v0.7.0
Relevant provider source code
"min": {
Type: types.Int64Type,
},
"max": {
Type: types.Int64Type,
},
Terraform Configuration Files
resource "random_integer" "integer_1" {
max = 7227701560655103598
min = 7227701560655103597
seed = 12345
}
Debug Output
https://gist.github.com/bendbennett/6d9066c120883e17dcda25f0e98aec59
Expected Behavior
There should be no integer rounding.
Actual Behavior
Rounding is observed which causes an invalid plan.
Provider "registry.terraform.io/hashicorp/random" planned an invalid value
for random_integer.integer_1.min: planned value
cty.NumberIntVal(7.227701560655104e+18) does not match config value
cty.NumberIntVal(7.227701560655103597e+18).
Steps to Reproduce
Use a 64 bit integer within a resource that uses Framework v0.7.0