Open xiaomokk opened 1 year ago
up
Is there any other way to add parameters? I have also encountered similar issues
Up, I have same issue..
I have a table with datetime column and NOT NULL constraint for that column, when I insert value '0000-00-00 00:00:00' to that column, and execute select
query from the table via mysql client, it shows the row, but when I query it using jdbc catalog, it shows error:
SQL Error [1064] [42000]: Unexpected NULL value occurs on NOT NULL column[DUE_DATE]
have you upgrade to 3.1.10, from 3.1.10 we support this config.
Steps to reproduce the behavior (Required)
create table item_tmp in mysql, database name: perfn
load data to mysql table from csv
The contents of the '/tmp/item_tmp.dat' file are as follows:
login mysql client:
load data to perfn.item_tmp:
create external catalog in StarRocks and query mysql data from StarRocks
create external catalog in StarRocks with 'zeroDateTimeBehavior'
Expected behavior (Required)
set zeroDateTimeBehavior=CONVERT_TO_NULL, and then zero date will be converted to null
Real behavior (Required)
Looks like the parameter is incorrectly parsed.
StarRocks version (Required)