Skip to content

Commit 443509b

Browse files
committed
Update type casts docs
1 parent 2046e13 commit 443509b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/analyst_guide.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,16 @@ Default [Postgres function](https://www.postgresql.org/docs/14/functions-string.
238238

239239
## Type casts
240240

241-
When selecting or generalizing columns of personal tables, the following type conversions are allowed.
242-
243-
All numeric types may be converted to other numeric types.
244-
Numeric types are: `smallint`, `integer`, `bigint`, `float`, `double`, and `numeric` (`decimal`).
245-
When converting from a real type to an integer type, implicit rounding occurs (away from zero).
246-
247-
Date/time types may be converted to text.
248-
Date/time types are: `date`, `time`, `timestamp`, `timetz`, and `timestamptz`.
249-
The [DateStyle](https://www.postgresql.org/docs/14/runtime-config-client.html#GUC-DATESTYLE)
250-
configuration parameter determines the output format of the string.
241+
When selecting or generalizing columns of personal tables, the following type conversions are allowed:
242+
243+
- All numeric types may be converted to other numeric types.
244+
Numeric types are: `smallint`, `integer`, `bigint`, `float`, `double`, and `numeric` (`decimal`).
245+
When converting from a real type to an integer type, implicit rounding occurs (away from zero).
246+
Such casts count as generalizing expressions and no further generalizations are allowed.
247+
- Date/time types may be converted to text.
248+
Date/time types are: `date`, `time`, `timestamp`, `timetz`, and `timestamptz`.
249+
The [DateStyle](https://www.postgresql.org/docs/14/runtime-config-client.html#GUC-DATESTYLE)
250+
configuration parameter determines the output format of the string.
251251

252252
**Example:**
253253

0 commit comments

Comments
 (0)