Skip to content

[fix](nereids) make DUMP a non-reserved keyword#65254

Open
Baymine wants to merge 1 commit into
apache:masterfrom
Baymine:fix/dump-non-reserved
Open

[fix](nereids) make DUMP a non-reserved keyword#65254
Baymine wants to merge 1 commit into
apache:masterfrom
Baymine:fix/dump-non-reserved

Conversation

@Baymine

@Baymine Baymine commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #65252

Problem Summary:

DUMP is a lexer keyword (used by PLAN REPLAYER DUMP) but was missing from the nonReserved list in DorisParser.g4, so dump could not be used as a regular identifier (column, alias, table alias, CTE name, function argument, qualified reference). This restores backward compatibility with older versions (e.g. 2.1) where dump was usable as an identifier. Adding DUMP to nonReserved keeps it usable both as the PLAN REPLAYER DUMP keyword and as an identifier.

Release note

None

Check List (For Author)

  • Test
    • Unit Test — added NereidsParserTest#testParseDumpAsIdentifier covering dump as column alias, column ref, table alias, WHERE clause, qualified ref, function arg, CTE name, subquery alias, and confirming PLAN REPLAYER DUMP still parses.
  • Behavior changed:
    • No.
  • Does this need documentation?
    • No.

### What problem does this PR solve?

Issue Number: close apache#65252

Problem Summary:

DUMP is a lexer keyword (used by PLAN REPLAYER DUMP) but was missing from
the nonReserved list in DorisParser.g4, so `dump` could not be used as a
regular identifier (column, alias, table alias, CTE name, function
argument, qualified reference). This restores backward compatibility with
older versions (e.g. 2.1) where `dump` was usable as an identifier. Adding
DUMP to nonReserved keeps it usable both as the PLAN REPLAYER DUMP keyword
and as an identifier.

### Release note

None

### Check List (For Author)

- Test
    - [x] Unit Test: added NereidsParserTest#testParseDumpAsIdentifier
- Behavior changed:
    - [x] No.
- Does this need documentation?
    - [x] No.
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@Baymine

Baymine commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 0.00% (0/26) 🎉
Increment coverage report
Complete coverage report

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.

[Bug] DUMP keyword cannot be used as an identifier

2 participants