queryverse / queryverse/QuerySQLite.jl
@mapmany missing?
未关闭
还没有人认领这个 Issue。
- 主要语言
- Julia
- 星标
- 4
- 派生
- 2
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 1
描述
Using master, it looks like the @mapmany command is missing. For the groupby and then split approach mapmany is critical, is it just not implemented? I didn't see it mentioned in the codebase.
julia> db = SQLite.DB("data.sqlite3");
julia> getproperty(db, tbl[1]) |>
@groupby(_.cell_id) |>
# filter stuff
@map({cell_id=key(_), rows=_}) |>
@mapmany(i->i.rows, (i, j)->{j...}) |>
DataFrame;
MethodError: no method matching mapmany(::QuerySQLite.SourceCode{SQLite.DB}, ::var"#113#123", ::Expr, ::var"#114#124", ::Expr)
Closest candidates are:
mapmany(!Matched::QueryOperators.Enumerable, ::Function, ::Expr, ::Function, ::Expr) at /home/tlnagy/.julia/packages/QueryOperators/g4G21/src/enumerable/enumerable_mapmany.jl:42
Stacktrace:
[1] (::var"#112#122")(::QuerySQLite.SourceCode{SQLite.DB}) at /home/tlnagy/.julia/packages/Query/AwBtd/src/standalone_query_macros.jl:205
[2] |>(::QuerySQLite.SourceCode{SQLite.DB}, ::var"#112#122") at ./operators.jl:823
[3] top-level scope at In[30]:1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 QuerySQLite 和 SQLite 重现 issue 中的管道,然后将缺失的 mapmany 调用与 QueryOperators 的 enumerable_mapmany.jl 实现进行比较。阅读 standalone_query_macros.jl 中生成的调用,并确定 SQLite 源码在哪个位置未能支持该调用。当 groupby、split 和 mapmany 示例成功运行时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- julia, sqlite
- 领域
- backend, databases
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100