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

Handle escaped dot in json path in the QueryParser. #1682

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

fulmicoton
Copy link
Collaborator

No description provided.

@fulmicoton fulmicoton force-pushed the issue-quickwit/2312-fix-jsonpath-with-dot branch from 7a7d8d5 to f75bdb1 Compare November 15, 2022 10:00
@codecov-commenter
Copy link

codecov-commenter commented Nov 15, 2022

Codecov Report

Merging #1682 (f75bdb1) into main (eda6e5a) will increase coverage by 0.05%.
The diff coverage is 98.01%.

@@            Coverage Diff             @@
##             main    #1682      +/-   ##
==========================================
+ Coverage   93.98%   94.04%   +0.05%     
==========================================
  Files         256      256              
  Lines       48985    49053      +68     
==========================================
+ Hits        46040    46132      +92     
+ Misses       2945     2921      -24     
Impacted Files Coverage Δ
src/query/query_parser/query_parser.rs 94.93% <88.88%> (-0.10%) ⬇️
src/indexer/json_term_writer.rs 99.77% <100.00%> (+0.03%) ⬆️
src/indexer/mod.rs 100.00% <100.00%> (ø)
src/fastfield/multivalued/mod.rs 98.45% <0.00%> (-0.78%) ⬇️
src/postings/stacker/expull.rs 98.57% <0.00%> (-0.48%) ⬇️
src/tokenizer/stop_word_filter/mod.rs 68.00% <0.00%> (+18.96%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

let mut escaped_state: bool = false;
let mut json_path_segments = Vec::new();
let mut buffer = String::new();
for ch in json_path.chars() {
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: char or a variable with more than 2 letters

Ok(())
}

#[test]
fn test_json_field_espace() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
fn test_json_field_espace() {
fn test_json_field_escape() {

@fulmicoton fulmicoton merged commit 2a39289 into main Nov 15, 2022
@fulmicoton fulmicoton deleted the issue-quickwit/2312-fix-jsonpath-with-dot branch November 15, 2022 22:18
This was referenced Jan 13, 2023
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