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

Error: We haven't implemented a converter for tsvector #414

Open
seantalbot-jisc opened this issue Feb 14, 2023 · 0 comments
Open

Error: We haven't implemented a converter for tsvector #414

seantalbot-jisc opened this issue Feb 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@seantalbot-jisc
Copy link

seantalbot-jisc commented Feb 14, 2023

Describe the bug
Synth does not support postgres tsvector.

To Reproduce
Steps to reproduce the behavior:

  1. Schema (if applicable)
CREATE TABLE title_version (
    id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
    field_value VARCHAR(550) NOT NULL
   -- etc
);

ALTER TABLE
    title_version
ADD COLUMN
    field_value_ts_vector_english tsvector GENERATED ALWAYS AS (
        to_tsvector('english', lower(coalesce(field_value, '')))
    ) STORED;

When attempting to use synth to import the schema:

synth import --from <postgres-uri> --schema public testing
  1. See error
Error: We haven't implemented a converter for tsvector

Expected behavior
Synth should support tsvector when importing an existing postgres schema.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: WSL2 Ubuntu on Windows 10
  • Version: synth 0.6.9

Additional context
Add any other context about the problem here.

@seantalbot-jisc seantalbot-jisc added the bug Something isn't working label Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant