Skip to content

fix(constant): correct typos in state key constants#543

Open
WinSalty wants to merge 1 commit into
spring-ai-alibaba:mainfrom
WinSalty:fix/constant-typos
Open

fix(constant): correct typos in state key constants#543
WinSalty wants to merge 1 commit into
spring-ai-alibaba:mainfrom
WinSalty:fix/constant-typos

Conversation

@WinSalty

Copy link
Copy Markdown

Summary

  • Rename GENEGRATED_SEMANTIC_MODEL_PROMPTGENERATED_SEMANTIC_MODEL_PROMPT (typo: GENEGRATED)
  • Rename COLUMN_DOCUMENTS__FOR_SCHEMA_OUTPUTCOLUMN_DOCUMENTS_FOR_SCHEMA_OUTPUT (double underscore __ → single _)
  • Both Java identifiers and their string values are updated across 8 files (24 references total)

These constants are only used as in-memory OverAllState keys in the StateGraph workflow — no database persistence, API serialization, or frontend mapping is affected.

Closes #542

Changed files

File Changes
Constant.java Definition: rename both constants and their string values
DataAgentConfiguration.java State key registration
TableRelationNode.java Import + usage (both constants)
SchemaRecallNode.java Import + usage (COLUMN_DOCUMENTS_FOR_SCHEMA_OUTPUT)
PlannerNode.java Usage (GENERATED_SEMANTIC_MODEL_PROMPT)
SchemaRecallNodeTest.java Test state registration
TableRelationNodeTest.java Test state registration + assertions
PlannerNodeTest.java Test state registration + assertions

Test plan

  • SchemaRecallNodeTest — 6 tests passed
  • TableRelationNodeTest — 7 tests passed
  • PlannerNodeTest — 9 tests passed
  • spring-javaformat:apply — no formatting changes needed
  • checkstyle:check — 0 violations
  • Global grep confirms zero remaining references to old names

Rename GENEGRATED_SEMANTIC_MODEL_PROMPT to GENERATED_SEMANTIC_MODEL_PROMPT
and COLUMN_DOCUMENTS__FOR_SCHEMA_OUTPUT to COLUMN_DOCUMENTS_FOR_SCHEMA_OUTPUT.

Both identifiers and their string values are updated across 8 files (24 references).
These constants are only used as in-memory StateGraph keys — no persistence or API impact.

Closes spring-ai-alibaba#542

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zxuexingzhijie zxuexingzhijie requested a review from Copilot July 5, 2026 14:33

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@WinSalty

Copy link
Copy Markdown
Author

@zxuexingzhijie 您好,之前的Copilot额度超了,review未正常进行,麻烦重新发起。

@zxuexingzhijie zxuexingzhijie requested a review from Copilot July 12, 2026 16:51

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zxuexingzhijie

Copy link
Copy Markdown
Collaborator

奇了怪了 我自己看一下

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.

fix: 常量名拼写错误 GENEGRATED_SEMANTIC_MODEL_PROMPT 和 COLUMN_DOCUMENTS__FOR_SCHEMA_OUTPUT

3 participants