Skip to content

A few fixes, a metric f-ton of tests and CI#43

Merged
levkk merged 5 commits into
mainfrom
levkk-moar-tests
Jul 17, 2026
Merged

A few fixes, a metric f-ton of tests and CI#43
levkk merged 5 commits into
mainfrom
levkk-moar-tests

Conversation

@levkk

@levkk levkk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor
  • Fix handling of CREATE TABLE ... PARTITION BY LIST
  • Fix a couple super obscure DDL commands
  • Add CI

@levkk
levkk requested a review from sgrif July 17, 2026 00:04
@levkk

levkk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

@sgrif don't review the tests, it's AI, just the changes to build.rs - those are actually tested though, so all good

@sgrif

sgrif commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Sorry, I only accept imperial fuck-tons

@sgrif sgrif closed this Jul 17, 2026
@sgrif sgrif reopened this Jul 17, 2026
Comment thread tests/common/mod.rs
}
}

pub fn run_parse_walk_case(query: &str) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Walking is unnecessary, just debug printing the root is enough.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I thought you were worried about that one or something because it did something different. We can parse all DDL but we can't walk it for example, so I was just making sure it can walk DML

@sgrif

sgrif commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Honestly, seeing this is making me feel that we should bring in the build changes but not the 358388627287 tests. Especially the giant comments documenting the PG grammar which will get out of date feel very off to me. I'm happy this exercised all the obscure ddl statements and found things but I'm not particularly concerned about regressions there. Does that make sense?

@levkk

levkk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Yup

@levkk

levkk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Actually nope. Because of comments. They can change them and we won't know, we need to exercise the parser on as much grammar as we can. Its not type checked until we parse basically

@sgrif

sgrif commented Jul 17, 2026 via email

Copy link
Copy Markdown
Collaborator

@levkk

levkk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Yeah food for thought. I dunno, I feel like keeping the tests is free, removing them is not. If they never fail, cool, but if they do, we might catch something. What's the downside? Pg syntax only adds right, so they will never create noise unless it's real

@sgrif

sgrif commented Jul 17, 2026 via email

Copy link
Copy Markdown
Collaborator

@levkk

levkk commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

Mouahaha, green stars up. Now you gotta delete 5k 📈

@levkk
levkk merged commit 36dac90 into main Jul 17, 2026
1 check passed
@levkk
levkk deleted the levkk-moar-tests branch July 17, 2026 04:01
@sgrif

sgrif commented Jul 17, 2026 via email

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.

2 participants