Skip to content

Implement MetadataSchema support for serverless, integrated, and BYOC indexes#70

Open
austin-denoble wants to merge 7 commits intomainfrom
adenoble/serverless-metadata-schema
Open

Implement MetadataSchema support for serverless, integrated, and BYOC indexes#70
austin-denoble wants to merge 7 commits intomainfrom
adenoble/serverless-metadata-schema

Conversation

@austin-denoble
Copy link
Contributor

@austin-denoble austin-denoble commented Feb 25, 2026

Problem

The 2025-10 release of the go-pinecone SDK added support for MetadataSchema for serverless and BYOC indexes. This has not yet been pulled into the terraform provider.

Solution

Implement spec.serverless.schema support for serverless indexes, integrated indexes, and BYOC indexes.

  • Add new models for IndexMetadataSchemaModel and IndexMetadataSchemaFieldModel.
    • New helper functions for converting between terraform and go-pinecone types: NewIndexMetadataSchemaModel and ToMetadataSchema.
  • Add Schema to IndexServerlessSpecModel and IndexBYOCSpecModel.
  • Thread Schema through IndexResource, IndexDataSource, and IndexesDataSource.
  • Update basic serverless acceptance test to validate schema is properly applied.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: (explain here)

Test Plan

CI - unit & acceptance tests

Added new acceptance test step for validating schema is applied to serverless indexes on create.


Note

Medium Risk
Adds a new schema block that is sent on index creation for serverless/BYOC, which changes API payloads and state for those index types. Risk is limited because the field is optional and replacement-only, but incorrect mapping could cause create failures or unexpected diffs.

Overview
Adds a new optional spec.serverless.schema / spec.byoc.schema block (map of metadata fields with filterable) and plumbs it through the provider model so it is read from the API and sent in CreateServerlessIndex, CreateIndexForModel, and CreateBYOCIndex requests.

Updates both pinecone_index / pinecone_indexes data sources and the pinecone_index resource schemas (resource marked RequiresReplace when schema changes), refreshes generated docs, and extends acceptance tests to validate schema fields are applied on serverless index creation.

Written by Cursor Bugbot for commit c592159. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable autofix in the Cursor dashboard.

@austin-denoble austin-denoble changed the title Implement MetadataSchema support for serverless and BYOC indexes Implement MetadataSchema support for serverless, integrated, and BYOC indexes Feb 26, 2026
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.

1 participant