Skip to content

fix(eql): drop ignored query_json cast and correct eql-bindings wire docs - #1548

Draft
cipherstash-agent wants to merge 2 commits into
mainfrom
claude/project-thread-7am8g0
Draft

cipherstash-agent wants to merge 2 commits into
mainfrom
claude/project-thread-7am8g0

Conversation

@cipherstash-agent

Copy link
Copy Markdown
Contributor

Requested by CipherStash · project thread

Summary

Fixes CIP-5157 (E4, E7). Removes a CREATE CAST PostgreSQL always ignored, and corrects stale wire-format docs in eql-bindings.

Changes

  • src/v3/json/types.sql: drop CREATE CAST (public.eql_v3_json_search AS eql_v3.query_json). PostgreSQL ignores casts from a domain (warning on every install), so doc::eql_v3.query_json never called to_ste_vec_query and failed the query_json CHECK. A note explains this in place of the cast.
  • tests/sqlx/snapshots/eql_v3_public_surface.txt: remove the cast line. It was listed only because the catalog row exists, though it never took effect.
  • docs/reference/json-support.md: state that eql_v3.to_ste_vec_query(col) is the only document-to-needle conversion.
  • eql-bindings/src/v3/mod.rs: op backs _ord / _ord_ope, ob only _ord_ore; text_ord / text_search carry hm + op. Matches eql-domains and the generated structs.
  • Changeset for @cipherstash/eql.

Verification

  • Checked the term sets in eql-domains/src/lib.rs and the generated TextOrd/TextSearch docs (hm op).
  • No skill describes the cast as working; nothing else in skills/ needed changes.
  • Not run: the SQLx suite (needs Docker/Postgres). CI covers the snapshot change.

Related

CIP-5157. The committed SQL bundle under packages/eql/packages/eql/sql is regenerated by the release version hook, so it still contains the cast until the next EQL release.

Review notes

Removing the cast is behaviour-neutral at runtime, since it was ignored. Only the surface snapshot and install warning change.


Generated by Claude Code

…docs

PostgreSQL ignores casts whose source type is a domain, so the
json_search -> query_json cast never ran to_ste_vec_query. Remove it and
document the function as the only conversion. Fix the v3 module docs:
op backs _ord/_ord_ope, ob only _ord_ore.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Jmn7qx6btMrkTQ6rQRjDz
@cipherstash-agent cipherstash-agent self-assigned this Nov 6, 2026
@changeset-bot

changeset-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 19b8ea1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@cipherstash/eql Patch
stash Patch
@cipherstash/stack-prisma Patch
@cipherstash/basic-example Patch
@cipherstash/e2e Patch
@cipherstash/prisma-example Patch
@cipherstash/stack-drizzle Patch
@cipherstash/stack-supabase Patch
@cipherstash/stack Patch
@cipherstash/wizard Patch
@cipherstash/bench Patch
@cipherstash/test-kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

This branch has not been deployed

No deployments
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.

2 participants