Sort out testcases in aggregate.slt#14301
Conversation
|
Thanks @logan-keede I see still some failed tests exist, like: |
fixed! |
|
nit: I think PR title should reflect this is sqllogictest refactor to be more descriptive |
|
Main thing I am worried about is that this pr seems too large, it seems hard to ensure all exists testcases are moved rightly. Maybe we can push it forward more incrementally? I have some thoughts about it:
|
And how about we just start from the first step in this pr? And continue pushing it forward in following prs? |
aggregation.sltaggregation.slt
|
|
||
| # csv_query_bit_and_distinct | ||
| query IIIII | ||
| SELECT bit_and(distinct c5), bit_and(distinct c6), bit_and(distinct c7), bit_and(distinct c8), bit_and(distinct c9) FROM aggregate_test_100 |
There was a problem hiding this comment.
It seems a part of bit_and_or_xor?
There was a problem hiding this comment.
Seems switching to use data type to split rather than function?
There was a problem hiding this comment.
function name is STRING_AGG maybe we should switch that. I think it might not be bad to have some split based on datatype like date_time.slt (present in this PR) even if we decide to make them redundant.
There was a problem hiding this comment.
🤔 just a bit worried that, when the splitting approach becomes complex, if it will be confusing about deciding which file should we place the new testcases into
There was a problem hiding this comment.
aggregate.slt already had loose subsections for eg. most of the tests in date_time.slt are made to work together(because of mix of different functions) + there is a section for postgres dialect only somewhere in original file. I doubt there would be much confusing tests left after that and we can just put them in both files.
aggregation.sltaggregate.slt
|
agreed, I think if we are going to do this it might be better to open a new PR and start anew.
a brutish way to solve this might be to keep |
I think an alternative to this can be to divide this PR into increments and keep a dejavu
I say this because this sorting might become a huge PR by itself, this approach divides this sorting into increments with PRs. |
@logan-keede it is said that still one pr, but we perform It seems workable too, but actullay a bit inconvenient to check if large changes in one pr? And for the extract and subtract approach, I think it seems really good. |
Or I misunderstand? We will split it into multiple prs and we perform |
|
Thanks for the review.
I meant to divide it into multiple PRs not commits. I will be opening a new pr with just addition of init.slt.aprt and supplement.slt shortly. |
Ok, thanks @logan-keede |
Which issue does this PR close?
Part of #13723
Rationale for this change
Better Readability and Navigation.
What changes are included in this PR?
Refactor of
aggregate.sltto multiple files,Are these changes tested?
cargo test --test sqllogictests -- --complete(this does not check expected behaviour of sql commands) runs without failure, using patch mentioned in #14254.Are there any user-facing changes?
No