Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinecone: Namespace and field remapping support #31373

Merged
merged 33 commits into from
Oct 26, 2023

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Oct 13, 2023

What

Fixes #31550
Fixes #30574

How

This PR updates the CDK which adds field mapping transformations
Screenshot 2023-10-20 at 11 03 17

and also adds namespace support (fixing the existing bug with vectors not being cleaned out correctly if a namespace is set).

Namespaces are now regularly supported - the configuration made on the connection level will be respected in Pinecone, defaulting to no namespace set.

@vercel
Copy link

vercel bot commented Oct 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 26, 2023 1:45pm

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2023

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! 🎉

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@airbyte-oss-build-runner
Copy link
Collaborator

destination-pinecone test report (commit 58b34b92c4) - ❌

⏲️ Total pipeline duration: 20.73s

Step Result
Build destination-pinecone docker image for platform(s) linux/x86_64
Code format checks
Validate metadata for destination-pinecone
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-pinecone test

@airbyte-oss-build-runner
Copy link
Collaborator

destination-pinecone test report (commit 2b0da74820) - ❌

⏲️ Total pipeline duration: 18.09s

Step Result
Build destination-pinecone docker image for platform(s) linux/x86_64
Code format checks
Validate metadata for destination-pinecone
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-pinecone test

@flash1293 flash1293 changed the title Pinecone: Namespace support Pinecone: Namespace and field remapping support Oct 20, 2023
@airbyte-oss-build-runner
Copy link
Collaborator

destination-pinecone test report (commit a3430985a9) - ❌

⏲️ Total pipeline duration: 02mn26s

Step Result
Build destination-pinecone docker image for platform(s) linux/x86_64
Unit tests
Integration tests
Acceptance tests
Code format checks
Validate metadata for destination-pinecone
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-pinecone test

@airbyte-oss-build-runner
Copy link
Collaborator

destination-pinecone test report (commit 4a70c1a950) - ❌

⏲️ Total pipeline duration: 01mn43s

Step Result
Build destination-pinecone docker image for platform(s) linux/x86_64
Unit tests
Integration tests
Acceptance tests
Code format checks
Validate metadata for destination-pinecone
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-pinecone test

@airbyte-oss-build-runner
Copy link
Collaborator

destination-pinecone test report (commit f75b0471e0) - ✅

⏲️ Total pipeline duration: 02mn14s

Step Result
Build destination-pinecone docker image for platform(s) linux/x86_64
Unit tests
Integration tests
Acceptance tests
Code format checks
Validate metadata for destination-pinecone
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-pinecone test

@airbyte-oss-build-runner
Copy link
Collaborator

source-paypal-transaction test report (commit 498abbffb0) - ✅

⏲️ Total pipeline duration: 01mn12s

Step Result
Build source-paypal-transaction docker image for platform(s) linux/x86_64
Acceptance tests
Code format checks
Validate metadata for source-paypal-transaction
Connector version semver check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-paypal-transaction test

@airbyte-oss-build-runner
Copy link
Collaborator

destination-pinecone test report (commit 498abbffb0) - ✅

⏲️ Total pipeline duration: 01mn24s

Step Result
Build destination-pinecone docker image for platform(s) linux/x86_64
Unit tests
Integration tests
Acceptance tests
Code format checks
Validate metadata for destination-pinecone
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-pinecone test

@airbyte-oss-build-runner
Copy link
Collaborator

source-paypal-transaction test report (commit ee14f88841) - ✅

⏲️ Total pipeline duration: 01mn15s

Step Result
Build source-paypal-transaction docker image for platform(s) linux/x86_64
Acceptance tests
Check our base image is used
Code format checks
Validate metadata for source-paypal-transaction
Connector version semver check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-paypal-transaction test

@airbyte-oss-build-runner
Copy link
Collaborator

destination-pinecone test report (commit ee14f88841) - ✅

⏲️ Total pipeline duration: 01mn37s

Step Result
Build destination-pinecone docker image for platform(s) linux/x86_64
Unit tests
Integration tests
Acceptance tests
Check our base image is used
Code format checks
Validate metadata for destination-pinecone
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-pinecone test

@@ -175,7 +184,7 @@ def generate_catalog():
def test_pinecone_pre_sync(mock_describe_index):
indexer = create_pinecone_indexer()
indexer.pre_sync(generate_catalog())
indexer.pinecone_index.delete.assert_called_with(filter={"_ab_stream": "example_stream2"})
indexer.pinecone_index.delete.assert_called_with(filter={"_ab_stream": "ns2_example_stream2"}, namespace="ns2")
Copy link
Collaborator

@aaronsteers aaronsteers Oct 23, 2023

Choose a reason for hiding this comment

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

Just to double check - do you think think we should list this as a breaking change?

Namely, does the namespace come through from the source by default, and would this change the destination index name? Or is the namespace purely opt-in, so we can assume that wherever it was not handled previously, this is 'fixing' the prior omitted prefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not a breaking change because the namespace is opt-in (can be configured on the connection level) - it changes here because I added a namespace to the test.

Copy link
Collaborator

@aaronsteers aaronsteers left a comment

Choose a reason for hiding this comment

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

Looks good. 👍

One question added inline.

@aaronsteers
Copy link
Collaborator

aaronsteers commented Oct 24, 2023

@flash1293 - Just to confirm one more thing. This PR is labeled as adding field remapping support but the diff only shows the addition of spec fields in the integration tests folder. The diff doesn't surface any other code for the field remapping.

Do I understand correctly the field rename/remapping feature landed in a prior PR, or is there another reason I'm not seeing those changes?

@flash1293
Copy link
Contributor Author

Do I understand correctly the field rename/remapping feature landed in a prior PR, or is there another reason I'm not seeing those changes

The changes are encapsulated in the CDK, so they get added via the update https://github.com/airbytehq/airbyte/pull/31373/files#diff-637a815d4e2b5d268bd8b9307fd775a0be36aff5a3b4f806bec36b0d672d694aL9 (you are seeing the spec changes because there is an integration test that validates the spec emitted from the connector)

@flash1293 flash1293 enabled auto-merge (squash) October 26, 2023 13:41
@airbyte-oss-build-runner
Copy link
Collaborator

destination-pinecone test report (commit 412216d146) - ✅

⏲️ Total pipeline duration: 02mn20s

Step Result
Build destination-pinecone docker image for platform(s) linux/amd64
Unit tests
Integration tests
Acceptance tests
Check our base image is used
Code format checks
Validate metadata for destination-pinecone
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-pinecone test

@flash1293 flash1293 merged commit bee749b into master Oct 26, 2023
16 checks passed
@flash1293 flash1293 deleted the flash1293/pinecone-namespace-support-2 branch October 26, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pinecone does not use correct stream identifier Pinecone destination: Allow namespace configuration
5 participants