Skip to content

Commit

Permalink
a fix for parsing statement definition.
Browse files Browse the repository at this point in the history
a defintion for parsing the from-clause-json-path per JSON statements.

Signed-off-by: Gal Salomon <[email protected]>
  • Loading branch information
galsalomon66 committed Aug 4, 2024
1 parent 2a4f16c commit fd0bfbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/s3select.h
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ struct s3select : public bsc::grammar<s3select>

json_s3_object = ((S3SELECT_KW(JSON_ROOT_OBJECT)) >> *(bsc::str_p(".") >> json_path_element))[BOOST_BIND_ACTION(push_json_from_clause)];

json_path_element = bsc::lexeme_d[+( bsc::alnum_p | bsc::str_p("_") | bsc::str_p("*") | (string))][BOOST_BIND_ACTION(push_json_from_clause_key_path)];
json_path_element = (bsc::lexeme_d[+( bsc::alnum_p | bsc::str_p("_") ) ] | bsc::str_p("*") | (string))[BOOST_BIND_ACTION(push_json_from_clause_key_path)];

object_path = "/" >> *( fs_type >> "/") >> fs_type;

Expand Down

0 comments on commit fd0bfbf

Please sign in to comment.