You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Leonard Xu (Jira)" <ji...@apache.org> on 2021/01/19 02:07:00 UTC

[jira] [Commented] (FLINK-18726) Support INSERT INTO specific columns

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

Leonard Xu commented on FLINK-18726:
------------------------------------

Hello, [~atri]

What's the progress of the project? This feature is much anticipated,I hope we can make sure it can be supported in 1.13.

> Support INSERT INTO specific columns
> ------------------------------------
>
>                 Key: FLINK-18726
>                 URL: https://issues.apache.org/jira/browse/FLINK-18726
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Planner
>            Reporter: Caizhi Weng
>            Assignee: Atri Sharma
>            Priority: Major
>              Labels: sprint
>             Fix For: 1.13.0
>
>
> Currently Flink only supports insert into a table without specifying columns, but most database systems support insert into specific columns by
> {code:sql}
> INSERT INTO table_name(column1, column2, ...) ...
> {code}
> The columns not specified will be filled with default values or {{NULL}} if no default value is given when creating the table.
> As Flink currently does not support default values when creating tables, we can fill the unspecified columns with {{NULL}} and throw exceptions if there are columns with {{NOT NULL}} constraints.



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