You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Alvin Ge (Jira)" <ji...@apache.org> on 2023/04/12 13:42:00 UTC

[jira] [Commented] (FLINK-29821) Schema.Builder how to set not null column?

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

Alvin Ge commented on FLINK-29821:
----------------------------------

Thanks all of you guys.

> Schema.Builder how to set not null column?
> ------------------------------------------
>
>                 Key: FLINK-29821
>                 URL: https://issues.apache.org/jira/browse/FLINK-29821
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / API
>    Affects Versions: shaded-16.0
>         Environment: Windows local development env.
>            Reporter: Alvin Ge
>            Priority: Not a Priority
>
> {code:java}
> // code placeholder
> Schema.Builder schemaBuilder = Schema.newBuilder();
> schemaBuilder.column("id", DataTypes.BIGINT())
>         .column("value", DataTypes.STRING())
>         .primaryKey("id"); {code}
> When I was setting primary key, console print primary key can not be null, but I don't know how to setting my primay key not null....



--
This message was sent by Atlassian Jira
(v8.20.10#820010)