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

Add support for external extensions (#2088) #2109

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

MuhammadTahaNaveed
Copy link
Member

  • This commit allows the functions from external extensions to be called from the Cypher queries, provided that typecast is available for args and return type of that function. The extension should be installed and the function should be in the search path.

  • Added cypher typecast for pgvector datatypes, its not a direct cast. It casts agtype to text and then text to vector.

  • Added regression tests for pg_trgm, fuzzystrmatch and pgvector extensions. pg_trgm is another extension that is used for fuzzy string matching. These regression test are extra tests that need to be explicitly added to the regression suite. Following command can be used to do so: make installcheck EXTRA_TESTS="pg_trgm pgvector fuzzystrmatch"

  • Updated CI to run the extra tests for the extensions.

- This commit allows the functions from external extensions to be
  called from the Cypher queries, provided that typecast is available
  for args and return type of that function. The extension should be
  installed and the function should be in the search path.

- Added cypher typecast for pgvector datatypes, its not a direct cast.
  It casts agtype to text and then text to vector.

- Added regression tests for pg_trgm, fuzzystrmatch and pgvector
  extensions. pg_trgm is another extension that is used for fuzzy
  string matching. These regression test are extra tests that need to
  be explicitly added to the regression suite.
  Following command can be used to do so:
  make installcheck EXTRA_TESTS="pg_trgm pgvector fuzzystrmatch"

- Updated CI to run the extra tests for the extensions.
@github-actions github-actions bot added PG16 override-stale To keep issues/PRs untouched from stale action labels Sep 12, 2024
@jrgemignani jrgemignani merged commit 0f09dd2 into apache:PG16 Sep 13, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
override-stale To keep issues/PRs untouched from stale action PG16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants