Skip to content

fix(lapis): render empty Or and And as valid SaneQL - #1925

Merged
fengelniederhammer merged 1 commit into
mainfrom
fix-empty-and-or
Oct 21, 2026
Merged

fengelniederhammer merged 1 commit into
mainfrom
fix-empty-and-or

Conversation

@taepper

@taepper taepper commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

resolves #1924

A filter by an empty list, e.g. {"accession": []}, maps to an Or without children, which rendered as filter(()) and failed with a parse error. Render an empty Or as false and an empty And as true.

PR Checklist

  • All necessary documentation has been adapted.
  • All necessary changes are explained in the llms.txt.
  • The implemented feature is covered by an appropriate test.

@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lapis Ready Ready Preview Oct 21, 2026 12:32pm UTC

Request Review

A filter by an empty list, e.g. `{"accession": []}`, maps to an Or without
children, which rendered as `filter(())` and failed with a parse error.
Render an empty Or as `false` and an empty And as `true`.
@fengelniederhammer
fengelniederhammer merged commit 7b15acb into main Oct 21, 2026
8 checks passed
@fengelniederhammer
fengelniederhammer deleted the fix-empty-and-or branch October 21, 2026 13:07
fengelniederhammer pushed a commit that referenced this pull request Oct 22, 2026
🤖 I have created a release *beep* *boop*
---


## [0.9.1](v0.9.0...v0.9.1)
(2026-10-21)


### Bug Fixes

* **lapis:** `isNull()` advanced queries now also produce `isNull` RhyDB
queries ([#1918](#1918))
([76beb2d](76beb2d))
* **lapis:** handle large arrow strings from RhyDB
([#1919](#1919))
([ba73ea3](ba73ea3))
* **lapis:** render empty Or and And as valid SaneQL
([#1925](#1925))
([7b15acb](7b15acb))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — 8ee5d59f Deployed Oct 21, 2026 by vercel[bot]
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.

Empty list filter (e.g. {"accession": []}) produces invalid filter(())

2 participants