VISUALISE fails on Apache Doris via ODBC: temp table name is double-quoted (`DROP TABLE IF EXISTS "__ggsql_global_..."`)
Maintainer thường phản hồi trong vòng 6 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Read #570 and #569 first to see the planned Doris alias and the merged MySQL/MariaDB dialect and fallback; inspect the ODBC connection dialect detection and temporary-table creation paths. Reproduce with Apache Doris 2.1.7 over MariaDB ODBC using the supplied VISUALISE query. Done when the visualization works through the Doris connection, with identifier quoting or local-cache fallback verified.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
When ggsql is connected to Apache Doris over ODBC (MariaDB ODBC driver), plain SQL queries work, but any query with a VISUALISE clause fails. ggsql creates its intermediate global table with ANSI double-quoted identifiers, and Doris (MySQL dialect) reads "..." as a string literal instead of an identifier.
Environment
| ggsql | 0.5.2 (Positron extension ggsql.ggsql-0.5.2-darwin-arm64, bundled ggsql-jupyter kernel) |
| IDE | Positron 2026.12.0 |
| OS | macOS (Darwin 27.2.0, arm64) |
| Database | Apache Doris 2.1.7 (@@version_comment = Doris version doris-2.1.7-rc03-443e87e203, @@version = 5.7.99) |
| Driver | MariaDB Connector/ODBC 3.2.10 ([MariaDB ODBC] in odbcinst.ini) |
| Connection | ODBC reader (MariaDB ODBC driver) in the Positron ggsql console |
Reproducible example
- Connect a ggsql console to Doris through the MariaDB ODBC driver.
- A plain query works:
SELECT 1 AS x, 2 AS y
shape: (1, 2)
x y
1 2
- Any visualization fails:
SELECT * FROM (VALUES (1, 2), (2, 4), (3, 3), (4, 6)) AS t(x, y)
VISUALISE x AS x, y AS y
DRAW point
Data source error: ODBC execute failed: [HY000] [ma-3.2.10][5.7.99]errCode = 2, detailMessage = Syntax error in line 1:
DROP TABLE IF EXISTS "__ggsql_global_0d197b9d5376...
^
Encountered: STRING LITERAL
Expected: IDENTIFIER
The same error occurs when the data comes from a real Doris table (e.g. SELECT l_date, COUNT(*) AS n FROM some_table WHERE ... GROUP BY l_date VISUALISE l_date AS x, n AS y DRAW line).
What I tried
SET sql_mode = 'ANSI_QUOTES'in the same console session, then re-running the plot: same error. (Doris does not seem to honourANSI_QUOTESfor this statement, or the setting doesn't apply to the connection ggsql uses for the temp table.)- Workaround that works: aggregate in Doris, export the result to CSV, load it in a separate ggsql session on the default in-memory DuckDB reader, and plot there.
Expected behaviour
Either of these would fix it:
- Detect Doris (and other MySQL-protocol systems behind ODBC, e.g. when the DBMS reports a MySQL-compatible version) as the MySQL/MariaDB dialect and quote identifiers with backticks, or
- If temp-table creation fails, fall back to the local cache instead of erroring.
Related
- #570 lists Apache Doris and StarRocks as planned aliases for the MySQL dialect.
- #569 (merged after 0.5.2) adds a MySQL/MariaDB dialect and a "try temp table, otherwise use a cache" fallback. That may already fix this. If so, a release containing it, plus mapping Doris to that dialect when connecting over ODBC, would resolve this issue.
- #496: caching layer (
duckdb+odbc://...).
Happy to test a development build against Doris 2.1.7 if that helps.
- Ngôn ngữ chính
- Rust
- Star
- 575
- Fork
- 33
- Merge trung bình
- 7 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của posit-dev/ggsql
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 6 ngày
-
writer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 6 ngày
-
plot building
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
posit-dev/ggsql#515 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Mention DuckDB extensionCó thể đã có người làm @Anant-mishra1729 đã nhận 160 ngày trước. Đang mởdocumentation integration
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 6 ngày
-
Reshape validationĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 6 ngày
Tất cả issue của posit-dev/ggsql
Issue tương tự
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Có thể đã có người làm @flyingrobots đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
flyingrobots/edict#457 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
approved
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
fritzprix/libr-agent#3266 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Frame::second_to_frame truncates f32 product, causing periodic off-by-one framesCó thể đã có người làm @ShamanicArts đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
dmtrKovalenko/fframes#296 ·
Maintainer thường phản hồi trong vòng 1 ngày