4paradigm / 4paradigm/OpenMLDB
feat: support and validate query table with multiple-levels path
- 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ả
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
There are some problems when users try to query a table named by multiple levels.
For example, given a statement like: `SELECT col1, col2 from db1.t1;`. We are expecting:
- there is a table `t1` under database `db1`
- the current execute-engine is running on database `db1`
Similar rules should be applied on `CREATE INDEX ... `, `CREATE PROCEDURE ... ` and other statements as well
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
Hướng dẫn đóng góp
Hướng nghiên cứu
Issue đề cập đến việc truy vấn các bảng với đường dẫn nhiều cấp như `db1.t1` trong các statement SELECT, CREATE INDEX và CREATE PROCEDURE. Hãy tìm logic SQL parser và validation trong codebase, có khả năng ở một thư mục như src/parser hoặc src/sql. Cần hiểu execution engine hiện đang xử lý database context và table resolution như thế nào. Giải pháp liên quan đến việc mở rộng validation để hỗ trợ và bắt buộc cú pháp đường dẫn nhiều cấp trên các loại statement.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- sql
- Lĩnh vực
- backend, databases
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100