Skip to content

chore: port in cockroachdb postgresql parser - #1228

Merged
jranson merged 2 commits into
trickstercache:mainfrom
jranson:jr/cockroach-port
Nov 12, 2026
Merged

jranson merged 2 commits into
trickstercache:mainfrom
jranson:jr/cockroach-port

Conversation

@jranson

@jranson jranson commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Description

The git repo for the cockroachdb-parser module (which Trickster uses for parsing SQL queries to accelerate PostgreSQL/TimeScaleDB, GreptimeDB, QuestDB, Druid and Influx 3.x SQL) has been archived by CockroachDB. This change extracts the parts we use from the archived module and adds them to the Trickster codebase under pkg/parsing/pgparser. I used tagged version v0.23.2, which is the last version that was exclusively on Apache 2.0 license, and the parts we use have not been updated meaningfully in the intervening 3 years since that tag.

Aside from the 1:1 port, the only changes in the code are to change imports/package names where required, modernize (go fix && make lint) and update documentation. No new functionality.

Added bonus: By extracting only the parser bits we use, about 30 indirect dependencies are gone from Trickster, and ~12MB are shaved off of the built binary size.

Type of Change

    • Bug fix
    • New feature
    • Optimization
    • Test coverage
    • Documentation
    • Infrastructure
    • Chore/Refactor

AI Disclosure

    • This contribution DOES NOT include AI-generated changes
    • This contribution DOES include AI-generated changes, and I have reviewed the relevant contributing guidelines.

Signed-off-by: James Ranson <james@ranson.org>
@jranson
jranson requested a review from a team as a code owner November 12, 2026 15:37
@jranson jranson changed the title chore: port cockroachdb pg parser into codebase chore: port in cockroachdb postgresql parser Nov 12, 2026
Signed-off-by: James Ranson <james@ranson.org>
@jranson
jranson merged commit be36fa5 into trickstercache:main Nov 12, 2026
9 checks passed
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