-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Refactor regexp slt tests #15709
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
Refactor regexp slt tests #15709
Conversation
319f7ea
to
24b6022
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @kumarlokesh I like it.
However my understanding was sqllogictest runner starts all files in parallel? do we have a guarantee data will be initiated before tests run?
FYI @Omega359 and @goldmedal -- do you have some time to review this PR? |
I'll take a look at this tomorrow |
NULL | ||
|
||
statement ok | ||
drop table if exists t; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
Beyond the addition of null into the test data as mentioned by @goldmedal I think this is a nice and clean refactor - thank you @kumarlokesh |
34168d2
to
e6e7c52
Compare
@Omega359 @goldmedal addressed above in 0c52058 |
@comphead my understanding is that when a test file includes another file using the Is this correct? |
Seems like most recent pipeline failure is probably related to #15725. Waiting for this to merge. |
Merged! |
Yeah, I think it is correct, Btw I just went quickly through the sqllogic test runner, it looks like the init file will run as many times as it gets referenced, @Omega359 am I correct here? |
e6e7c52
to
0c52058
Compare
That is correct as far as I recall. |
Thanks, As long as test and its dependencies runs in the separate context we are safe. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks @kumarlokesh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kumarlokesh. look great 👍
|
||
# Regexp Test Files | ||
|
||
This directory contains test files for regular expression (regexp) functions in DataFusion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Thank you so much @kumarlokesh @comphead and @goldmedal |
* Refactor regexp slt tests * handle null test data
Which issue does this PR close?
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?