Skip to content

changefeedccl: support CREATE DATABASE CHANGEFEED syntax#147663

Merged
craig[bot] merged 1 commit into
cockroachdb:masterfrom
KeithCh:db-level-changefeed-parser
Jul 2, 2025
Merged

changefeedccl: support CREATE DATABASE CHANGEFEED syntax#147663
craig[bot] merged 1 commit into
cockroachdb:masterfrom
KeithCh:db-level-changefeed-parser

Conversation

@KeithCh
Copy link
Copy Markdown
Contributor

@KeithCh KeithCh commented Jun 2, 2025

Add basic syntax support for database-level
changefeeds.
CREATE DATABASE CHANGEFEED for foo
This PR only allows the aforementioned statement
to be parsed; no changefeed is created.

Epic: CRDB-1421
Resolves: #147369

Release note: None

@blathers-crl
Copy link
Copy Markdown

blathers-crl Bot commented Jun 2, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

It looks like your PR touches SQL parser code but doesn't add or edit parser tests. Please make sure you add or edit parser tests if you edit the parser.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch 4 times, most recently from 4c2fe54 to 70fdd23 Compare June 3, 2025 18:36
@blathers-crl
Copy link
Copy Markdown

blathers-crl Bot commented Jun 3, 2025

It looks like your PR touches SQL parser code but doesn't add or edit parser tests. Please make sure you add or edit parser tests if you edit the parser.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch 5 times, most recently from 33e9efd to cd1f7a0 Compare June 3, 2025 21:55
@blathers-crl
Copy link
Copy Markdown

blathers-crl Bot commented Jun 3, 2025

Your pull request contains more than 1000 changes. It is strongly encouraged to split big PRs into smaller chunks.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch 7 times, most recently from 522faa9 to 46950b5 Compare June 4, 2025 19:07
Comment thread pkg/sql/parser/sql.y Outdated
@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch from 46950b5 to f048762 Compare June 4, 2025 20:05
@KeithCh KeithCh marked this pull request as ready for review June 4, 2025 20:05
@KeithCh KeithCh requested review from a team as code owners June 4, 2025 20:05
@KeithCh KeithCh requested review from a team, andyyang890 and asg0451 and removed request for a team June 4, 2025 20:05
@KeithCh KeithCh changed the title changefeedccl: Support CREATE DATABASE CHANGEFEED syntax changefeedccl: support CREATE DATABASE CHANGEFEED syntax Jun 5, 2025
@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch 2 times, most recently from 3b75ceb to 350ed98 Compare June 11, 2025 16:42
Comment thread pkg/ccl/changefeedccl/changefeedbase/target.go
@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch 2 times, most recently from 69f4ea0 to f0bb57f Compare June 23, 2025 17:14
@KeithCh KeithCh requested a review from asg0451 June 23, 2025 17:41
@asg0451 asg0451 requested a review from mgartner June 24, 2025 16:50
Comment thread pkg/sql/parser/sql.y Outdated
Comment thread pkg/sql/sem/tree/changefeed.go Outdated
Comment thread pkg/sql/sem/tree/changefeed.go
Comment thread pkg/sql/sem/tree/changefeed.go Outdated
Comment thread pkg/sql/sem/tree/changefeed.go Outdated
Comment thread pkg/sql/sem/tree/changefeed.go Outdated
Comment thread pkg/cmd/docgen/diagrams.go
@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch 8 times, most recently from 3d40746 to de58985 Compare July 1, 2025 16:07
@KeithCh KeithCh requested a review from asg0451 July 1, 2025 16:11
@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch 2 times, most recently from 3ad34aa to 2d99947 Compare July 1, 2025 16:56
Comment thread pkg/sql/parser/sql.y Outdated
Comment thread pkg/cmd/docgen/diagrams.go Outdated
Comment thread pkg/ccl/changefeedccl/alter_changefeed_stmt.go Outdated
@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch from 2d99947 to 6bb5a2b Compare July 1, 2025 19:15
Add basic syntax support for database-level
changefeeds.
CREATE DATABASE CHANGEFEED for foo
This PR only allows the aforementioned statement
to be parsed; no changefeed is created.

Epic: CRDB-1421
Resolves: cockroachdb#147369

Release note: None
@KeithCh KeithCh force-pushed the db-level-changefeed-parser branch from 6bb5a2b to 8c91603 Compare July 1, 2025 21:14
@KeithCh
Copy link
Copy Markdown
Contributor Author

KeithCh commented Jul 2, 2025

bors r=asg0451

tftr!

@craig
Copy link
Copy Markdown
Contributor

craig Bot commented Jul 2, 2025

@craig craig Bot merged commit 36b970c into cockroachdb:master Jul 2, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DB-Level Changefeed: Support syntax for DB-level changefeeds with no filters

6 participants