Skip to content

Commit

Permalink
Deprecate type changes in Type Widening
Browse files Browse the repository at this point in the history
  • Loading branch information
johanl-db committed Sep 4, 2024
1 parent d94a9fe commit dfa3efd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions protocol_rfcs/type-widening.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dfa3efd

Please sign in to comment.