risingwavelabs / risingwave

Best-in-class stream processing, analytics, and management. Perform continuous analytics, or build event-driven applications, real-time ETL pipelines, and feature stores in minutes. Unified streaming and batch. PostgreSQL compatible.
https://go.risingwave.com/slack
Apache License 2.0
6.82k stars 567 forks source link

Have we removed column constraints "NOT NULL"? #4513

Closed huangjw806 closed 2 years ago

huangjw806 commented 2 years ago

Describe the bug

Today's benchmark cron failed with the following error:

[error] Create source tables error: pq: QueryError: Feature is not yet implemented: column constraints "NOT NULL", No tracking issue yet. Feel free to submit a feature request at https://github.com/singularity-data/risingwave/issues/new?labels=type%2Ffeature&template=feature_request.md.

SQL :

CREATE SOURCE supplier (
    s_suppkey INTEGER NOT NULL,
    s_name VARCHAR NOT NULL,
    s_address VARCHAR NOT NULL,
    s_nationkey INTEGER NOT NULL,
    s_phone VARCHAR NOT NULL,
    s_acctbal NUMERIC NOT NULL,
    s_comment VARCHAR NOT NULL)
    with (
    connector='kafka',
    kafka.topic='supplier',
    kafka.brokers='${KAFKA_FRONTEND_ADDR}',
    kafka.consumer.group='supplier_consumer'
    ) row format JSON

who removed column constraints "NOT NULL" in the most recent commit?

liurenjie1024 commented 2 years ago

cc @xiangjinwu

neverchanje commented 2 years ago

This is not a bug, it is intended. We dont support not null for the simplity implementation-wise. Moreover, we assume the input stream is schemaless, which means we never know if a field is not null. So we made a decision to remove it.

huangjw806 commented 2 years ago

OK, I'll remove it in tpch-bench.

skyzh commented 2 years ago

not null is ignored before, but now it seems to be banned. Is it an expected change?

skyzh commented 2 years ago

Okay, that's expected -> https://github.com/singularity-data/risingwave/pull/4487

xiangjinwu commented 2 years ago

Sorry for the disruption. I will make an announcement in the future for such "fake" breaking changes. Shall we close this issue or maybe move it to tpch-bench repo?

skyzh commented 2 years ago

fixed by https://github.com/singularity-data/tpch-bench/pull/22