## 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 automatic_index = TRUE;
SAVEPOINT sp6633;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (substring(-pi(), random() % if(cos('NaN'), NULL, 100)),'' || ('a'),1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE NOT c < 2.0 ORDER BY c;
ALTER TABLE T RENAME COLUMN c TO c_r522;
INSERT INTO T SELECT * FROM T;

SELECT COUNT(*) FROM T;
RELEASE sp6633;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<0) SELECT * FROM cnt;
CREATE  INDEX IF NOT EXISTS idx_T_1692 ON T(a) WHERE a IS NOT NULL;
SELECT * FROM T AS a FULL JOIN T AS b ON a.rowid = b.rowid;
ANALYZE;
REINDEX;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_2780 ON T(b) WHERE b IS NOT NULL;
DROP TRIGGER IF EXISTS T;
REINDEX;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
SELECT * FROM T WHERE b < ANY (SELECT b FROM T);
INSERT OR FAIL INTO T VALUES (-3, 6, 0);
CREATE TEMP  VIEW IF NOT EXISTS v_T_2249 AS SELECT b FROM T;
ALTER TABLE T ADD COLUMN extra_1394 FLOA UNIQUE;
INSERT OR FAIL INTO T VALUES (-4, '', -8);
```

## Actual output

```sql
3.39.0 2022-05-10 23:28:12 764b71267e0b31ff7eaf2a0def7526a1a02dce4d5b456dea060d97ed342ealt1
```

## Expectation

```sql
3.51.1 2025-11-28 17:28:25 281fc0e9afc38674b9b0991943b9e9d1e64c6cbdb133d35f6f5c87ff6af38a88 (64-bit)
```

## Flag

```
-version
```

