-
Notifications
You must be signed in to change notification settings - Fork 218
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
[Bug]: SQLite: Error: Unknown Error #2836
Comments
Can you also confirm what columns and column types are in your sqlite file in the |
@archiewood This is the query that. creates the articles table: CREATE TABLE IF NOT EXISTS articles (
id TEXT PRIMARY KEY,
title TEXT NOT NULL,
published TEXT NOT NULL,
abstract TEXT NOT NULL,
conclusion TEXT,
link TEXT UNIQUE NOT NULL,
input_token INTEGER,
output_token INTEGER,
created_at TEXT DEFAULT CURRENT_TIMESTAMP,
updated_at TEXT DEFAULT CURRENT_TIMESTAMP
); There is no articles-database table. But this is the structure of the folder:
|
I think this is the expected behaviour regarding the loading of the files. We dont need to read the contents of the SQLite file's text, we just need to query it. However the error is happening when running the query articles.sql, and the error message that is given back is not helpful! |
@archiewood I see. Indeed, the 32MB log probably comes from trying to load the But indeed my biggest problem is the articles.sql file. Please let me know what I can do to help provide more relevant data! I'm very interested in solving this problem |
I assume this same query runs successfully against sqlite in some other client? |
@archiewood Yes it does
|
@archiewood Seems like i managed to debug the solution: Please modify as you see fit! Thank you! |
Hi @luanmuniz - thanks for the PR. We'll look at this next week. Next release is scheduled for Thursday 28th. If you want to get unblocked faster, you could release your version as a community plugin. https://docs.evidence.dev/plugins/create-source-plugin/ Since you have written all the code already i imagine it will just be a bit of copy pasting. you can then install your plugin in evidence and drive on! |
Should be decent instructions here in the template: https://github.com/evidence-dev/datasource-template if you have any questions or issues with the template let me know! |
Describe the bug
I'm trying to load an SQLite database that's around 100MB.
Seems like I'm hitting this line when trying to access a table in the db that's bigger than 32MB:
https://github.com/evidence-dev/evidence/blob/main/packages/lib/sdk/src/plugins/datasources/wrapSimpleConnector.js#L52
By reading the code, I can't see a workaround for this.
Obs: All
.sql
files consume the same database fileSteps to Reproduce
npm run sources
Logs
System Info
Severity
blocking all usage of Evidence
Additional Information, or Workarounds
This is my connection.yaml file:
This is the
articles.sql
The text was updated successfully, but these errors were encountered: