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

Change yyjson_get_tag() to yyjson_get_type() when doing type comparisons. #50

Merged
merged 3 commits into from
May 13, 2024

Conversation

rustyconover
Copy link
Contributor

fix: change yyjson comparisions to type rather than tag.

Many comparisons were performed using yyjson_get_tag() rather than yyjson_get_type(). The tag can have additional information set using bits beyond just the type, causing these type comparisons to fail and parsing the metadata to fail.

fix: fix the extension to build with current duckdb main branch.

Fix a few std::move() calls and a call to fs.OpenFile().

Many comparisons where performed using `yyjson_get_tag()` rather
than `yyjson_get_type()`.  The tag can have additional information
set using bits beyond just the type, causing these type comparisons
to fail and JSON failing to parse.

fix: fix the extension to build with current duckdb main branch.

Fix a few std::move() calls and a call to fs.OpenFile().
@harel-e
Copy link

harel-e commented May 8, 2024

Issue #39 is fixed with this PR

@samansmink samansmink merged commit 02171d5 into duckdb:main May 13, 2024
16 checks passed
@samansmink
Copy link
Collaborator

Looks good to me, thanks a lot!

carlopi added a commit to carlopi/duckdb that referenced this pull request May 15, 2024
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.

3 participants