Files
ast-project/part1/results/2/bug_90d8563d-d46d-4e66-a693-55ee209f150f_logic.md
T
2026-06-24 13:47:14 +02:00

60 lines
1.0 KiB
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',-(-('.'))), ('b',-acos(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 VALUES (NULL, NULL);
SELECT * FROM T AS a FULL OUTER JOIN T AS b ON a.rowid = b.rowid;
UPDATE T SET a = CURRENT_TIMESTAMP RETURNING *;
CREATE VIEW IF NOT EXISTS v_T_2199 AS SELECT b FROM T;
INSERT OR ABORT INTO T VALUES ('', 'x');
```
## Actual output
```sql
c|Inf|0.0|1
a|0.0||1
b|||2
a|0.0|a|0.0
b||b|
c|Inf|c|Inf
|||
2026-05-15 11:38:34|0
2026-05-15 11:38:34|
2026-05-15 11:38:34|Inf
2026-05-15 11:38:34|
```
## Expectation
```sql
c|Inf|0.0|1
a|0.0||1
b|||2
a|0.0|a|0.0
b||b|
c|Inf|c|Inf
|||
2026-05-15 11:38:34|0.0
2026-05-15 11:38:34|
2026-05-15 11:38:34|Inf
2026-05-15 11:38:34|
```
## Flag
```
```