Reapply "Fix/support duplicate column names" #21260
Conversation
|
I tried to update the sqllogictests following the instructions However, it seems as if our patched version of sqlogictest doesn't match the version that we currently use: I am going to turn codex loose on this for a bit and see what it comes up with |
|
Since this was my original change, I'd like to help get it re-landed. I can look into the sqllogictest version mismatch and update the expected results if that would be helpful. |
That would be super helpful -- I haven't had a chance to look into it more yet |
|
Hi @alamb, I dug into the sqllogictest version mismatch and found a way to update the extended tests without needing the Omega359 fork. The problem with the fork approach: What I found:
The fix (2-pass approach):
Results:
Full disclosure: I used Claude Code to help debug this and write the post-processing script — it took quite a bit of iteration to figure out the valuewise format and hash issues. Proposed next steps:
Let me know if this approach looks good and I'll open the datafusion-testing PR. |
|
Thank you so much @RafaelHerrero -- this sounds right to me
Yes, thank you -- this sounds right Can I also request a step 3 (which is to update the I also wonder if there is something we can upstream to the sqllogictest repo so we don't have to maintain a fork |
|
Good news on step 3 — the Omega359 fork features were already upstreamed to risinglightdb/sqllogictest-rs in v0.24.0 (PR #237), and DataFusion is already on v0.29.1. So no new fork needed, we just need to remove the fork swap from regenerate_sqlite_files.sh (line 167). The regenerate/sqllogictests.rs also needs updating (the non-postgres complete path is commented out), but that can be a separate follow-up. I'll get the datafusion-testing PR up next. Want me to include the script cleanup in the datafusion PR or keep it separate? |
Awesome!
If possible, can you make PRs:
Then we can update this PR with an updated pin of datafusion-testing |
|
Hey @alamb, both PRs are up:
Let me know if anything needs adjusting. |
Sounds good -- I gave this a review and left some comments. |
|
Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days. |
Draft until I have updated the datafusion-testing repo
Which issue does this PR close?
Rationale for this change
I think it is an important feature so let's get it in
What changes are included in this PR?
Are these changes tested?
Yes by CI (and @mbutrovich has updated the tests to run extended tests here #21255)
Are there any user-facing changes?