Skip to content

fix(plsql): support ROW STORE COMPRESS and COLUMN STORE COMPRESS in table_compression#58

Merged
vsai12 merged 1 commit intomainfrom
fix/oracle-row-store-compress
Feb 27, 2026
Merged

fix(plsql): support ROW STORE COMPRESS and COLUMN STORE COMPRESS in table_compression#58
vsai12 merged 1 commit intomainfrom
fix/oracle-row-store-compress

Conversation

@vsai12
Copy link
Contributor

@vsai12 vsai12 commented Feb 27, 2026

Summary

  • Add ROW STORE COMPRESS [BASIC | ADVANCED] and COLUMN STORE COMPRESS [FOR {QUERY | ARCHIVE} [LOW | HIGH]] [[NO] ROW LEVEL LOCKING] as alternatives in the table_compression grammar rule
  • Fixes Oracle SQL parser rejecting valid CREATE TABLE DDL using ROW STORE COMPRESS ADVANCED (Oracle 12c+ syntax)

Root Cause

The table_compression rule in PlSqlParser.g4 only supported COMPRESS [BASIC | FOR ...] and NOCOMPRESS. The ROW STORE and COLUMN STORE prefix variants were only defined inside ilm_compression_policy (which requires ROW AFTER ... OF NO MODIFICATION), not as standalone table properties.

Test plan

  • make build — parser regenerated successfully
  • make test — all 100+ parser example tests pass
  • Bytebase TestPLSQLSplitSQL — verified with local replace directive against customer's exact DDL

🤖 Generated with Claude Code

…able_compression

The Oracle ANTLR grammar's table_compression rule was missing support for
Oracle 12c+ ROW STORE and COLUMN STORE compression syntax, causing
"Syntax error ... ROW STORE" when parsing valid CREATE TABLE DDL.

Add ROW STORE COMPRESS [BASIC | ADVANCED] and
COLUMN STORE COMPRESS [FOR {QUERY | ARCHIVE} [LOW | HIGH]] [[NO] ROW LEVEL LOCKING]
as alternatives in the table_compression rule.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vsai12 vsai12 requested a review from h3n4l February 27, 2026 02:52
Copy link
Member

@h3n4l h3n4l left a comment

Choose a reason for hiding this comment

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

LGTM

@vsai12 vsai12 merged commit 840d74d into main Feb 27, 2026
5 checks passed
@vsai12 vsai12 deleted the fix/oracle-row-store-compress branch February 27, 2026 08:51
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