Skip to content

Update from code changes: Expr filters in Python update - #346

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/bb377c71
Open

Update from code changes: Expr filters in Python update#346
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/bb377c71

Conversation

@mintlify

@mintlify mintlify Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Python Table.update (sync, async, and remote) now accepts type-safe expression filters built with col and lit from lancedb.expr, in addition to raw SQL strings. Expressions encode plain Python values as SQL literals, so apostrophes and numeric-looking text no longer need manual escaping. This was the last Python write path that required a raw SQL predicate; query and delete filters already accepted expressions.

lancedb/lancedb#3876

Changes

  • Added an "Update rows with a type-safe filter" section to the update/modify data page with a tested Python snippet.
  • Reworded the update method descriptions so they no longer imply that only SQL string filters are accepted.
  • Added the snippet test to the Python test suite and regenerated the MDX snippets.

@mintlify

mintlify Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lancedb-bcbb4faf 🟢 Ready View Preview Aug 27, 2026, 12:41 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants