JNSimba opened a new pull request, #212:
URL: https://github.com/apache/doris-flink-connector/pull/212

   # Proposed changes
   Support doris map, struct type reading and writing
   
   ```java
   //datagen->doris
   tEnv.executeSql(
            "CREATE TABLE doris_test (" +
            "  id int,\n" +
            "  task Map<String,int>,\n" +
            "  buyer ROW<s_id int,s_name string, s_address string>\n" +
            ") " +
            "WITH (\n" +
            "  'connector' = 'datagen', \n" +
            "  'number-of-rows' = '11' \n" +
            ")");
   
   tEnv.executeSql("CREATE TABLE blackhole_table (" +
            "id int," +
            "m Map<String,int>," +
            "s_info Row<s_id int,s_name string, s_address string>" +
            ") WITH (" +
            "  'connector' = 'doris',\n" +
            "  'fenodes' = '10.16.10.6:28737',\n" +
            "  'table.identifier' = 'test.simple_map2',\n" +
            "  'sink.enable-2pc' = 'false',\n" +
            "  'username' = 'root',\n" +
            "  'password' = '',\n" +
            "  'sink.properties.format' = 'json',\n" +
            "  'sink.properties.read_json_by_line' = 'true'\n" +
            ");");
   
   tEnv.executeSql("INSERT INTO blackhole_table select * from doris_test");
    
   
   
   //doris->doris
   tEnv.executeSql(
           "CREATE TABLE doris_source (" +
           "id int," +
           "m Map<String,int>," +
           "s_info Row<s_id int,s_name string, s_address string>" +
           ") " +
           "WITH (\n" +
           "  'connector' = 'doris',\n" +
           "  'fenodes' = '10.16.10.6:28737',\n" +
           "  'table.identifier' = 'test.simple_map',\n" +
           "  'username' = 'root',\n" +
           "  'password' = ''\n" +
           ")");
   
   tEnv.executeSql("CREATE TABLE blackhole_table (" +
                   "id int," +
                   "m Map<String,int>," +
                   "s_info Row<s_id int,s_name string, s_address string>" +
                   ") WITH (" +
                   "  'connector' = 'doris',\n" +
                   "  'fenodes' = '10.16.10.6:28737',\n" +
                   "  'table.identifier' = 'test.simple_map2',\n" +
                   "  'sink.enable-2pc' = 'false',\n" +
                   "  'username' = 'root',\n" +
                   "  'password' = '',\n" +
                   "  'sink.properties.format' = 'json',\n" +
                   "  'sink.properties.read_json_by_line' = 'true'\n" +
                   ");");
   
   tEnv.executeSql("insert into blackhole_table select * from doris_source");
   
   ```
   
   Describe the overview of changes.
   
   ## 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

Reply via email to