You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "JNSimba (via GitHub)" <gi...@apache.org> on 2023/10/18 08:31:31 UTC
[PR] [feature] support struct, map type [doris-flink-connector]
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 [dev@doris.apache.org](mailto:dev@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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [feature] support struct and map type [doris-flink-connector]
Posted by "zy-kkk (via GitHub)" <gi...@apache.org>.
zy-kkk merged PR #212:
URL: https://github.com/apache/doris-flink-connector/pull/212
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org