You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "yux (Jira)" <ji...@apache.org> on 2024/05/08 06:46:00 UTC

[jira] [Created] (FLINK-35308) StarRocks sink maps TINYINT type to BOOLEAN incorrectly

yux created FLINK-35308:
---------------------------

             Summary: StarRocks sink maps TINYINT type to BOOLEAN incorrectly
                 Key: FLINK-35308
                 URL: https://issues.apache.org/jira/browse/FLINK-35308
             Project: Flink
          Issue Type: Bug
          Components: Flink CDC
            Reporter: yux


In MySQL -> StarRocks pipeline job, the following MySQL source table schema:


CREATE TABLE fallen_angel(
     ID VARCHAR(177) NOT NULL,
     BOOLEAN_COL BOOLEAN, 
     TINYINT_COL TINYINT(1),
     PRIMARY KEY (ID)
);

will be mapped to StarRocks sink as follows:


Field           Type            Null    Key     Default Extra
ID              varchar(531)    NO      true    NULL       
BOOLEAN_COL     boolean         YES     false   NULL    
TINYINT_COL     boolean         YES     false   NULL 



where the TINYINT_COL's type is mapped to BOOLEAN, wrongly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)