JNSimba opened a new pull request, #60: URL: https://github.com/apache/doris-flink-connector/pull/60
# Proposed changes Issue Number: close #xxx ## Problem Summary: **1.support doris catalog** In flink1.15 the following operations can be performed ```sql Flink SQL> CREATE CATALOG doris_catalog WITH( > 'type' = 'doris', > 'default-database' = 'test', > 'username' = 'root', > 'password' = '', > 'jdbc-url' = 'jdbc:mysql://127.0.0.1:9030', > 'sink.label-prefix' = 'label' > ); [INFO] Execute statement succeed. Flink SQL> CREATE CATALOG my_catalog WITH( > 'type' = 'jdbc', > 'default-database' = 'test', > 'username' = 'root', > 'password' = '', > 'base-url' = 'jdbc:mysql://127.0.0.1:3306' > ); [INFO] Execute statement succeed. Flink SQL> use catalog doris_catalog; [INFO] Execute statement succeed. Flink SQL> show tables; +---------------------------+ | table name | +---------------------------+ | t_all_types | +---------------------------+ 11 rows in set Flink SQL> show create table t_all_types; CREATE TABLE `doris_catalog`.`test`.`t_all_types` ( `id` VARCHAR(2147483647), `c_boolean` BOOLEAN, `c_char` CHAR(1), `c_date` DATE, `c_datetime` TIMESTAMP(0), `c_decimal` DECIMAL(10, 2), `c_double` DOUBLE, `c_float` FLOAT, `c_int` INT, `c_bigint` BIGINT, `c_largeint` VARCHAR(2147483647), `c_smallint` SMALLINT, `c_string` VARCHAR(2147483647), `c_tinyint` TINYINT ) WITH ( 'password' = '', 'connector' = 'doris', 'fenodes' = '10.0.4.6:8030', 'table.identifier' = 'test.t_all_types', 'sink.label-prefix' = 'label_test_t_all_types', 'username' = 'root' ) Flink SQL> insert into doris_catalog.test.test_1 select * from my_catalog.test.test_1; [INFO] Submitting SQL update statement to the cluster... [INFO] SQL update statement has been successfully submitted to the cluster: Job ID: 2e6f8deae7fcc3bcd43e9f6c2994b412 ``` **2.Fix possible problems with thrift under multiple concurrency** ## Checklist(Required) 1. Does it affect the original behavior: (Yes/No/I Don't know) 2. Has unit tests been added: (Yes/No/No Need) 3. Has document been added or modified: (Yes/No/No Need) 4. Does it need to update dependencies: (Yes/No) 5. Are there any changes that cannot be rolled back: (Yes/No) ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org