Skip to content

fulltext: support CQL any operator; quote args#36

Merged
adamdickmeiss merged 4 commits intomainfrom
fulltext-support-any
Feb 19, 2026
Merged

fulltext: support CQL any operator; quote args#36
adamdickmeiss merged 4 commits intomainfrom
fulltext-support-any

Conversation

@adamdickmeiss
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for the CQL any relation in Postgres full-text search generation, and changes full-text term handling to build explicit to_tsquery(...) expressions with quoted lexemes (so query operators are not interpreted from user input).

Changes:

  • Replace prior fulltext query generation with to_tsquery(...) and construct tsquery strings using <->, &, and | operators depending on relation.
  • Add support for ANY relation in fulltext mode.
  • Update parsing and pgx integration tests to validate the new tsquery argument format and ANY behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
pgcql/pg_field_string.go Implements to_tsquery-based fulltext generation and adds ANY relation handling.
pgcql/pgcql_test.go Updates parsing expectations for fulltext SQL/args and adds coverage for full any "a b".
pgcql/pgx_test.go Adds runtime integration coverage for ANY fulltext queries against Postgres.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adamdickmeiss adamdickmeiss merged commit 71358ff into main Feb 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants