mirror of
https://github.com/apache/superset.git
synced 2026-09-07 15:54:55 +00:00
SQLStatement.parse_predicate called sqlglot.parse_one unguarded, so a syntactically invalid RLS predicate raised a raw sqlglot ParseError. Reachable via apply_rls (e.g. POST /api/v1/sqllab/estimate with RLS_IN_SQLLAB enabled), this surfaced as an opaque 500 instead of a typed 422. Wrap the call to convert ParseError/SqlglotError into SupersetParseError, mirroring the existing idiom in SQLStatement._parse.