You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and if you convert it to string or float64 by calling big.Float's relevant methods, it becomes wrong:
newStateVal then doesn't have the correct data stored for the field that had 9223372036854775807 as its value, instead it has 9223372036854776000 which leads to the crash:
SDK version
Relevant provider source code
Terraform reads it correctly in first place, until it reaches
grpc_provider.go
, here is an example where it's read properly:then in
grpc_provider.go
this code makes it lose its precision:here's what debugger shows:
and if you convert it to
string
orfloat64
by callingbig.Float
's relevant methods, it becomes wrong:newStateVal
then doesn't have the correct data stored for the field that had9223372036854775807
as its value, instead it has9223372036854776000
which leads to the crash:Expected Behavior
it should have worked properly and returned
9223372036854775807
insteadActual Behavior
it returns
9223372036854776000
Steps to Reproduce
9223372036854775807
N.B. it only crashes when it's read after it's already created, i.e. during resource's creation—it won't fail
References
The text was updated successfully, but these errors were encountered: