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
What this issue entails is implementing a lazy migration strategy to transition from LegacyDec to Dec to handle differences in precision and state compatibility introduced by the new GDA decimal type from apd.
There were a few ideas around how to move forward but the most agreed upon was a lazy migration. This could work by using a character prefix to distinguish between the old and new data formats and from there only when data is accessed or modified it will be converted. This could be done in the Marshal and Unmarshal functions within Dec and LegacyDec but we also have AltValueCodec from collections, which could potentially be used.
The text was updated successfully, but these errors were encountered:
Recently we upstreamed the GDA decimal type https://github.com/cockroachdb/apd in this pr #20085.
What this issue entails is implementing a lazy migration strategy to transition from
LegacyDec
toDec
to handle differences in precision and state compatibility introduced by the new GDA decimal type from apd.There were a few ideas around how to move forward but the most agreed upon was a lazy migration. This could work by using a character prefix to distinguish between the old and new data formats and from there only when data is accessed or modified it will be converted. This could be done in the
Marshal
andUnmarshal
functions withinDec
andLegacyDec
but we also haveAltValueCodec
from collections, which could potentially be used.The text was updated successfully, but these errors were encountered: