Skip to content

Commit b8b6ad0

Browse files
committed
docs: fix LIKE examples in dataframe-api — %alice% → %Alice% (case-sensitive)
SQL LIKE is case-sensitive per standard. The examples showed %alice% which wouldn't match "Alice". Consistent with the sql.mdx fix in 7a740aa.
1 parent 0be7bd2 commit b8b6ad0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/content/docs/dataframe-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `DataFrame` is a lazy query builder. All methods return a new DataFrame (imm
1111
df.filter("age", "gt", 25)
1212
df.filter("status", "eq", "active")
1313
df.filter("id", "in", [1, 2, 3])
14-
df.filter("name", "like", "%alice%")
14+
df.filter("name", "like", "%Alice%")
1515
df.filter("amount", "between", [100, 500])
1616
df.whereNotNull("email")
1717
df.whereNull("deleted_at")
@@ -122,7 +122,7 @@ df.whereIn("status", ["active", "trial"]) // shorthand for in
122122
df.whereNotIn("role", ["banned"]) // shorthand for not_in
123123
df.whereBetween("score", 80, 100) // shorthand for between
124124
df.whereNotBetween("age", 0, 17) // shorthand for not_between
125-
df.whereLike("name", "%alice%") // shorthand for like
125+
df.whereLike("name", "%Alice%") // shorthand for like
126126
df.whereNotLike("email", "%spam%") // shorthand for not_like
127127
df.filterIn("region", subquery) // IN subquery (semi-join)
128128
```

0 commit comments

Comments
 (0)