I use Redash’s Query Results datasource (which is really neat), but the sqlite that my Redash is using doesn’t support sqrt and related math functions. It seems that support for that was added in sqlite 3.35. My sqlite came from the V8 AMIs upgraded to V10.
Is it possible to upgrade sqlite in place in my self-hosted Redash?
Yes you can do this by writing your own Dockerfile to extend our image and upgrade the version.
Or if you’re feeling extra charitable, you can open a PR against getredash/redash that we can merge into master so everyone can benefit after we rebuild the cloud images
There’s no reference to sqlite3 or libsqlite3 in getredash/redash/blob/master/Dockerfile . Does it get pulled in as a dep of something else? Should it be installed explicitly?
No other packages refer to minimum version numbers in the Dockerfile, and it’s not obvious to me how and where to specify a minimum version, or even if it’s good policy.
I believe sqlite is included as part of the Python3 installation, which is taken from our base image (currently python:3.7-slim-buster). However you can explicitly install a specific version of sqlite as needed.
So (I think) whenever Redash changes its base image to Bookworm or later, everyone will get the new fancy sqlite with no other changes to the Dockerfile.