4paradigm / 4paradigm/OpenMLDB

insert statement: codegen insert rows

Đang mở
#3,731 0 bình luận 0 reaction 1 người được giao Được @aceforeverd nhận Xem trên GitHub
enhancement execute-engine storage-engine
Ngôn ngữ chính
C++
Star
1.7k
Fork
331
Merge trung bình
12 ngày 12 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, python, sql
Lĩnh vực
backend-api-design, database, machine-learning
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.