Skip to content

Fix crash when reading Map with duplicate keys#124

Merged
alex-clickhouse merged 2 commits intomainfrom
map-fixes
Dec 9, 2025
Merged

Fix crash when reading Map with duplicate keys#124
alex-clickhouse merged 2 commits intomainfrom
map-fixes

Conversation

@alex-clickhouse
Copy link
Copy Markdown
Collaborator

Summary

Maps in ClickHouse are actually Array(Tuple(...)). Duplicate keys are valid, but reading an entry with duplicate keys currently results in a crash.

This patches the issue by simply using the last value for a given key, but further work in the future should be done to add an option to grab the data as List<Tuple<>> or something along those lines.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alex-clickhouse alex-clickhouse merged commit 4f7dff2 into main Dec 9, 2025
16 checks passed
@alex-clickhouse alex-clickhouse deleted the map-fixes branch December 9, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant