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

fix null byte handling in JSON paths #2345

Merged
merged 5 commits into from
Apr 5, 2024
Merged

fix null byte handling in JSON paths #2345

merged 5 commits into from
Apr 5, 2024

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Apr 5, 2024

closes #2340

@PSeitz PSeitz requested a review from fulmicoton April 5, 2024 06:38
src/schema/term.rs Outdated Show resolved Hide resolved
@@ -102,7 +107,7 @@ mod tests {
let mut buffer: Vec<u8> = b"somegarbage".to_vec();
prepare_key(b"root\0child", ColumnType::Str, &mut buffer);
assert_eq!(buffer.len(), 12);
assert_eq!(&buffer[..10], b"root\0child");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which sep do we use for fields in columnar? is it \1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes \u{1}

PSeitz and others added 2 commits April 5, 2024 09:17
Co-authored-by: Paul Masurel <paul@quickwit.io>
@PSeitz PSeitz merged commit b644d78 into main Apr 5, 2024
4 checks passed
@PSeitz PSeitz deleted the json_path_end branch April 5, 2024 07:53
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.

Panic on document of death
2 participants