Skip to content

feat: support spanner full text search#606

Merged
oscarmuhr merged 2 commits intomasterfrom
support-full-text-search
Mar 25, 2026
Merged

feat: support spanner full text search#606
oscarmuhr merged 2 commits intomasterfrom
support-full-text-search

Conversation

@oscarmuhr
Copy link
Copy Markdown
Contributor

@oscarmuhr oscarmuhr commented Mar 24, 2026

  • feat: support spanner full text search
    Adds spanddl support for TOKENLIST columns used for full-text search in spanner and the search indexes that accompanies them.
    https://docs.cloud.google.com/spanner/docs/full-text-search/tokenization
    https://docs.cloud.google.com/spanner/docs/full-text-search/search-indexes
    TOKENLIST columns are not valid in SELECT statements, and instead returns errors. They also have no type definition available to use in code generation, and are for those two reasons excluded from the code generator using a new helper method QueryableColumns.

  • feat: add tokenlist + search index support to descriptor generation
    Adds handling of tokenlist columns to the descriptorcodegen. These columns are only included
    in the top level descriptor of the table, and not in methods that return the full collection of
    column name, column IDs or column expressions since the columsn are not queryable and this would
    be the main usecase for those methods.
    Adds descriptor generation for search indexes. Since these only include TOKENLIST columns,
    the descriptor is limited to exposing the index ID + Name and not helpers for column access.

Adds spanddl support for TOKENLIST columns used for full-text search in spanner
and the search indexes that accompanies them.
https://docs.cloud.google.com/spanner/docs/full-text-search/tokenization
https://docs.cloud.google.com/spanner/docs/full-text-search/search-indexes

TOKENLIST columns are not valid in SELECT statements, and instead returns errors.
They also have no type definition available to use in code generation,
and are for those two reasons excluded from the code generator using a new
helper method QueryableColumns.
@oscarmuhr oscarmuhr force-pushed the support-full-text-search branch from 9a44f47 to c55ccd6 Compare March 24, 2026 08:18
Adds handling of tokenlist columns to the descriptorcodegen. These columns are only included
in the top level descriptor of the table, and not in methods that return the full collection of
column name, column IDs or column expressions since the columsn are not queryable and this would
be the main usecase for those methods.

Adds descriptor generation for search indexes. Since these only include TOKENLIST columns,
the descriptor is limited to exposing the index ID + Name and not helpers for column access.
@oscarmuhr oscarmuhr marked this pull request as ready for review March 24, 2026 12:35
@oscarmuhr oscarmuhr requested review from a team and thall as code owners March 24, 2026 12:35
@oscarmuhr oscarmuhr merged commit 854291c into master Mar 25, 2026
1 check passed
@oscarmuhr oscarmuhr deleted the support-full-text-search branch March 25, 2026 09:21
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