You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2019/09/03 08:14:00 UTC

[jira] [Commented] (FLINK-13900) Add a built-in "console" sink to print results in console

    [ https://issues.apache.org/jira/browse/FLINK-13900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16921241#comment-16921241 ] 

Jark Wu commented on FLINK-13900:
---------------------------------

Yes. This will be a sink without fixed schema. It needs an interface like {{TableSink.configure(...)}} to dynamically set the query's schema. It is useful in some cases if the external system is not fixed-schema.

I didn't consider to add it as a regular connector. I would like it can be used as easy as possible. If we want to support additional options, we may can support them via job level configurations. 

> Add a built-in "console" sink to print results in console
> ---------------------------------------------------------
>
>                 Key: FLINK-13900
>                 URL: https://issues.apache.org/jira/browse/FLINK-13900
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table SQL / API, Table SQL / Planner
>            Reporter: Jark Wu
>            Priority: Major
>
> It is a useful feature for debugging and quickstart. With the console builtin sink, we can directly output arbitrary query into the console or {{taskmanager.out}} in cluster setup. 
> Currently, we have to implement a dedicate PrintTableSink and configure every field names and types before output the query, which is very verbose. 
> {code:sql}
> INSERT INTO console
> SELECT * FROM kafka_logs
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)