MySQL HeatWave Lakehouse has the following limitations for CSV files.
MySQL does not recognise NaN values in
CSVfiles. Replace all NaN values with NULL.Lakehouse does not support CSV files with more than 4MB per line.
-
As of MySQL 9.3.2, Lakehouse supports the
VECTORdata type for CSV and Parquet files. Consider the following limitations:You cannot give the
VECTORdata type a default value other thanNULL.Vectors that are in binary or hex format are not supported.
-
You cannot directly convert
VECTORtoJSONorJSONtoVECTOR.-
To convert
VECTORtoJSON, first convertVECTORto a STRING data type by using the VECTOR_TO_STRING() function. Then, cast this string asJSON.For example, if
col_1intable_1is aVECTORcolumn that you want to convert toJSON, you can do the following:SELECT CAST(VECTOR_TO_STRING(col_1) as JSON) FROM table_1; -
To convert
JSONtoVECTOR, first convertJSONto a STRING data type, and then use the STRING_TO_VECTOR() function to convert toVECTOR.For example, if
col_1intable_1is aJSONcolumn that you want to convert toVECTOR, you can do the following:SELECT STRING_TO_VECTOR(CAST(col_1 as NCHAR)) FROM table_1;
-
If you run
Vector_to_string(col)as a Vector_to_string() function, it fails if there are any0x(default for invalid vectors) values. To avoid errors, filter out these values.