## 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 TEXT,
  c REAL
);
INSERT INTO T VALUES ('a','b',zeroblob(-1)), ('a','c',5.0), ('b','d',-8.25);
SELECT a,b,c,
RANK() OVER (PARTITION BY a ORDER BY c DESC) AS d FROM T;
.explain on
ATTACH DATABASE '' || (':memory:') AS aux41;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15) NOT NULL,
  C CHARINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -2147483648);
INSERT INTO T VALUES ('b', 'q', 700);
INSERT INTO T VALUES ('c', 'r', 0);
INSERT INTO T VALUES ('d', 's', 2147483647);
INSERT INTO T VALUES ('e', 't', -1);
INSERT INTO T VALUES ('f', 'u', 1);
SELECT * FROM T WHERE C BETWEEN -1000 AND 1000 ORDER BY C ASC;
VACUUM main;
ALTER TABLE T ADD COLUMN extra_2973 DATE DEFAULT 0;
UPDATE T SET C = C + 1 WHERE rowid = 1;
CREATE  VIEW IF NOT EXISTS v_T_8945 AS SELECT C FROM T;
ALTER TABLE T /* PRAGMA temp_store_directory = "/tmp"; */ RENAME COLUMN B TO B_r1280;
ANALYZE T;
DETACH DATABASE aux41;
SELECT COUNT(C) FILTER (WHERE C IS NOT NULL) OVER (ORDER BY C ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE GROUP) FROM T;
ALTER TABLE T RENAME COLUMN A TO A_r5018;
ANALYZE T;
SELECT * FROM T AS a LEFT JOIN T AS b ON a.rowid = b.rowid;
CREATE  INDEX IF NOT EXISTS idx_T_7992 ON T(lower(B)) WHERE B IS NOT NULL;
INSERT INTO T VALUES (1, 1, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
```

## 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
```

