You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
String sqllogictest error when running the test with complete #12752
There is error when running stl test with complete
Execution error: Error completing "string/string_view.slt": failed to rename file from test_files/string/string_query.slt.part.temp to test_files/string/./string_query.slt.part
Execution error: Error completing "string/large_string.slt": failed to rename file from test_files/string/string_query.slt.part.temp to test_files/string/./string_query.slt.part
Execution error: Error completing "string/dictionary_utf8.slt": failed to rename file from test_files/string/string_query.slt.part.temp to test_files/string/./string_query.slt.part
Error: Execution("3 failures")
changed the title [-]String sqllogictest error when running with `complete`[/-][+]String sqllogictest error when running the test with `complete`[/+]on Oct 4, 2024
Update:- it is 4 failures as of commit 44cf77f (DF44)
Completed in 8 seconds \
Execution error: Error completing "join.slt": failed to rename file from test_files/join.slt.temp to test_files/join.slt: No such file or directory (os error 2)
Execution error: Error completing "string/string.slt": failed to rename file from test_files/string/init_data.slt.part.temp to test_files/string/./init_data.slt.part: No such file or directory (os error 2)
Execution error: Error completing "string/string_view.slt": failed to rename file from test_files/string/string_query.slt.part.temp to test_files/string/./string_query.slt.part: No such file or directory (os error 2)
Execution error: Error completing "string/dictionary_utf8.slt": failed to rename file from test_files/string/string_query.slt.part.temp to test_files/string/./string_query.slt.part: No such file or directory (os error 2)
Error: Execution("4 failures")
error: test failed, to rerun pass `-p datafusion-sqllogictest --test sqllogictests`
Analysis
Error completing "join.slt" seems to be stemming fro the fact that datafusion/sqllogictest/test_files/join_disable_repartition_joins.slt seems to be including it but it is not a part file so it fails to do so.
rest of them occur because sqllogictest run these tests asynchronously and multiple files try to include string_query.slt.part and init_data.slt.part which result in them renaming them to clashing names and then one of them delete a temp file while other tries to find it. (I just checked it runs perfectly on one thread but takes a whole minute)
Possible solution
rename join.slt to join.slt.part
we can just leave it as is and run the in 1 thread when really needed
or separate files that need to be run in synchronous manner
or allow redundant code and eliminate include statement
My first though was to just fix sqllogictest-rs to include a random part in the .temp name such that multiple threads would each have their own copy of the included file.
My first though was to just fix sqllogictest-rs to include a random part in the .temp name such that multiple threads would each have their own copy of the included file.
Activity
[-]String sqllogictest error when running with `complete`[/-][+]String sqllogictest error when running the test with `complete`[/+]leonzchang commentedon Oct 6, 2024
Related to #12618
findepi commentedon Oct 28, 2024
A workaround is to
--completeonly individual tests, which is obviously cumbersome.Omega359 commentedon Jan 12, 2025
I believe this ticket can be closed with the fix in #13142. I didn't encounter this with the sqlite tests. @jayzhan211
berkaysynnada commentedon Jan 12, 2025
cargo test --test sqllogictests -- --completeis still generating the same errorOmega359 commentedon Jan 12, 2025
Ah, yes, my mistake. it's the include of string_query.slt.part that seems to be causing the issues.
logan-keede commentedon Jan 23, 2025
Update:- it is 4 failures as of commit 44cf77f (DF44)
Analysis
Error completing "join.slt"seems to be stemming fro the fact thatdatafusion/sqllogictest/test_files/join_disable_repartition_joins.sltseems to be including it but it is not a part file so it fails to do so.sqllogictestrun these tests asynchronously and multiple files try to includestring_query.slt.partandinit_data.slt.partwhich result in them renaming them to clashing names and then one of them delete a temp file while other tries to find it. (I just checked it runs perfectly on one thread but takes a whole minute)Possible solution
join.slttojoin.slt.partcc @jayzhan211 @Omega359 @berkaysynnada
logan-keede commentedon Jan 23, 2025
take
PS: it does not seem like I am getting auto-assigned.
Omega359 commentedon Jan 23, 2025
My first though was to just fix sqllogictest-rs to include a random part in the .temp name such that multiple threads would each have their own copy of the included file.
logan-keede commentedon Jan 23, 2025
That should work, I will look into that approach.
alamb commentedon Jan 30, 2025
@logan-keede fixed this upstream last week: risinglightdb/sqllogictest-rs#249