elegant-solstice-68604
07/31/2025, 8:41 PMIf a metric uses this Filter, GrowthBook will add it to the WHERE clause automatically. If there are multiple Filters, they will be ANDed together.However, inspecting the generated SQL query reveals filters are inserted as a column in the SELECT statement as
SELECT CASE WHEN [[filter]] ELSE NULL. I believe these are functionally different with respect to certain table operations involving indexes. Curious if anyone knows why this design decision was made and/or if the documentation needs to be updated to describe this discrepancy?steep-dog-1694
07/31/2025, 10:05 PMSELECT CASE WHEN rather than WHERE is that a WHERE statement will affect all metrics in a fact table, while SELECT CASE WHEN affects only the metric with the filter.
Lukeelegant-solstice-68604
07/31/2025, 10:08 PM