diff --git a/docs/sql-ref-ansi-compliance.md b/docs/sql-ref-ansi-compliance.md index 65ed5caf83344..85d3920e7071d 100644 --- a/docs/sql-ref-ansi-compliance.md +++ b/docs/sql-ref-ansi-compliance.md @@ -80,17 +80,17 @@ Besides, the ANSI SQL mode disallows the following type conversions which are al ā€œYā€ indicates that the combination is syntactically valid without restriction and ā€œNā€ indicates that the combination is not valid. | Source\Target | Numeric | String | Date | Timestamp | Interval | Boolean | Binary | Array | Map | Struct | -|-----------|---------|--------|------|-----------|----------|---------|--------|-------|-----|--------| -| Numeric | **Y** | **Y** | N | **Y** | N | Y | N | N | N | N | +|-----------|--------|--------|------|-----------|----------|---------|--------|-------|-----|--------| +| Numeric | **Y** | **Y** | N | **Y** | **Y** | Y | N | N | N | N | | String | **Y** | Y | **Y** | **Y** | **Y** | **Y** | Y | N | N | N | -| Date | N | Y | Y | Y | N | N | N | N | N | N | +| Date | N | Y | Y | Y | N | N | N | N | N | N | | Timestamp | **Y** | Y | Y | Y | N | N | N | N | N | N | -| Interval | N | Y | N | N | Y | N | N | N | N | N | -| Boolean | Y | Y | N | N | N | Y | N | N | N | N | -| Binary | N | Y | N | N | N | N | Y | N | N | N | -| Array | N | Y | N | N | N | N | N | **Y** | N | N | -| Map | N | Y | N | N | N | N | N | N | **Y** | N | -| Struct | N | Y | N | N | N | N | N | N | N | **Y** | +| Interval | **Y** | Y | N | N | Y | N | N | N | N | N | +| Boolean | Y | Y | N | N | N | Y | N | N | N | N | +| Binary | N | Y | N | N | N | N | Y | N | N | N | +| Array | N | Y | N | N | N | N | N | **Y** | N | N | +| Map | N | Y | N | N | N | N | N | N | **Y** | N | +| Struct | N | Y | N | N | N | N | N | N | N | **Y** | In the table above, all the `CAST`s with new syntax are marked as red **Y**: * CAST(Numeric AS Numeric): raise an overflow exception if the value is out of the target data type's range. @@ -101,16 +101,21 @@ In the table above, all the `CAST`s with new syntax are marked as red