inspektor-dev / inspektor

Inspektor is a protocol-aware proxy that is used to enforce access policies👮

Home Page:https://inspektor.cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for json in postgres query

poonai opened this issue · comments

Describe the bug
Inspektor doesn't support json query support.

To Reproduce
Parse the following query

select * from tmpdb where cast(meta1->'refferedBy' as text) = '3332'

you'll get the following error

ParserError("Expected an expression:, found: >")

Expected behavior
Inspektor should be able to parse json query

support for json selection is submitted to sqlparser crate

sqlparser-rs/sqlparser-rs#458