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

Segmentation Failure on new client

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

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

The crash is reported at COptTasks.cpp line 267, where GPORCA hands off to the Postgres planner after hitting a whole-row variable. Start by reproducing the failing CREATE TEMP TABLE ... WITH o AS / n AS full outer join query from the issue on a local Cloudberry build, then read the fallback path around that line. Done means the query returns results without a segmentation fault, with a regression test added to the optimizer test suite.

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

描述

Hi,

We have faced segmentation fault due to which the mirrors became active:

version: 2.0.0-incubating build 1

query :

NOTICE,""Falling back to Postgres-based planner because GPORCA does not support the following feature: Whole-row variable"",
",,,,,,"^M
CREATE TEMP TABLE validation_pairs AS^M
WITH o AS (^M
SELECT r., row_number() OVER (PARTITION BY queue, coalesce(custom_metric,''), acacalldate::date ORDER BY r.ctid) AS occurrence^M
FROM cds_dev.reporting r, validation_settings s^M
WHERE r.acacalldate::date BETWEEN s.start_date AND s.end_date^M
), n AS (^M
SELECT r.
, row_number() OVER (PARTITION BY queue, coalesce(custom_metric,''), acacalldate::date ORDER BY r.ctid) AS occurrence^M
FROM applied_ai_afiniti.reporting_daily r, validation_settings s^M
WHERE r.acacalldate::date BETWEEN s.start_date AND s.end_date^M
)^M
SELECT coalesce(o.queue,n.queue) AS queue,^M
coalesce(nullif(o.custom_metric,''),nullif(n.custom_metric,''),'') AS custom_metric,^M
coalesce(o.acacalldate::date,n.acacalldate::date) AS acacalldate,^M
coalesce(o.occurrence,n.occurrence) AS occurrence,^M
CASE WHEN o.queue IS NULL THEN 'NEW ONLY'^M
WHEN n.queue IS NULL THEN 'OLD ONLY' ELSE 'MATCHED' END AS row_status,^M
to_jsonb(o) AS old_data, to_jsonb(n) AS new_data^M
FROM o FULL OUTER JOIN n^M
ON o.queue=n.queue^M
AND coalesce(o.custom_metric,'')=coalesce(n.custom_metric,'')^M
AND o.acacalldate::date=n.acacalldate::date^M
AND o.occurrence=n.occurrence",0,,"COptTasks.cpp",267,

Need your support in this regard.

主要语言
C
星标
1.4k
派生
260
平均合并
4 天 5 小时
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 摘要。