@@ -16,22 +16,22 @@ The following table lists the built-in types available to all CDS models. In add
1616| CDS Type | Remarks | ANSI SQL <sup >(1)</sup > |
1717| --- | --- | --- |
1818| ` UUID ` | CAP generates [ RFC 4122] ( https://tools.ietf.org/html/rfc4122 ) -compliant UUIDs <sup >(2)</sup > | _ NVARCHAR(36)_ |
19- | ` Boolean ` | | _ BOOLEAN_ |
20- | ` Integer ` | | _ INTEGER_ |
21- | ` Int16 ` | | _ SMALLINT_ |
22- | ` Int32 ` | | _ INTEGER_ |
23- | ` Int64 ` | | _ BIGINT_ |
24- | ` UInt8 ` | Not available on PostgreSQL and H2 | _ TINYINT_ |
19+ | ` Boolean ` | Values: ` true ` , ` false ` , ` null ` , ` 0 ` , ` 1 ` | _ BOOLEAN_ |
20+ | ` Integer ` | Same as ` Int32 ` by default | _ INTEGER_ |
21+ | ` Int16 ` | Signed 16-bit integer, range * [ -2< sup >15</ sup > ... +2< sup >15</ sup > ) * | _ SMALLINT_ |
22+ | ` Int32 ` | Signed 32-bit integer, range * [ -2< sup >31</ sup > ... +2< sup >31</ sup > ) * | _ INTEGER_ |
23+ | ` Int64 ` | Signed 64-bit integer, range * [ -2< sup >63</ sup > ... +2< sup >63</ sup > ) * | _ BIGINT_ |
24+ | ` UInt8 ` | Unsigned 8-bit integer, range * [ 0 ... 255 ] * | _ TINYINT_ < sup >(3)</ sup > |
2525| ` Decimal ` (` prec ` , ` scale ` ) | A * decfloat* type is used if arguments are omitted | _ DECIMAL_ |
26- | ` Double ` | | _ DOUBLE_ |
27- | ` Date ` | | _ DATE_ |
28- | ` Time ` | | _ TIME_ |
26+ | ` Double ` | Floating point with binary mantissa | _ DOUBLE_ |
27+ | ` Date ` | e.g. ` 2022-12-31 ` | _ DATE_ |
28+ | ` Time ` | e.g. ` 24:59:59 ` | _ TIME_ |
2929| ` DateTime ` | _ sec_ precision | _ TIMESTAMP_ |
3030| ` Timestamp ` | _ µs_ precision, with up to 7 fractional digits | _ TIMESTAMP_ |
31- | ` String ` (` length ` ) | Default * length* : 255; on HANA: 5000 <sup >(3 )</sup > | _ NVARCHAR_ |
32- | ` Binary ` (` length ` ) | default * length* : 255; on HANA: 5000 <sup >(4 )</sup > | _ VARBINARY_ |
33- | ` LargeBinary ` | | _ BLOB_ |
34- | ` LargeString ` | | _ NCLOB_ |
31+ | ` String ` (` length ` ) | Default * length* : 255; on HANA: 5000 <sup >(4 )</sup > | _ NVARCHAR_ |
32+ | ` Binary ` (` length ` ) | Default * length* : 255; on HANA: 5000 <sup >(5 )</sup > | _ VARBINARY_ |
33+ | ` LargeBinary ` | Unlimited data, usually streamed at runtime | _ BLOB_ |
34+ | ` LargeString ` | Unlimited data, usually streamed at runtime | _ NCLOB_ |
3535| ` Map ` | Mapped to * NCLOB* for HANA. | * JSON* type |
3636| ` Vector ` (` dimension ` ) | Requires SAP HANA Cloud QRC 1/2024, or later | _ REAL_VECTOR_ |
3737
@@ -40,9 +40,11 @@ The following table lists the built-in types available to all CDS models. In add
4040>
4141> <sup >(2)</sup > See also [ Best Practices] ( ../guides/domain-modeling#don-t-interpret-uuids ) .
4242>
43- > <sup >(3)</sup > Configurable through ` cds.cdsc.defaultStringLength ` .
43+ > <sup >(3)</sup > Not available on PostgreSQL and H2.
4444>
45- > <sup >(4)</sup > Configurable through ` cds.cdsc.defaultBinaryLength ` .
45+ > <sup >(4)</sup > Configurable through ` cds.cdsc.defaultStringLength ` .
46+ >
47+ > <sup >(5)</sup > Configurable through ` cds.cdsc.defaultBinaryLength ` .
4648
4749#### See also...
4850
0 commit comments