4paradigm / 4paradigm/OpenMLDB

insert statement: codegen insert rows

Offen
#3,731 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @aceforeverd Auf GitHub ansehen
enhancement execute-engine storage-engine
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

we only support insert stmt with base type expressions, so
```sql
# 1.
insert into t1 values (1, 2);

# 2
insert to t1 values (1, map(1,"12"), inc(3), [3, 4, 5]);
```

`1` works with legacy solution, but not `2`. Codegen rows support both.

Big work since the complexity for insert statements, as well as the SDK in java and python.

- [ ] native codegen insert rows: consider table default value and parameters
- [ ] Java & Python SDK
- [ ] offline batch

#3723 initiate codegen rows for values that contains map data type only, more work required

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The issue references #3723 which initiated codegen for map data types. Start by examining the existing codegen infrastructure for INSERT statements, likely in the SQL compiler or execution engine. Review the Java and Python SDKs to understand how they currently handle INSERT. The goal is to extend support to complex expressions like map(), inc(), and arrays in row values, ensuring default values and parameters are considered.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, python, sql
Bereich
backend-api-design, database, machine-learning
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

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