## Summary
<!--Explain briefly what goes wrong and explain why you believe this is a bug and not the intended behavior of SQLite (if it is not a crash).-->**No review yet**

## Minimized query

```sql
.limit
CREATE TABLE T (
  a TEXT,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES ('a','b',2147483646), ('a','c',-1.0), ('b','d',0.0);
SELECT
COALESCE(a,'e') AS d,
COALESCE(b,'f') AS e,
SUM(c) AS f
FROM T
GROUP BY a,b;
DELETE FROM T WHERE NOT NOT (a > (SELECT AVG(a) FROM T)) ;
DROP INDEX IF EXISTS T;
WITH a AS (SELECT a FROM T), b AS (SELECT a FROM T) SELECT * FROM a JOIN b ON a.a = b.a;
SELECT * FROM T WHERE a IN (SELECT a FROM T WHERE a IS NOT NULL);
INSERT INTO T DEFAULT VALUES;
SELECT * FROM T;
```

## Actual output

```sql
length 1000000000
          sql_length 1000000000
              column 2000
          expr_depth 1000
     compound_select 500
             vdbe_op 250000000
        function_arg 127
            attached 10
 like_pattern_length 50000
     variable_number 32766
       trigger_depth 1000
      worker_threads 0
a|b|2147483646.0
a|c|-1.0
b|d|0.0
||
```

## Expectation

```sql
length 1000000000
          sql_length 1000000000
              column 2000
          expr_depth 1000
     compound_select 500
             vdbe_op 250000000
        function_arg 1000
            attached 10
 like_pattern_length 50000
     variable_number 32766
       trigger_depth 1000
      worker_threads 0
a|b|2147483646.0
a|c|-1.0
b|d|0.0
||
```

## Flag

```

```

