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 ·