From dfa3efd8890899616a4cc1d3a8840905459a0a31 Mon Sep 17 00:00:00 2001 From: Johan Lasperas Date: Thu, 29 Aug 2024 13:33:26 +0200 Subject: [PATCH] Deprecate type changes in Type Widening --- protocol_rfcs/type-widening.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/protocol_rfcs/type-widening.md b/protocol_rfcs/type-widening.md index 11a8276e8d3..c204235cc7b 100644 --- a/protocol_rfcs/type-widening.md +++ b/protocol_rfcs/type-widening.md @@ -15,13 +15,10 @@ The supported type changes are: - `Byte` -> `Short` -> `Int` -> `Long` - Floating-point widening: - `Float` -> `Double` - - `Byte`, `Short` or `Int` -> `Double` - Date widening: - `Date` -> `Timestamp without timezone` -- Decimal widening - `p` and `s` denote the decimal precision and scale respectively. - - `Decimal(p, s)` -> `Decimal(p + k1, s + k2)` where `k1 >= k2 >= 0`. - - `Byte`, `Short` or `Int` -> `Decimal(10 + k1, k2)` where `k1 >= k2 >= 0`. - - `Long` -> `Decimal(20 + k1, k2)` where `k1 >= k2 >= 0`. +- Decimal precision increase: + - `Decimal(p1, s)` -> `Decimal(p2, s)` where `p2 >= p1`. To support this feature: - The table must be on Reader version 3 and Writer Version 7.