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

Execution error (ExceptionInfo) at cozo-clj.core/mk-err (core.clj:42). ; (err) parser::pest #1

Open
usametov opened this issue Jul 23, 2023 · 1 comment

Comments

@usametov
Copy link

usametov commented Jul 23, 2023

I am getting this error:

The query parser has encountered unexpected input / end of input at 29..29
; (err) ╭────
; (err) 1 │ :create news_record {msghash=>label, score, text, create-time, update-time, txt_vec:<F32; 1536> }

Context:
I am trying to insert relation with key:

(def create-news-relation ":create news_record {msghash=>label, score, text, create-time, update-time, txt_vec:<F32; 1536> }")

this line fails:

(db/query newsdb create-news-relation)

UPD
I tried this in cozodb REPL and I got the same error.

@usametov
Copy link
Author

It works if I remove 'minus' in column names.

This query works:
:create news_record { id => msghash, label, score, text, create_time, update_time, txt_vec:<F32; 1536>}

Please improve error messaging: dashes in column names are not allowed.

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