We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems sqla.py module is using old SqlAlchemy select interface in:
luigi/luigi/contrib/sqla.py
Line 242 in 25d179b
which seems to be incompatible with SqlAlchemy 2.x according to: https://docs.sqlalchemy.org/en/20/changelog/migration_14.html#change-5284
Python version: 3.10.11
3.10.11
Package versions:
luigi==3.5.0 SQLAlchemy==2.0.27
Snippet to reproduce:
from luigi import build from luigi.contrib.sqla import CopyToTable from sqlalchemy import create_engine engine = create_engine('sqlite:///test.db') class TaskCopy(CopyToTable): connection_string = 'sqlite:///test.db' table = 'my_table' if __name__ == '__main__': build([TaskCopy()], local_scheduler=True)
Error:
sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [Table('table_updates', MetaData(), Column('update_id', String(length=128), table=<table_updates>, primary_key=True, nullable=False), Column('target_table', String(length=128), table=<table_updates>), Column('inserted', DateTime(), table=<table_updates>, default=ScalarElementColumnDefault(datetime.datetime(2024, 2, 16, 11, 39, 6, 28774))), schema=None)]. Did you mean to say select(Table('table_updates', MetaData(), Column('update_id', String(length=128), table=<table_updates>, primary_key=True, nullable=False), Column('target_table', String(length=128), table=<table_updates>), Column('inserted', DateTime(), table=<table_updates>, default=ScalarElementColumnDefault(datetime.datetime(2024, 2, 16, 11, 39, 6, 28774))), schema=None))?
The text was updated successfully, but these errors were encountered:
What version of sqlalchemy should be installed for Luigi 3.5?
Sorry, something went wrong.
No branches or pull requests
Description
It seems sqla.py module is using old SqlAlchemy select interface in:
luigi/luigi/contrib/sqla.py
Line 242 in 25d179b
which seems to be incompatible with SqlAlchemy 2.x according to:
https://docs.sqlalchemy.org/en/20/changelog/migration_14.html#change-5284
Details
Python version:
3.10.11
Package versions:
Snippet to reproduce:
Error:
The text was updated successfully, but these errors were encountered: