## 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
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',json_valid(cos(100.0), 4)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b  DESC) AS d FROM T;
SELECT MAX(a) FROM T;
INSERT OR FAIL INTO T VALUES (NULL, 0);
REINDEX T;
SELECT * FROM T;
INSERT INTO T VALUES (NULL, NULL);
```

## Actual output

```sql
|0.0
```

## Expectation

```sql

```

## Flag

```

```

