-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: implement a test generator similar to sqllite's sqllogictest for TestLogic #7734
Comments
Alternatively, implement a query analyzer that filters out those sqllogictests for which we have different rules than pg/sqllite. That might be slightly more tractable. Namely:
|
#7970 has made a great step forward already. This comprehensively covers expression computations and a few data queries. Leaving this issue open for follow-up work. |
The work around #7970 only checks for panics. What we are missing is some way of generating the correct (expected) results. This is not an easy problem. One idea would be to run the same queries against PG; we would need to either restrict the grammar to what is supported by both CRDB and PG, or somehow convert arbitrary CRDB queries into PG queries. |
This has been achieved with sqlsmith somehow, hasn't it? |
Yes I think we can close this now. |
See #7733: there are too many divergences between cockroachdb and sqllite to keep using sqllogictests as-is.
We need a test generator that exercises mixes of:
The text was updated successfully, but these errors were encountered: