```
SELECT
    number,
    leadInFrame(number) OVER w AS W
FROM numbers(10)
WINDOW w AS (ORDER BY number ASC Rows BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)
LIMIT 3;

┌─number─┬─W─┐
│      0 │ 1 │
│      1 │ 2 │
│      2 │ 0 │ <-- W should be 3!
└────────┴───┘
```

In contrast:  https://www.db-fiddle.com/f/hNNECnp7YC3E2zBKBaxN6T/1
{
    if (parent_node->children.size() != 1)
        return 0;
    QueryPlan::Node * child_node = parent_node->children.front();
    auto & parent = parent_node->step;
    auto & child = child_node->step;
    auto * limit = typeid_cast<LimitStep *>(parent.get());
    if (!limit)
        return 0;
    
    if (limit->withTies())
        return 0;