Skip to content

Conversation

@Wweiei
Copy link
Contributor

@Wweiei Wweiei commented Sep 7, 2025

feat:refactor selector reserved keyword fields. #6137
Change the "type" field in the "selector" table to "selector_type".
Change the "name" field in the "selector" table to "selector_name".
Change the "sort" field in the "selector" table to "sort_code".

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

@Aias00 Aias00 added this to the 2.7.0.3 milestone Sep 9, 2025
@Aias00 Aias00 requested a review from Copilot September 9, 2025 08:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the "selector" table schema to avoid using reserved keywords as column names. The changes rename three problematic fields: "type" → "selector_type", "name" → "selector_name", and "sort" → "sort_code". This improves database compatibility and prevents potential conflicts with SQL reserved keywords.

  • Updates database schema across all supported database systems (MySQL, PostgreSQL, Oracle, OceanBase, openGauss)
  • Refactors Java entity classes and mappers to use the new field names
  • Updates all test cases and service implementations to use the renamed fields

Reviewed Changes

Copilot reviewed 32 out of 32 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
SelectorDO.java Updates entity class field names and getter/setter methods
selector-sqlmap.xml Updates MyBatis mapping configuration for new column names
schema.sql (various DBs) Database schema updates for table column renaming
upgrade scripts Database migration scripts for existing deployments
Service implementations Updates to use new field accessors throughout the codebase
Test files Updates test cases to use new field names

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Aias00 Aias00 merged commit f6a09ec into apache:master Sep 10, 2025
54 of 55 checks passed
@Wweiei Wweiei deleted the feat/refactor-reserved-keyword-fields-selector branch September 17, 2025 03:06
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