Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue #815]Fix bug/null value of string #824

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

whzruc
Copy link
Collaborator

@whzruc whzruc commented Jan 9, 2025

According to the Java implementation of StringColumnReader, we need to rewrite the C++ version, with a particular focus on resolving the parsing of null string values. In the new version of DuckDB, there's an issue with the ColumnVector->isNull implementation. To address this and to be compatible with newly added methods like addValue, I've changed the type of isNull from uint8_t* to bool*.
However, there are still remaining bugs:
BufferPool management: There seem to be problems related to how the BufferPool is being handled. This could potentially lead to incorrect memory allocation, deallocation, or data access within the buffer.
Next pxl error?:
When scanning a single pixel (pxl), the result is correct as tested in the new pull request of DuckDB.
image
But when attempting to read the next pixel, an error related to incorrect string values occurs.
image
image

It's suspected that this might be associated with the BufferPool management issue (Bug 1). Further investigation is needed to pinpoint the exact cause and find a proper solution for both bugs.

@whzruc whzruc added the bug Something isn't working label Jan 9, 2025
@whzruc whzruc added this to the Pixels C++ milestone Jan 9, 2025
@whzruc whzruc changed the title Fix bug/null value of string [ISSUE 815]Fix bug/null value of string Jan 9, 2025
@whzruc whzruc changed the title [ISSUE 815]Fix bug/null value of string [Issue #815]Fix bug/null value of string Jan 9, 2025
@whzruc whzruc linked an issue Jan 9, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cpp] fix duckdb benchmark_runner bugs
1 participant