Skip to content

Cubrid histogram - #25

Closed
soheejung-cs wants to merge 136 commits into
developfrom
CUBRID-HISTOGRAM
Closed

Cubrid histogram#25
soheejung-cs wants to merge 136 commits into
developfrom
CUBRID-HISTOGRAM

Conversation

@soheejung-cs

@soheejung-cs soheejung-cs commented Feb 11, 2026

Copy link
Copy Markdown
Owner

http://jira.cubrid.org/browse/CBRD-XXXX

Purpose

N/A

Implementation

N/A

Remarks

N/A


Note

High Risk
High risk because it introduces new system catalog objects and new DDL (ANALYZE ... UPDATE/DROP HISTOGRAM) while also changing query selectivity estimation in the optimizer based on stored histograms.

Overview
Adds persistent column histograms backed by a new system catalog table/view (_db_histogram/db_histogram) plus a new src/histogram module to build, store, read, and dump histogram blobs (including null-frequency).

Extends the SQL layer to support ANALYZE TABLE ... UPDATE HISTOGRAM ... WITH <n> BUCKETS [WITH FULLSCAN] and ANALYZE TABLE ... DROP HISTOGRAM ..., wires execution into execute_schema.c, and updates DDL logging/statement types/CSQL output.

Integrates histogram data into planning by caching histograms on SM_CLASS and using them in query_planner.c to compute =/</<=/>/>= and BETWEEN selectivities (falling back to defaults when unavailable), along with related object/template and unique-key lookup refactors needed for catalog access.

Written by Cursor Bugbot for commit 229e6c9. Configure here.

SOHEE_JUNG and others added 30 commits August 13, 2025 16:51
:빌드 되게 만들고 나머지 TODO 및 ASSERT 처리
- 중간부 구현: SERVER_SIDE로 가기 직전의 빌드 가능하고, 실행 가능한 상태로 중간 구현
- histogram 관련 오류 수정 (db_class fetch 방법 관련)
…/cubrid into CBRD-26217-histogram

# 제목: 변경 요약 (50자 이내)  (refactor, hotfix, feature)

# 본문: 변경 사항에 대한 자세한 설명
# - 주요 변경 사항 1
# - 주요 변경 사항 2

# 참고: 이 라인 아래의 내용은 커밋 메시지에서 제거됩니다.
class 전체의 meta 정보가 histogram에 포함되지 않도록 변경
SOHEE_JUNG added 21 commits January 21, 2026 17:58
# 제목: 변경 요약 (50자 이내)  (refactor, hotfix, feature)

# 본문: 변경 사항에 대한 자세한 설명
# - 주요 변경 사항 1
# - 주요 변경 사항 2

# 참고: 이 라인 아래의 내용은 커밋 메시지에서 제거됩니다.
# 제목: 변경 요약 (50자 이내)  (refactor, hotfix, feature)

# 본문: 변경 사항에 대한 자세한 설명
# - 주요 변경 사항 1
# - 주요 변경 사항 2

# 참고: 이 라인 아래의 내용은 커밋 메시지에서 제거됩니다.
@soheejung-cs

Copy link
Copy Markdown
Owner Author

@codex 리뷰 해봐

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 9 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread src/histogram/histogram_reader.hpp
Comment thread src/histogram/histogram_cl.cpp
Comment thread src/histogram/histogram_cl.cpp
Comment thread src/object/schema_system_catalog_install.cpp
Comment thread src/optimizer/query_graph.c
Comment thread src/optimizer/query_graph.c
Comment thread src/histogram/histogram_cl.cpp
Comment thread src/histogram/histogram_cl.cpp
Comment thread src/histogram/histogram_cl.cpp

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 229e6c9569

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/histogram/histogram_builder.cpp
Comment thread src/histogram/histogram_reader.hpp
Comment thread src/query/execute_schema.c
Comment thread src/object/schema_system_catalog_install.cpp Outdated
Comment thread src/query/execute_schema.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant