Skip to content

Commit 38472d6

Browse files
committed
fix
1 parent 006ccb0 commit 38472d6

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
---
22
source: web/book/tests/snapshot.rs
3-
expression: "prql target:sql.duckdb\n\nfrom artists\nsort artist_id\ntake 42\n"
3+
expression: "from artists\nsort {artist_id != null, artist_id} # nulls first\n"
44
---
5+
WITH table_1 AS (
6+
SELECT
7+
*,
8+
artist_id IS NOT NULL AS _expr_0
9+
FROM
10+
artists
11+
)
512
SELECT
613
*
714
FROM
8-
artists
15+
table_1 AS table_0
916
ORDER BY
10-
artist_id
11-
LIMIT
12-
42
17+
_expr_0 NULLS LAST,
18+
artist_id NULLS LAST
1319

0 commit comments

Comments
 (0)