-
Notifications
You must be signed in to change notification settings - Fork 52
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
should control sortmode
be file-level or global?
#55
Comments
+1 for file-level |
btw, this includes slt's internal config ( It may be confusing if we only let one of them file-level. But the latter one seems tricky if we want to let
|
Actually For variable side-effects, it's more error-prone. |
We can only allow control statements in top-level files 😋 |
I remembered that LaTeX have both \input and \include macros. I think the include is more like \input 🤣 |
And test cases should be as short as possible. I believe current RisingWave’s batch test is a bad example. Include should be used to include things in common, instead of including new test cases. This is where the confusion originates: each test case share a different session level setting. By the way, parallelism is exploited on file level, which means that sqllogictest cannot parallelize RisingWave’s batch test. |
We can have a style suggestion document first 🥸 |
When file-level behavior is expected, I guess a different semantics for |
We may treat the root file with its inclusions as a single session, and make the |
Isn't this already the current behavior? (... for parallel mode |
One more thing. Do you feel set VARIABLE in sqllogictest is a file-level or statement or a statement affecting global state? Now it's implemented as latter, so if someone do:
include a.slt
include b.slt
If a.slt sets a row sort mode, b.slt will also be affected. If you feel this is counter-intuitive, maybe we can change the behavior of sqllogictest.
Originally posted by @skyzh in risingwavelabs/risingwave#3582 (comment)
The text was updated successfully, but these errors were encountered: