-
Notifications
You must be signed in to change notification settings - Fork 63
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
SQLError - too many SQL variables on table with 1000 columns #466
Comments
If we recompile sqlite3 ourselves, we can increase this up to 32767 by defining SQLITE_MAX_COLUMN at compile-time. But I'm not sure bayeslite is ready to handle even 2000 variables at the moment! |
I have been bitten by this too - having only 1680 columns. I ran the script that Leo attached above and it also indicated max columns to be 2000 (probcomp3). I also searched the bayeslite repo for code that sets the SQLITE_MAX_COLUMN parameter - but I didn't find anything. |
same is true 1500 columns. |
I'm a little surprised you see a problem with 2000 variables -- though perhaps there is some intermediate table that has 2n columns or something. Can you get a SQL trace to find the query that caused sqlite3 to choke? Something like:
|
hey i got the same error as @leocasarsa
Actually i tried to reproduce it and it is there so if anyone can suggest the changes that would be nice. |
Ran on casarsa@probcomp2
venv:
~/venv/20160706-july
Max sqlite columns on the machine: 2000 with this script
Script
bayeslite_bug.py
:The text was updated successfully, but these errors were encountered: