Files
ast-project/part1/results/1/bug_6515a83e-b322-415d-b021-f3f9492a95d8_logic.md
T
2026-06-24 13:47:14 +02:00

44 lines
670 B
Markdown

## 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 REAL
);
INSERT INTO T VALUES ('a',100.0), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
INSERT INTO T DEFAULT VALUES;
ANALYZE T;
UPDATE T SET a = 'x' WHERE rowid = 1 RETURNING *;
```
## Actual output
```sql
c|Inf|100.0|1
a|100.0|-200.5|1
b|-200.5||2
x|100
```
## Expectation
```sql
c|Inf|100.0|1
a|100.0|-200.5|1
b|-200.5||2
x|100.0
```
## Flag
```
```