SIGN IN SIGN UP
apache / superset UNCLAIMED

Apache Superset is a Data Visualization and Data Exploration Platform

0 0 150 TypeScript

fix(sqlglot30): handle bare LIMIT clause in get_limit_from_sql

sqlglot 30 raises ParseError for "SELECT ... LIMIT" (no value)
because Limit.expression is now a required keyword. Catch
SupersetParseError in get_limit_from_sql and return None, matching
the expected behavior for malformed LIMIT clauses.

Fixes test_extract_limit_from_query on postgres/mysql/sqlite.

Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
C
Claude committed
f6cf829754984614bda85adefb0655a102a1c250
Parent: 8949220