You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/main/sphinx/connector/exasol.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,13 @@ Trino data type mapping:
101
101
* - ``DATE``
102
102
- ``DATE``
103
103
-
104
+
* - ``TIMESTAMP(n)``
105
+
- ``TIMESTAMP(n)``
106
+
- See :ref:`exasol-timestamp-mapping`
107
+
* - ``TIMESTAMP(n) WITH LOCAL TIME ZONE``
108
+
- ``TIMESTAMP(n) WITH TIME ZONE``
109
+
- See :ref:`exasol-timestamp-with-local-time-zone-mapping`
110
+
104
111
```
105
112
106
113
No other types are supported.
@@ -127,6 +134,34 @@ If no length is specified, the connector uses 2000000.
127
134
Trino's `CHAR(n)` maps to `CHAR(n)` and vice versa if `n` is no greater than 2000.
128
135
Exasol does not support longer values.
129
136
137
+
(exasol-timestamp-mapping)=
138
+
### Mapping `TIMESTAMP` Types
139
+
140
+
Exasol `TIMESTAMP(n)` columns are mapped to Trino's `TIMESTAMP(n)` type and vice versa, with the following exceptions:
141
+
142
+
-**No precision specified**:
143
+
If the precision is omitted (i.e., the column is defined as `TIMESTAMP` without `(n)`), Exasol defaults to a precision of 3. This maps to Trino's `TIMESTAMP(3)`.
144
+
145
+
-**Precision greater than 9**:
146
+
Exasol supports up to 9 digits of fractional seconds. If the precision in Exasol exceeds 9, an exception is thrown
147
+
148
+
-**Negative precision**:
149
+
Negative values for precision are invalid. If encountered, an exception is thrown.
150
+
151
+
(exasol-timestamp-with-local-time-zone-mapping)=
152
+
### Mapping `TIMESTAMP WITH LOCAL TIME ZONE` Types
153
+
154
+
Exasol `TIMESTAMP(n) WITH LOCAL TIME ZONE` columns are mapped to Trino's `TIMESTAMP(n) WITH TIME ZONE` type and vice versa, with the following exceptions:
155
+
156
+
-**No precision specified**:
157
+
If the precision is omitted (i.e., the column is defined as `TIMESTAMP WITH LOCAL TIME ZONE` without `(n)`), Exasol defaults to a precision of 3. This maps to Trino's `TIMESTAMP(3) WITH TIME ZONE`.
158
+
159
+
-**Precision greater than 9**:
160
+
Exasol supports up to 9 digits of fractional seconds. If the precision in Exasol exceeds 9, an exception is thrown.
161
+
162
+
-**Negative precision**:
163
+
Negative values for precision are invalid. If encountered, an exception is thrown.
0 commit comments