Bug Report
Reproduce steps
Loading a concrete parquet object from COS reaches parquet type conversion, but fails when loading an optional string parquet column into a nullable DATETIME column.
Target table includes:
create table parquet_type_conversion_1y.all_type_parquet_1y (
row_id bigint,
c_tinyint tinyint,
c_smallint smallint,
c_int int,
c_bigint bigint,
c_uint8 tinyint unsigned,
c_uint16 smallint unsigned,
c_uint32 int unsigned,
c_uint64 bigint unsigned,
c_float32 float,
c_float64 double,
c_float_text float,
c_double_text double,
c_decimal decimal(38,10),
c_decimal_sci decimal(38,10),
c_bool bool,
c_char char(32),
c_varchar varchar(255),
c_text text,
c_json json,
c_blob blob,
c_binary binary(16),
c_varbinary varbinary(32),
c_date date,
c_datetime datetime,
c_timestamp timestamp,
c_time time,
c_uuid uuid,
c_enum enum('red','green','blue','yellow','purple'),
c_vecf32 vecf32(3),
c_vecf64 vecf64(3)
);
Load SQL:
load data url s3option {
'endpoint'='http://cos.ap-guangzhou.myqcloud.com',
'access_key_id'='***',
'secret_access_key'='***',
'bucket'='mo-load-guangzhou-1308875761',
'filepath'='mo-big-data/parquet_type_conversion_100M/part-00000.parquet',
'format'='parquet'
}
into table parquet_type_conversion_1y.all_type_parquet_1y
parallel 'true';
Actual behavior
ERROR 20102 (HY000): load STRING(optional) to DATETIME NULL is not yet implemented
Expected behavior
LOAD DATA ... format='parquet' should support loading valid datetime string values from an optional parquet STRING column into a nullable MO DATETIME column, or the limitation should be documented clearly if this conversion is intentionally unsupported.
Notes
please contact me for parquet file
Bug Report
Reproduce steps
Loading a concrete parquet object from COS reaches parquet type conversion, but fails when loading an optional string parquet column into a nullable DATETIME column.
Target table includes:
Load SQL:
load data url s3option { 'endpoint'='http://cos.ap-guangzhou.myqcloud.com', 'access_key_id'='***', 'secret_access_key'='***', 'bucket'='mo-load-guangzhou-1308875761', 'filepath'='mo-big-data/parquet_type_conversion_100M/part-00000.parquet', 'format'='parquet' } into table parquet_type_conversion_1y.all_type_parquet_1y parallel 'true';Actual behavior
Expected behavior
LOAD DATA ... format='parquet'should support loading valid datetime string values from an optional parquet STRING column into a nullable MODATETIMEcolumn, or the limitation should be documented clearly if this conversion is intentionally unsupported.Notes
please contact me for parquet file