## 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
ATTACH DATABASE ':memory:' AS aux42;
SAVEPOINT sp664;
.read commands.sql
CREATE TABLE "t1"(a INTEGER PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (9223372036854775807, 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);
CREATE INDEX t1bc ON t1(b, c);
PRAGMA writable_schema = ON;
.imposter t1bc t2

SELECT * FROM t2;
SELECT b, c FROM t1 ORDER BY b, c;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
DROP TABLE t0;
.quit
ATTACH DATABASE ':memory:' AS aux33;
ATTACH DATABASE ':memory:' AS aux74;
.nullvalue 232327d3-536b-41de-a764-a6301986aeab
CREATE TABLE [T] (
  A VARCHAR(upper('你好')) PRIMARY KEY,
  B VARCHAR(json_array()) NOT NULL,
  C INTEGER,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -degrees(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 NOT NOT (C BETWEEN -1000 AND 1000) ORDER BY C ASC;
SELECT * FROM T;
PRAGMA vdbe_debug = 0;
ALTER TABLE T DROP COLUMN B;
CREATE TRIGGER IF NOT EXISTS trg_T_6262 AFTER UPDATE OF A ON T FOR EACH ROW BEGIN SELECT RAISE(FAIL, 'no'); END;
CREATE TRIGGER IF NOT EXISTS trg_T_1635 AFTER UPDATE OF A ON T FOR EACH ROW BEGIN SELECT RAISE(FAIL, 'no'); END;
SELECT AVG(C) FROM T;
ALTER TABLE T RENAME COLUMN B TO B_r9915;
DETACH DATABASE aux74;
DETACH DATABASE aux33;
SELECT * FROM t1 WHERE +a > ALL (SELECT a FROM t1);
DELETE FROM t1 WHERE 0;
INSERT OR ROLLBACK INTO t1 VALUES (NULL, 0, -6, '');
CREATE TRIGGER IF NOT EXISTS trg_t1_7285 BEFORE UPDATE ON t1 FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'rb'); END;
DROP TRIGGER IF EXISTS t1;
INSERT INTO t1 VALUES (NULL, NULL, NULL, NULL);
RELEASE sp664;
ALTER TABLE t1 ADD COLUMN extra_6969 DOUBLE NOT NULL DEFAULT 0;
INSERT INTO t1 DEFAULT VALUES;
SELECT * FROM t1;
REINDEX;
SELECT STRING_AGG(d) FROM t1;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_t1_5722 AS SELECT a FROM t1;
ALTER TABLE t1 RENAME COLUMN c TO c_r6930;
INSERT INTO t1 DEFAULT VALUES;
SELECT * FROM t1 AS a LEFT OUTER JOIN t1 AS b ON a.rowid = b.rowid;
DETACH DATABASE aux42;
ALTER TABLE t1 RENAME COLUMN d TO d_r1370;
SELECT * FROM t1 AS a JOIN t1 AS b ON a.rowid = b.rowid;
INSERT OR REPLACE INTO t1 VALUES (NULL, 0, -9, -5);
SELECT COUNT(*) FROM t1;
INSERT INTO t1 VALUES (NULL, NULL, NULL, NULL);
REINDEX t1;

SELECT COUNT(*) FROM t1;
SELECT COUNT(*) FILTER (WHERE c IS NOT NULL), SUM(rowid) FILTER (WHERE c > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(c) FILTER (WHERE c > 0 AND c < 100), COUNT(*) FILTER (WHERE typeof(c) = "text") FROM t1;
UPDATE t1 SET d = CURRENT_TIMESTAMP WHERE d BETWEEN 0 AND 100;
```

## Actual output

```sql
1
CREATE TABLE "t2"("b","c","_ROWID_",PRIMARY KEY("b","c","_ROWID_"))WITHOUT ROWID;
WARNING: writing to an imposter table will corrupt the "t1bc" index!
Braun|30|3
Wernher|10|9223372036854775807
von|20|2
Braun|30
Wernher|10
von|20
```

## Expectation

```sql
1
CREATE TABLE "t2"("b","c","_ROWID_",PRIMARY KEY("b","c","_ROWID_"))WITHOUT ROWID;
Braun|30|3
Wernher|10|9223372036854775807
von|20|2
Braun|30
Wernher|10
von|20
```

## Flag

```

```

