question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Document Meltano 2.2.0 requires SQLite >= 3.25.1

See original GitHub issue

As kindly reported by @pdebelak in https://github.com/meltano/meltano/pull/6323#issuecomment-1181955922, the ALTER TABLE table RENAME COLUMN oldname TO newname syntax was introduced to SQLite only in version 3.25.1, and so systems with a default version older than that may fail to run the migration and use Meltano.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
edgarrmondragoncommented, Sep 29, 2022

A better error message or pre-run check for correct sqlite version would be really helpful

This seems like a quick solution by leveraging sqlalchemy.engine.Dialect.server_version_info. We could check the version tuple and fail with a clear message for SQLite<3.25.1. cc @aaronsteers @tayloramurphy

I still think that Meltano should be shipped with the version of SQLite it expects to work with fine out of the box. Adding a dependency on https://pypi.org/project/pysqlite3-binary might be worth exploring, although it’s lacking wheels for macOS and Windows at the moment.

2reactions
arodercommented, Sep 14, 2022

On amazon linux EC2 instance with meltano 2.6.0, I installed pip install pysqlite3 and get version 3.7.* from sqlite3 --version

I followed these instructions to upgrade sqlite version https://developpaper.com/update-sqlite-version-under-centos/

So this confirms everyone else’s findings and hopefully sheds a little light on a path forward

Read more comments on GitHub >

github_iconTop Results From Across the Web

target-sqlite - Meltano Hub
The target-sqlite loader sends data into SQLite after it was pulled from a ... If you know the capabilities required by this plugin,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found