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

bm25_create fails on an empty table #23

Open
amin3141 opened this issue Nov 1, 2024 · 0 comments
Open

bm25_create fails on an empty table #23

amin3141 opened this issue Nov 1, 2024 · 0 comments

Comments

@amin3141
Copy link

amin3141 commented Nov 1, 2024

The bm25_create function seems to expect that the underlying table has some data in it. Is the expectation that this function should be run after all data has been loaded into the table?

ERROR:  Failing row contains (x, description, x_description_bm255, x_description_bm255_index, 0.75, 1.2, hf, google-bert/bert-base-uncased, null, 0, 0).null value in column "words" of relation "pg_bm25" violates not-null constraint 

ERROR:  null value in column "words" of relation "pg_bm25" violates not-null constraint
SQL state: 23502
Detail: Failing row contains (x, description, x_description_bm255, x_description_bm255_index, 0.75, 1.2, hf, google-bert/bert-base-uncased, null, 0, 0).
Context: SQL statement "INSERT INTO bm_catalog.pg_bm25
    VALUES (tab, col, mat::regclass, (mat::text || '_index')::regclass, b, k1, tokenizer, model, ins_words, ins_docs, ins_dims)"
PL/pgSQL function bm25_create(regclass,text,text,text,text,real,real) line 44 at SQL statement
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

No branches or pull requests

1 participant