hf200012 commented on issue #5699: URL: https://github.com/apache/incubator-doris/issues/5699#issuecomment-826267991
final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); env.setParallelism(1); final StreamTableEnvironment tEnv = StreamTableEnvironment.create(env); List<Tuple2<String, Integer>> data = new ArrayList<>(); data.add(new Tuple2<>("doris",1)); DataStreamSource<Tuple2<String, Integer>> source = env.fromCollection(data); tEnv.createTemporaryView("doris_test",source,$("name"),$("age")); tEnv.executeSql( "CREATE TABLE doris_test_sink (" + "name STRING," + "age INT" + ") " + "WITH (\n" + " 'connector' = 'doris',\n" + " 'fenodes' = 'fe_ip:8030',\n" + " 'table.identifier' = 'db.tbl',\n" + " 'username' = 'root',\n" + " 'password' = ''\n" + ")"); tEnv.executeSql("select * from doris_test limit 20").print(); -- 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. 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