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

Runtime error: out of memory (7) for any selection using vsv #108

Closed
astral-l opened this issue Jan 22, 2024 · 1 comment
Closed

Runtime error: out of memory (7) for any selection using vsv #108

astral-l opened this issue Jan 22, 2024 · 1 comment

Comments

@astral-l
Copy link

When using the vsv extension, creating a table from a csv file and attempting to select any data from it fails immediately in an out-of-memory error, regardless of the size of the query.

SQLite version: 3.45.0

To reproduce:

  • in example.csv:
id,data
1,foo
2,bar
3,baz
  • on sqlite command line:
> SELECT load_extension('/path/to/vsv');

> CREATE VIRTUAL TABLE example USING vsv(
    filename=example.csv,
    schema="CREATE TABLE example(id INTEGER, data TEXT)"
);

> SELECT * FROM example;
@nalgeon
Copy link
Owner

nalgeon commented Jan 22, 2024

Thanks for providing all the details! The columns parameter is required:

create virtual table example using vsv(
    filename=example.csv,
    schema="create table example(id integer, data text)",
    columns=2,
);

I'll fix the doc.

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

2 participants