chao he created HUDI-5331:
-----------------------------
Summary: Add schema settings with stream api
Key: HUDI-5331
URL: https://issues.apache.org/jira/browse/HUDI-5331
Project: Apache Hudi
Issue Type: Improvement
Reporter: chao he
When using stream api with flink, you need to use '.column()' to set each
column, eg:
{code:java}
HoodiePipeline.Builder builder = HoodiePipeline.builder(targetTable)
.column("uuid VARCHAR(20)")
.column("name VARCHAR(10)")
.column("age INT")
.column("ts TIMESTAMP(3)")
.column("`partition` VARCHAR(20)")
.pk("uuid")
.partition("partition")
.options(options); {code}
After improvement, you can use the '.schema()' method, no longer need to set
each column, eg:
{code:java}
HoodiePipeline.Builder builder = HoodiePipeline.builder(targetTable)
.schema(table.schema)
.pk("uuid")
.partition("partition")
.options(options); {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)