You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SHOW TABLES ... LIKE 'p' LIMIT n is displayed with the LIKE after LIMIT #2805
With dialects that take the LIKE filter as a suffix (ClickHouse, MySQL, Generic, ...), Display writes it after LIMIT, and the output reparses as a LIKE inside the limit expression:
SHOW TABLES FROM system LIKE '%user%' LIMIT 2 (ClickHouseDialect)
-> displays as: SHOW TABLES FROM system LIMIT 2 LIKE '%user%'
-> reparses with LIMIT (2 LIKE '%user%') and no filter
SHOW DATABASES LIKE '%de%' LIMIT 2
-> displays as: SHOW DATABASES LIMIT 2 LIKE '%de%' (same AST change)
SHOW TABLES LIKE 'x%' LIMIT 2 (SnowflakeDialect, infix filter)
-> round-trips (fine)
parse_show_stmt_options reads the suffix filter right after show_in, before STARTS WITH / LIMIT / FROM, but Display for ShowStatementOptions uses "{like_in_infix}{show_in}{starts_with}{limit}{from}{like_in_suffix}".
Activity