Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-25765] System Catalog refactoring for consistency #5739

Draft
wants to merge 25 commits into
base: develop
Choose a base branch
from

Conversation

kangmin5505
Copy link
Contributor

@kangmin5505 kangmin5505 commented Dec 26, 2024

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

설명
사용자의 인터페이스 변경 없이, 반복되는 코드 및 코드의 일관성 리팩토링

주요 수정 사항

  • 중복된 Authorization Class Name 메크로 제거[721ac8d]
  • "varchar()"와 format_varchar() 사용을 format_varchar()로 통일[34e209a]
  • catalog class와 catalog virtual class 관련 함수명 일관성 유지[0817647][673ec6f]
  • trigger_manager.c에 있던 db_trigger를 schema_system_catalog_install.cpp로 이동 및 매크로 리팩토링[26f21d8]
  • dual initializer 익명 함수를 일반 함수로 추출[01e4b51]

1. Renamed attribute macros from TR_ATT_* to CT_TRIGGER_ATTR_* for
better clarity and consistency.
2. Added get_trigger function to the db_trigger system catalog in
schema_system_catalog_install.cpp
3. Fixed bugs: Ensured class_attribute default values, including
condition_time and action_time, are properly initialized.
- from "catcls_add_collations" to "catcls_add_collation"
- from "catcls_add_charsets" to "catcls_add_charset"
@kangmin5505 kangmin5505 marked this pull request as ready for review December 30, 2024 09:43
@kangmin5505 kangmin5505 requested review from hgryoo, kisoo-han, beyondykk9, jongmin-won, hyunikn and ctshim and removed request for hornetmj and beyondykk9 December 30, 2024 09:43
@ctshim ctshim added this to the guava milestone Dec 30, 2024
@kangmin5505 kangmin5505 self-assigned this Jan 8, 2025
1. Removed unnecessary extern keywords from schema_system_catalog.hpp.
2. Relocated system_catalog_query_spec declarations from
schema_system_catalog_install.hpp to a new header file,
schema_system_catalog_install_query_spec.hpp, to improve modularity and
organization.
Replaced incorrect `CT_QUERYSPEC_NAME` with `CT_INDEX_NAME` and `CT_INDEXKEY_NAME`.
@kangmin5505
Copy link
Contributor Author

fig-cake 릴리즈 후 다시 정리하여 reopen 하겠습니다.

- Every system classes are marked already at authenticate_context::install() and system_catalog_builder::create_and_mark_system_class().
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.

2 participants