pub fn is_simple_point_query(stmt: &SelectStmt) -> boolExpand description
Check if a query is a simple point-lookup that can use the fast path
Returns true for queries that:
- Query a single table (no joins, no subqueries in FROM)
- Have no WITH clause (CTEs)
- Have no aggregates or window functions
- Have no GROUP BY, HAVING, DISTINCT, or set operations
- Have no ORDER BY with complex expressions
- Have a simple WHERE clause (only AND-connected equality predicates)