## 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 REAL,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES ('a','b',1.0), ('a','c',-1.0), ('b','d',0.0);
SELECT
COALESCE(a,'e') AS d,
COALESCE(b,'f') AS e,
SUM(c) AS f
FROM T
GROUP BY a,b;
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
ATTACH DATABASE ':memory:' AS aux7;
PRAGMA schema_version;
.progress NULL
.timer format('%s')
PRAGMA /* NTH_VALUE({c}, 1) */ automatic_index = FALSE;
SAVEPOINT sp9691;
PRAGMA cell_size_check = YES;
SELECT json_pretty(atan2((ln(json_remove(0)) * 1), 0), '' || ('  '))x0ACB29BM205381;
-- PRAGMA analysis_limit = 50;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT
1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
ROLLBACK TRANSACTION TO SAVEPOINT sp9691;
RELEASE SAVEPOINT sp9691;
VACUUM;
DETACH DATABASE aux7;
DELETE FROM T WHERE 0 RETURNING *;
CREATE TRIGGER IF NOT EXISTS trg_T_2467 AFTER UPDATE ON T FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'rb'); END;
ALTER TABLE t1 RENAME TO t1_r5091;
DROP TRIGGER IF EXISTS T;
```

## Actual output

```sql
a|b|1.0
a|c|-1.0
b|d|0.0
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|1.0
a|c|-1.0
b|d|0.0
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

```

```

