[coverage] Conformance findings: STATEMENT-023

未关闭
#885 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
python, sql
领域
databases

调研方向

首先定位 cursor.rowcount 的实现以及 issue 中描述的 STATEMENT-023 一致性测试;将预期行为与参考驱动程序的 PR 进行比较。当 DDL 和 SELECT 语句报告的 rowcount 为 0 而不是 -1,且相应的 expected-failure 测试通过时,工作即完成。

由索引模型根据 Issue 内容生成。

描述

Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-python.

Each is committed as an expected-failure (xfail) test in the coverage PR — the test asserts the CORRECT behavior and stays red until this driver is fixed.

  • STATEMENT-023: cursor.rowcount returns the -1 unknown/NA sentinel for DDL (CREATE TABLE) and SELECT instead of normalizing to 0; it is initialised to -1 and only overwritten when the server reports numModifiedRows, which is None for those statements

Reference driver PR: https://github.com/databricks/databricks-sql-go/pull/416
Coverage PR (reproducing xfail tests): https://github.com/databricks/databricks-driver-test/pull/1010

主要语言
Python
星标
233
派生
152
平均合并
21 小时 5 分钟
30 天内合并 PR
10

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

databricks/databricks-sql-python 的其他 Issue

查看 databricks/databricks-sql-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。