[ 
https://issues.apache.org/jira/browse/HUDI-5331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HUDI-5331:
---------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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)

Reply via email to