So, I'm running a cluster on Databricks. when I try to query an sqlite file on it like this:
import sqlite3
conn = sqlite3.connect("/dbfs/FileStore/testing.sqlite")
cur = conn.cursor()
cur.execute('''SELECT * FROM ZACCELEROMETER''')
I get this error:
OperationalError Traceback (most recent call last)
<command-163> in <module>
----> 1 cur.execute('''SELECT * FROM ZACCELEROMETER''')
OperationalError: disk I/O error
It's worth mentioning that I can query this exact file locally on Jupiter. Another thing that's unusual is on databricks, I tried to open an example SQLite file I found on the internet called "Chinook_Sqlite.SQLite", it works fine with no error, unlike the first file. I'm thinking it might have to be something with the encoding of the first SQLite file.
Any suggestion would be greatly appreciated! Please let me know if something is unclear.
Thanks!