You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Alvin Ge (Jira)" <ji...@apache.org> on 2022/11/01 01:15:00 UTC

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

Alvin Ge created FLINK-29821:
--------------------------------

             Summary: 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


{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)