We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
看flink-connector-clickhouse里面ClickHouseBatchExecutor有批量写入Clickhouse的操作,怎么使用,有例子吗? 还是只能使用flink的原生sink?
The text was updated successfully, but these errors were encountered:
Hi: 项目readme就是使用demo,使用sql的; 如果要用API得结果flink的Table API使用;
Sorry, something went wrong.
Table test_product_order_item = tEnv.sqlQuery(sql);
// TableResult dsSql = tEnv.executeSql(dsSQL); test_product_order_item.execute().print(); // tEnv.createTemporaryView("test_product_order_item_bk", test_product_order_item);
String sinkDDL = "" + "CREATE TABLE if not exists test_product_order_item( " + "create_time DateTime, " + "sku_id String, " + "product_id String, " + "product_name String, " + "total_amount Decimal(10, 2) default 0. " + "with ( " + "'connector' = 'clickhouse', " + "'url' = 'clickhouse://192.168.110.109:8124/ads', " + "'database-name' = 'test_product_order_item', " + "'username' = 'default', " + "'password' = '123456' " + "'lookup.cache.max-rows' = '100', " + "'lookup.cache.ttl' = '10', " + "'lookup.max-retries' = '3' " + "" ; tEnv.sqlQuery(sinkDDL); test_product_order_item.insertInto("test_product_order_item");
test_product_order_item作为flink table已经有了数据,sink的话,用tEnv.sqlQuery一直报错,是因为api用的不对吗?
No branches or pull requests
看flink-connector-clickhouse里面ClickHouseBatchExecutor有批量写入Clickhouse的操作,怎么使用,有例子吗?
还是只能使用flink的原生sink?
The text was updated successfully, but these errors were encountered: