4paradigm / 4paradigm/OpenMLDB

create table add default null

Offen
#3,853 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @vagetablechicken Auf GitHub ansehen
bug
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

```
> create table t1(c1 string default null);
Error: [2000] default value type mismatch
```

`default null` is needless, but it should pass, and the error is not good.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Look for SQL parser and type checking code related to CREATE TABLE and DEFAULT clause validation. The error 'default value type mismatch' suggests a type validation issue when NULL is specified. Find where default values are validated and ensure NULL is accepted for any column type. Test by creating a table with a string column default null.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
sql
Bereich
databases
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.