## 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
PRAGMA cache_spill = TRUE;
PRAGMA vdbe_addoptrace = TRUE;
PRAGMA stats;
CREATE TEMPORARY TABLE t0(x, y, z);
SELECT -99999999999999999999999999999999999999999999999999;
SELECT * FROM sqlite_temp_master WHERE sql GLOB '000[]***';
DROP TABLE t0;
.timer on
CREATE TABLE t3(x,y);
INSERT INTO t3 VALUES(1,NULL);
CREATE TABLE T (
  a TEXT,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES ('a','b',1.0), ('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;
INSERT INTO t3 VALUES(2,NULL);
INSERT INTO t3 VALUES(3,4);
SELECT count(x), y FROM t3 GROUP BY y ORDER BY 1;
SELECT * FROM t3 AS a JOIN t3 AS b ON a.rowid = b.rowid;
CREATE  VIEW IF NOT EXISTS v_t3_1775 AS SELECT y FROM t3;
```

## Actual output

```sql
-1.0e+50
Run Time: real 0.000 user 0.000058 sys 0.000000
Run Time: real 0.000 user 0.000011 sys 0.000000
Run Time: real 0.000 user 0.000039 sys 0.000000
Run Time: real 0.000 user 0.000015 sys 0.000000
a|b|1.0
a|c|-1.0
b|d|0.0
Run Time: real 0.000 user 0.000047 sys 0.000000
Run Time: real 0.000 user 0.000006 sys 0.000000
Run Time: real 0.000 user 0.000005 sys 0.000000
1|4
2|
Run Time: real 0.000 user 0.000026 sys 0.000000
1||1|
2||2|
3|4|3|4
Run Time: real 0.001 user 0.000024 sys 0.000000
Run Time: real 0.000 user 0.000104 sys 0.000000
```

## Expectation

```sql
-1.0e+50
Run Time: real 0.000058 user 0.000068 sys 0.000000
Run Time: real 0.000009 user 0.000010 sys 0.000000
Run Time: real 0.000033 user 0.000034 sys 0.000000
Run Time: real 0.000014 user 0.000014 sys 0.000000
a|b|1.0
a|c|-1.0
b|d|0.0
Run Time: real 0.000040 user 0.000041 sys 0.000000
Run Time: real 0.000004 user 0.000005 sys 0.000000
Run Time: real 0.000003 user 0.000004 sys 0.000000
1|4
2|
Run Time: real 0.000022 user 0.000023 sys 0.000000
1||1|
2||2|
3|4|3|4
Run Time: real 0.000019 user 0.000020 sys 0.000000
Run Time: real 0.000073 user 0.000074 sys 0.000000
```

## Flag

```

```

