## 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 t1(a INTEGER 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
BEGIN TRANSACTION;
.backup main output.db
.timeout --6098561564740517649
ATTACH DATABASE (':memory:' || '') AS aux69;
CREATE TABLE T1 (
  a INTEGER,
  b TEXT
);
CREATE TABLE [T2] (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-x'a5bde8b79800ca09733763a1b0','a'),(json_remove(x'67a21e45', '$.key'),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
PRAGMA ignore_check_constraints = OFF;
.separator >_<
ATTACH DATABASE ':memory:' AS aux85;
CREATE TABLE T (
  a INTEGER,
  b REAL
);
INSERT INTO T VALUES (json_extract(cos(degrees(1)), '$'),1.5), (2,-7.25), (3,0.0);
SELECT a,b FROM T WHERE a >= 2 ORDER BY b;
INSERT INTO T SELECT * FROM T;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux85;
SELECT a, (SELECT MIN(a) FROM T) AS min_val FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_7724 BEFORE UPDATE OF b ON T BEGIN SELECT RAISE(ABORT, 'abort'); END;
ALTER TABLE T ADD COLUMN extra_7952 BLOB COLLATE NOCASE;
SELECT * FROM T;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_595	AS SELECT a FROM T;
ANALYZE;
ALTER TABLE T ADD COLUMN extra_198 INT8 DEFAULT '';
CREATE TEMP  VIEW IF NOT EXISTS v_T2_3801 AS SELECT b FROM T2;
DETACH DATABASE aux69;
CREATE TRIGGER IF NOT EXISTS trg_T2_9019 BEFORE INSERT ON T2 BEGIN SELECT RAISE(FAIL, 'no'); END;
PRAGMA mmap_size = 50000000;
CREATE TRIGGER IF NOT EXISTS trg_T1_1381 BEFORE UPDATE ON T1 BEGIN SELECT RAISE(IGNORE); END;
VACUUM;
SELECT * FROM T2 WHERE (b) IN (SELECT b FROM T2);
SELECT STRING_AGG(b, '|') FROM T1;
ALTER TABLE T ADD COLUMN extra_7844 CHARACTER(20) DEFAULT 0;
REINDEX;
INSERT INTO T1 VALUES (NULL, NULL);
ALTER TABLE T ADD COLUMN extra_2440 ANY NOT NULL DEFAULT 0;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b) FILTER (WHERE b > 0 OR b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T;
ALTER TABLE T1 ADD COLUMN extra_1128 NATIVE CHARACTER(70)NVARCHAR(100) DEFAULT NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T1_6535 AS SELECT b FROM T1;
UPDATE T SET b = b + 1 WHERE rowid = 1 RETURNING *;
SELECT * FROM T;
SELECT LAG(b, 1, NULL) OVER (PARTITION BY b ORDER BY b ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING EXCLUDE CURRENT ROW) FROM T;
WITH cte AS (SELECT b, COUNT(*) AS cnt FROM T GROUP BY b) SELECT * FROM cte WHERE cnt > 1;
SELECT * FROM T1;
ALTER TABLE T1 RENAME COLUMN a TO a_r4855;
REINDEX;
ROLLBACK;
DROP INDEX IF EXISTS T1;
PRAGMA full_column_names = FALSE;
SELECT * FROM T1 WHERE b IN (SELECT b FROM T1 LIMIT 1);
UPDATE T SET b = NULL WHERE 1;
```

## Actual output

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

```
-maxsize 5
```

