validation: two tests fail on sqlglot 30.19.0, the declared minimum
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 validation/validate.py 中 sqlglot 的版本声明,以及 #647 在 validation/tests/ 下新增的两个测试开始。使用 sqlglot 30.19.0 重现失败,然后使用建议的最低版本 30.29.0 检查测试套件。声明的最低版本涵盖这两个测试,并且验证测试套件在该版本下通过,即为完成。
由索引模型根据 Issue 内容生成。
描述
validation/validate.py declares sqlglot>=30.19.0. On that version two of the tests added in #647 fail on main (74a26be):
uv run --no-project --with pytest --with pyyaml --with jsonschema --with "sqlglot==30.19.0" -m pytest validation/tests/
FAILED test_rejects_a_dialect_sql_statement_used_as_an_expression[snowflake-list]
FAILED test_accepts_keyword_column_expressions_in_dialect[desc-dot-bigquery]
2 failed, 748 passed, 1 skipped
snowflake-listexpectsLIST @stageto be rejected as a LIST STAGE statement. sqlglot up to 30.21.0 parses it as an aliased expression, so the validator returns no error. From 30.22.0 it parses asListStageand the test passes.desc-dot-bigqueryexpectsdesc.xto be accepted in BigQuery. Up to 30.27.0 the validator returns "Invalid expression / Unexpected token. Line 1, Col: 11." From 30.29.0 it accepts it.
I ran the suite on 30.19.0, 30.20.0, 30.21.0, 30.22.0, 30.25.0, 30.26.0, 30.27.0, 30.29.0, 30.30.0 and 30.33.0 (there is no 30.28.0). The first three fail both tests, the next four fail desc-dot-bigquery and the last three give 750 passed, 1 skipped. CI installs the latest sqlglot, so it does not run into this.
I can open a PR that raises the declared minimum to sqlglot>=30.29.0.
- 主要语言
- Python
- 星标
- 2.7k
- 派生
- 353
- 平均合并
- 3 天 19 小时
- 30 天内合并 PR
- 86
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/ossie 的其他 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 52/100
维护者通常 1 天内回复
-
validation: field reference resolution is case-insensitive but name uniqueness is case-sensitive可能已有人在做 @MikeNitsenko 于 6 天前认领。 未关闭needs-triage
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
-
needs-triage
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
-
needs-triage
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
-
needs-triage
难度 5/5 一周以上 新手友好度 30/100
维护者通常 1 天内回复
相似的 Issue
-
integration: media_player
难度 2/5 1-3 小时 新手友好度 82/100
home-assistant/core#193344 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
daniel-ospina/tortoise#13607 ·
维护者通常 1 天内回复
-
documentation priority: medium
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 66/100
Robin-IA/Congressional-Letters-Dev#1347 ·
维护者通常 1 天内回复