Skip to content

Conversation

taniabogatsch
Copy link
Contributor

Fixes #16604.
Fixes #16520.

I added the reproduction for #16604. #16520 is more complicated to include in the tests as it fetches a remote file. Both use INSERT INTO tbl SELECT * FROM other_tbl, which triggers the physical batch insert code.

I've also quickly confirmed #16604 locally, but maybe @sgrebnov, you want to check out this PR and try it yourself.

@taniabogatsch taniabogatsch marked this pull request as ready for review March 14, 2025 13:16
@sgrebnov
Copy link

This is great, thank you @taniabogatsch 🙏 - I'll give this fix a try on weekend and reply back!

@sgrebnov
Copy link

sgrebnov commented Mar 15, 2025

@taniabogatsch - confirm this PR fixes issue below 🚀. Thank you and will be looking forward to 1.2.2 duckdb release

./load_lineitem.sh
v1.2.2-dev34 a257b0b0bd
100% ▕████████████████████████████████████████████████████████████▏ 
┌──────────────────────┐
│ initial_insert_count │
│        int64         │
├──────────────────────┤
│         1000         │
└──────────────────────┘
┌──────────────────┐
│ count_after_drop │
│      int64       │
├──────────────────┤
│        0         │
└──────────────────┘
100% ▕████████████████████████████████████████████████████████████▏ 
┌──────────────────────┐
│ count_after_reinsert │
│        int64         │
├──────────────────────┤
│         1000         │
└──────────────────────┘
Overwrite attempt completed.

@Mytherin Mytherin merged commit 64351c2 into duckdb:v1.2-histrionicus Mar 17, 2025
52 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

@basanthjenuhb
Copy link

should we add test from the reproducible queries from #16604

@taniabogatsch
Copy link
Contributor Author

Oh, I thought that I had, I even mentioned it in the PR description - I probably forgot to check them in... 😅

@taniabogatsch
Copy link
Contributor Author

Will open a PR :)

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Apr 8, 2025
[Fix] Perform eager constraint checking during physical batch insert (duckdb/duckdb#16651)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants