Re: JSON/SQL: jsonpath: incomprehensible error message

2022-07-03 Thread Andrew Dunstan
On 2022-06-30 Th 04:19, Amit Kapila wrote: > On Wed, Jun 29, 2022 at 6:58 PM Erik Rijkers wrote: >> Op 29-06-2022 om 15:00 schreef Amit Kapila: >>> On Mon, Jun 27, 2022 at 8:46 PM Andrew Dunstan wrote: On 2022-06-26 Su 11:44, Erik Rijkers wrote: > JSON/SQL jsonpath > > For exam

Re: JSON/SQL: jsonpath: incomprehensible error message

2022-06-30 Thread Amit Kapila
On Wed, Jun 29, 2022 at 6:58 PM Erik Rijkers wrote: > > Op 29-06-2022 om 15:00 schreef Amit Kapila: > > On Mon, Jun 27, 2022 at 8:46 PM Andrew Dunstan wrote: > >> > >> On 2022-06-26 Su 11:44, Erik Rijkers wrote: > >>> JSON/SQL jsonpath > >>> > >>> For example, a jsonpath string with deliberate ty

Re: JSON/SQL: jsonpath: incomprehensible error message

2022-06-29 Thread Andrew Dunstan
On 2022-06-29 We 10:58, Alexander Korotkov wrote: > On Wed, Jun 29, 2022 at 4:28 PM Erik Rijkers wrote: >> Op 29-06-2022 om 15:00 schreef Amit Kapila: >>> On Mon, Jun 27, 2022 at 8:46 PM Andrew Dunstan wrote: On 2022-06-26 Su 11:44, Erik Rijkers wrote: > JSON/SQL jsonpath > > F

Re: JSON/SQL: jsonpath: incomprehensible error message

2022-06-29 Thread Alexander Korotkov
On Wed, Jun 29, 2022 at 4:28 PM Erik Rijkers wrote: > Op 29-06-2022 om 15:00 schreef Amit Kapila: > > On Mon, Jun 27, 2022 at 8:46 PM Andrew Dunstan wrote: > >> > >> On 2022-06-26 Su 11:44, Erik Rijkers wrote: > >>> JSON/SQL jsonpath > >>> > >>> For example, a jsonpath string with deliberate typo

Re: JSON/SQL: jsonpath: incomprehensible error message

2022-06-29 Thread Erik Rijkers
Op 29-06-2022 om 15:00 schreef Amit Kapila: On Mon, Jun 27, 2022 at 8:46 PM Andrew Dunstan wrote: On 2022-06-26 Su 11:44, Erik Rijkers wrote: JSON/SQL jsonpath For example, a jsonpath string with deliberate typo 'like_regexp' (instead of 'like_regex'): select js from (values (jsonb '{}')) a

Re: JSON/SQL: jsonpath: incomprehensible error message

2022-06-29 Thread Amit Kapila
On Mon, Jun 27, 2022 at 8:46 PM Andrew Dunstan wrote: > > On 2022-06-26 Su 11:44, Erik Rijkers wrote: > > JSON/SQL jsonpath > > > > For example, a jsonpath string with deliberate typo 'like_regexp' > > (instead of 'like_regex'): > > > > select js > > from (values (jsonb '{}')) as f(js) > > where j

Re: JSON/SQL: jsonpath: incomprehensible error message

2022-06-27 Thread Andrew Dunstan
On 2022-06-26 Su 11:44, Erik Rijkers wrote: > JSON/SQL jsonpath > > For example, a jsonpath string with deliberate typo 'like_regexp' > (instead of 'like_regex'): > > select js > from (values (jsonb '{}')) as f(js) > where js @? '$ ? (@ like_regexp "^xxx")'; > > ERROR:  syntax error, unexpected ID

JSON/SQL: jsonpath: incomprehensible error message

2022-06-26 Thread Erik Rijkers
JSON/SQL jsonpath For example, a jsonpath string with deliberate typo 'like_regexp' (instead of 'like_regex'): select js from (values (jsonb '{}')) as f(js) where js @? '$ ? (@ like_regexp "^xxx")'; ERROR: syntax error, unexpected IDENT_P at or near " " of jsonpath input LINE 1: ...s from (v