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
Fix yardstick rewriter for LookML-loaded models with {model} placeholder (#106)
The LookML adapter stores dimension/measure SQL with {model} placeholders
(replacing ${TABLE}). The standard query rewriter handles this, but the
yardstick rewriter passed these directly to sqlglot.parse_one(), which
choked on the curly braces producing invalid SQL like {'_0': table.model}.
Fixes:
- Replace {model} in dimension SQL before parsing (5 call sites)
- Skip dimension expansion when resolved SQL is just table.column
(prevents unqualified outer references in correlation predicates)
0 commit comments