Skip to content

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented Jan 12, 2025

The metadata size was being calculated for all the groups in the segment, but we were adding this to the total space_used
We know split the space_used into data_size and metadata_size.

metadata_size gets recalculated with every flushed container, whereas data_size is added onto for every container.
We make use of the new logging system to test this! 🥳

@duckdb-draftbot duckdb-draftbot marked this pull request as draft January 12, 2025 21:37
@Tishj Tishj marked this pull request as ready for review January 12, 2025 21:54
@Mytherin Mytherin merged commit 89bcc3e into duckdb:main Jan 13, 2025
48 of 49 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

@Tishj
Copy link
Contributor Author

Tishj commented Jan 13, 2025

@Mytherin I wasnt sure if you'd agree with the use of the logger here, was expecting to have to take it out honestly

@Mytherin
Copy link
Collaborator

I think these kinds of things are exactly what the logger is for no?

@Tishj
Copy link
Contributor Author

Tishj commented Jan 13, 2025

I agree, but I don't think this behavior is quick to change, so perhaps doesn't require tests like this

@Mytherin
Copy link
Collaborator

Mytherin commented Jan 13, 2025

Oh yeah, I had not seen the logging checks in the tests. Agreed that should be removed.

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Feb 2, 2025
[Dev] Fix wrong result reported by Roaring Compression `FinalAnalyze` (duckdb/duckdb#15677)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Feb 2, 2025
[Dev] Fix wrong result reported by Roaring Compression `FinalAnalyze` (duckdb/duckdb#15677)
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.

2 participants