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: presto-docs/src/main/sphinx/connector/hive.rst
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1127,4 +1127,56 @@ Drop a schema::
1127
1127
Hive Connector Limitations
1128
1128
--------------------------
1129
1129
1130
+
SQL DELETE
1131
+
^^^^^^^^^^
1132
+
1130
1133
:doc:`/sql/delete` is only supported if the ``WHERE`` clause matches entire partitions.
1134
+
1135
+
CSV Format Type Limitations
1136
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
1137
+
1138
+
When creating tables with CSV format, all columns must be defined as ``VARCHAR`` due to
1139
+
the underlying OpenCSVSerde limitations. `OpenCSVSerde <https://github.com/apache/hive/blob/master/serde/src/java/org/apache/hadoop/hive/serde2/OpenCSVSerde.java>`_ deserializes all CSV columns
1140
+
as strings only. Using any other data type will result in an error similar to the following::
1141
+
1142
+
CREATE TABLE hive.csv.csv_fail (
1143
+
id BIGINT,
1144
+
value INT,
1145
+
date_col DATE
1146
+
) with ( format = 'CSV' ) ;
1147
+
1148
+
.. code-block:: none
1149
+
1150
+
Query failed: Hive CSV storage format only supports VARCHAR (unbounded).
1151
+
Unsupported columns: id integer, value integer, date_col date
1152
+
1153
+
To work with other data types when using CSV format:
1154
+
1155
+
1. Create the table with all the columns as ``VARCHAR``
1156
+
2. Create a view or another table that casts the columns to their desired data types
0 commit comments