Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug] [sqlancer] PAX: IS NULL query returns fewer rows after DELETE

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

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

Start by running the attached repro_pax_sparse_filter_isnull_after_delete.sql against a database and comparing its output with the attached .log. Then confirm the bug by toggling the pax.enable_sparse_filter setting off and on, since the report says disabling it gives the correct result. The PAX sparse-filter read path and DELETE visibility handling are the likely areas, but the payload does not name the source files. Done means a WHERE c0 IS NULL query after the DELETE returns the same rows with the sparse filter on as with it off.

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

描述

type: Bug
Apache Cloudberry version

Version

PostgreSQL 14.4 (Apache Cloudberry 2.8.0 build 153099) (HashData Lightning 2.8.0 build 153099) on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7.7.0.2), 64-bit compiled on Sep 23 2026 22:47:39
What happened

Description

After a DELETE on a pax table, WHERE c0 IS NULL returns fewer rows than expected (2 NULL rows remain, the query returns 0). With SET pax.enable_sparse_filter = off the result is correct. See repro_pax_sparse_filter_isnull_after_delete.sql / repro_pax_sparse_filter_isnull_after_delete.log.
What you think should happen instead

No response

How to reproduce

repro_pax_sparse_filter_isnull_after_delete.log
repro_pax_sparse_filter_isnull_after_delete.sql

Steps to Reproduce

psql -e -d <db> -f repro_pax_sparse_filter_isnull_after_delete.sql
Operating System

rocky9

Anything else

No response

Are you willing to submit PR?
  • Yes, I am willing to submit a PR!
Code of Conduct
主要语言
C
星标
1.4k
派生
260
平均合并
4 天 52 分钟
30 天内合并 PR
51

环境准备

从这里开始

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

apache/cloudberry 的其他 Issue

查看 apache/cloudberry 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

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