guan404ming commented on issue #60760: URL: https://github.com/apache/airflow/issues/60760#issuecomment-3921756905
I investigated this on the v3-1-test branch and the code in settings.py already has guards via is_sqlalchemy_v1() that select the correct engine args based on the installed SQLAlchemy version: - SQLAlchemy 1.x: uses executemany_values_page_size + encoding - SQLAlchemy 2.x: uses insertmanyvalues_page_size, no encoding The error you're seeing (executemany_values_page_size and encoding passed to SA2's create_engine) should not happen with these guards in place. Could you share: 1. The exact SQLAlchemy version installed (pip show sqlalchemy) 2. Whether you installed any packages after the initial pip resolution that might have upgraded/downgraded SQLAlchemy 3. The output of python -c "from airflow.utils.sqlalchemy import is_sqlalchemy_v1; print(is_sqlalchemy_v1())" This would help us understand how the SA1-only args ended up being passed to SA2's `create_engine` in your environment. Thanks! Note: on main, all SA1 compat code has been removed in #61408. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
