A data-mapped scalar aesthetic on boxplot / violin is dropped by the stat, then fails validation
維護者通常 6 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 50/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- rust
研究方向
先從 boxplot 和 violin stat 開始,然後追蹤純量 aesthetic 和分組 aesthetic 如何傳入 stat 後驗證。重現 penguins 查詢,並將其與 sex AS fill 控制進行比較。當純量 aesthetic 在 stat 後不再失敗,或錯誤明確說明支援的限制且不暴露內部欄位時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Summary
The boxplot / violin stat drops non-grouping aesthetic columns from its output, so a mapped scalar aesthetic fails validation after the stat has run, with an error that names an internal column list. Grouping aesthetics (fill, stroke) survive because they partition the summary; scalar ones (linewidth, size, linetype, opacity) do not.
Reproduction
VISUALISE species AS x, body_mass AS y, bill_len AS linewidth FROM ggsql:penguins
DRAW boxplot
Failed to generate Vega-Lite output: Validation error: Column 'linewidth' referenced in
aesthetic 'linewidth' (layer 1 (global data)) does not exist.
Available columns: __ggsql_aes_pos1__, __ggsql_aes_type__, __ggsql_aes_pos2__, and __ggsql_aes_pos2end__
Control — the same query with sex AS fill renders fine.
Expected
Either carry a scalar aesthetic through the stat (it is constant within a group whenever it is part of the grouping, and otherwise needs a documented aggregate), or fail with an error that names the actual constraint ("aesthetic linewidth cannot be mapped on a boxplot layer") rather than leaking __ggsql_aes_* columns to the user.
- 主要語言
- Rust
- 星號
- 573
- 分支
- 32
- 平均合併
- 8 天 23 小時
- 30 天內合併 PR
- 5
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
posit-dev/ggsql 的其他 Issue
-
Missing `linewidth` and `linetype` aesthetics on histogram and bar layers可能已有人在做 @teunbrand 於 30 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 61/100
維護者通常 6 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 6 天內回覆
-
writer
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 6 天內回覆
-
plot building
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 6 天內回覆
-
Mention DuckDB extension可能已有人在做 @Anant-mishra1729 於 152 天前認領。 未關閉documentation integration
難度 1/5 1-3 小時 新手友好度 76/100
維護者通常 6 天內回覆
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 66/100
storytold/craft-anything#2472 ·
維護者通常 1 天內回覆
-
enhancement good first issue help wanted
難度 2/5 1-3 小時 新手友好度 78/100
getsotto/sotto-authenticator#68 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 72/100
slavakurilyak/awesome-ai-agents#1046 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
nowledge-co/hawdb#1995 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
swc-project/swc-next-issues#984 ·