0

I have to extract the value from the path '$.quotes.NAME.cheapest.cost', the NAME changes but the rest of the path is the same. Is it possible to use a wildcard or something like *?

1 Answers1

1

No, json path support in Presto is very limited (unlike one which was added to Trino). You need to use alternative approaches via casting needed stuff to MAP's and ARRAYS's and processing it with unnest like here or here.

Guru Stron
  • 102,774
  • 10
  • 95
  • 132