Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions docs/src/main/sphinx/connector/delta-lake.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,15 @@ Type mapping
------------

Because Trino and Delta Lake each support types that the other does not, this
connector modifies some types when reading or writing data.
connector modifies some types when reading or writing data. Data types may not
map the same way in both directions between Trino and the data source. Refer to
the following sections for type mapping in each direction.

Delta Lake to Trino type mapping
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Trino supports selecting Delta Lake data types. The following table shows the
Delta Lake to Trino type mapping:
The connector maps Delta Lake types to the corresponding Trino types following
this table:

.. list-table:: Delta Lake to Trino type mapping
:widths: 40, 60
Expand Down Expand Up @@ -281,15 +283,16 @@ Delta Lake to Trino type mapping:
* - ``STRUCT(...)``
- ``ROW(...)``

No other types are supported.

Trino to Delta Lake type mapping
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Trino supports creating tables with the following types in Delta Lake. The table
shows the mappings from Trino to Delta Lake data types:

The connector maps Trino types to the corresponding Delta Lake types following
this table:

.. list-table:: Trino to Delta Lake type mapping
:widths: 25, 30
:widths: 60, 40
:header-rows: 1

* - Trino type
Expand Down Expand Up @@ -325,6 +328,8 @@ shows the mappings from Trino to Delta Lake data types:
* - ``ROW(...)``
- ``STRUCT(...)``

No other types are supported.

.. _delta-lake-sql-support:

SQL support
Expand Down