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

Flink Jira Bot updated FLINK-23739:
-----------------------------------
    Labels: pull-request-available stale-assigned  (was: pull-request-available)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help 
the community manage its development. I see this issue is assigned but has not 
received an update in 30 days, so it has been labeled "stale-assigned".
If you are still working on the issue, please remove the label and add a 
comment updating the community on your progress.  If this issue is waiting on 
feedback, please consider this a reminder to the committer/reviewer. Flink is a 
very active project, and so we appreciate your patience.
If you are no longer working on the issue, please unassign yourself so someone 
else may work on it.


> PrintTableSink do not implement SupportsPartitioning interface
> --------------------------------------------------------------
>
>                 Key: FLINK-23739
>                 URL: https://issues.apache.org/jira/browse/FLINK-23739
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / API
>    Affects Versions: 1.12.4
>            Reporter: Xianxun Ye
>            Assignee: Xianxun Ye
>            Priority: Major
>              Labels: pull-request-available, stale-assigned
>
>  
> {code:java}
> //代码占位符
> tEnv.executeSql(
>         "CREATE TABLE PrintTable (name STRING, score INT, da STRING, hr 
> STRING)\n"
>                 + "PARTITIONED BY (da, hr)"
>                 + "WITH (\n"
>                 + "  'connector' = 'print'"
>                 + ")");
> tEnv.executeSql("INSERT INTO PrintTable SELECT 'n1' as name, 1 as score, 
> '2021-08-12' as da, '11' as hr");
> {code}
> Now print records with a partitioned table is not supported.
> {code:java}
> //代码占位符
> Exception in thread "main" org.apache.flink.table.api.TableException: Table 
> 'default_catalog.default_database.PrintTable' is a partitioned table, but the 
> underlying DynamicTableSink doesn't implement the SupportsPartitioning 
> interface.Exception in thread "main" 
> org.apache.flink.table.api.TableException: Table 
> 'default_catalog.default_database.PrintTable' is a partitioned table, but the 
> underlying DynamicTableSink doesn't implement the SupportsPartitioning 
> interface. at 
> org.apache.flink.table.planner.sinks.DynamicSinkUtils.validatePartitioning(DynamicSinkUtils.java:345)
>  at 
> org.apache.flink.table.planner.sinks.DynamicSinkUtils.prepareDynamicSink(DynamicSinkUtils.java:260)
>  at 
> org.apache.flink.table.planner.sinks.DynamicSinkUtils.toRel(DynamicSinkUtils.java:87)
> {code}
> `org.apache.flink.table.factories.PrintTableSinkFactory$PrintSink` and 
> `org.apache.flink.table.factories.BlackHoleTableSinkFactory$BlackHoleSink` 
> shoud implement `SupportsPartitioning` interface. 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to