## 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 aux86;
CREATE TABLE T (
  a SMALLINT,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (NULL,'a',ceil((40.5 - 0)),-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
ATTACH DATABASE ':memory:' AS aux65;
SAVEPOINT sp7910;
PRAGMA table_xinfo(users);
PRAGMA writable_schema = RESET;
.progress CAST(1.7976931348623157e+308 AS BIGINT)
PRAGMA cache_size;
PRAGMA schema_version = 6.283185307179586;
PRAGMA temp_store = '1';
.width
CREATE TABLE t1(a BIGINT PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (1, '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;

.quit
ALTER TABLE t1 RENAME TO t1_r4605;
ALTER TABLE t1 DROP COLUMN a;
CREATE TRIGGER  IF NOT EXISTS trg_t1_259 AFTER INSERT ON t1 FOR EACH ROW BEGIN SELECT RAISE(FAIL, 'no'); END;
INSERT INTO t1 SELECT * FROM t1;
UPDATE t1 SET b = '' WHERE NOT b BETWEEN 0 AND 100;
INSERT INTO t1 VALUES ('x', NULL, 1, 1) ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b, c = excluded.c;
CREATE TEMP  VIEW IF NOT EXISTS v_t1_3309 AS SELECT d FROM t1;
SELECT NTH_VALUE(d, 0) OVER (ORDER BY d) FROM t1;
ROLLBACK TO sp7910;
RELEASE sp7910;
INSERT INTO t1 DEFAULT VALUES;
INSERT INTO t1 VALUES (1, 'x', 'x', 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b, c = excluded.c;
DETACH DATABASE aux65;
INSERT OR ABORT INTO t1 VALUES (0, 0, 0, '');
INSERT INTO t1 VALUES ('x', 'x', NULL, 1) ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b, c = excluded.c;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_t1_7139 AS SELECT a FROM t1;
CREATE TEMP  VIEW IF NOT EXISTS v_t1_1291 AS SELECT c FROM t1;
VACUUM main;
ALTER TABLE t1 DROP COLUMN a;
SELECT COUNT(c) FILTER (WHERE NULL) OVER (PARTITION BY c ORDER BY c GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM t1;
ANALYZE t1;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<7) SELECT * FROM cnt;
ALTER TABLE t1 RENAME TO t1_r6169;
REINDEX;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_t1_6573 ON t1((b + 1)) WHERE b > 0;
SELECT AVG(c) FROM T;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_t1_7809 ON t1(b COLLATE NOCASE) WHERE b > 0;
DETACH DATABASE aux86;
INSERT OR ROLLBACK INTO T VALUES (0, -8, 8, 'x');
SELECT a FROM t1 INTERSECT SELECT a FROM (SELECT * FROM t1) AS sub;

SELECT COUNT(*) FROM T;
SELECT * FROM T;
CREATE  VIEW IF NOT EXISTS v_t1_687 AS SELECT a FROM t1;
WITH RECURSIVE r AS (SELECT d FROM t1 UNION ALL SELECT d FROM t1 LIMIT 5) SELECT * FROM r;
CREATE TRIGGER IF NOT EXISTS trg_t1_6 BEFORE UPDATE ON t1 BEGIN SELECT RAISE(ABORT, 'abort'); END;
INSERT OR IGNORE INTO T VALUES ('x', 0, '', NULL);
ALTER TABLE t1 DROP COLUMN d;
```

## Actual output

```sql
a
b
c
-2000
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|1
von|20|2
Braun|30
Wernher|10
von|20
```

## Expectation

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

## Flag

```

```

