From 2f4efaea5f13860f8e85abc99e5e52ec374ff224 Mon Sep 17 00:00:00 2001 From: Joe Lodin Date: Thu, 7 Jul 2022 17:15:40 -0400 Subject: [PATCH] Style edits of type mapping for Delta Lake connector --- docs/src/main/sphinx/connector/delta-lake.rst | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/src/main/sphinx/connector/delta-lake.rst b/docs/src/main/sphinx/connector/delta-lake.rst index 13e6427d1c2c..6e8b7bb14794 100644 --- a/docs/src/main/sphinx/connector/delta-lake.rst +++ b/docs/src/main/sphinx/connector/delta-lake.rst @@ -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 @@ -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 @@ -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