The GitHub Actions job "Tests" on airflow.git has succeeded.
Run started by GitHub user uranusjr (triggered by uranusjr).

Head commit for run:
aa2972abf518dea217a520bd827531fdf79b1173 / Tzu-ping Chung <[email protected]>
Add custom pickling hooks to LazyXComAccess

Previously the implementation pickles a SQLAlchemy Session inside the
object, but this causes some weird object identity issues. According to
the best information source known to human, i.e. random people on the
Internet, this is caused by subtle import statement discrepencies, and
we should find and fix the offending import statements.[1] But I hope
we can agree it’s not practical to review all Session imports in the
Airflow code base.

As an alternative, I tried to fix this by not attempting to pickle any
SQLAlchemy objects at all. Unfortunately SQLAlchemy does not really
provide a good way to extract information from a Query object (most
things are private), so the most barely reasonable way to approach this
is to serialize the query into a SQL string, and rebuild a different
query from that string to unpickle. Yet another unfortunate consequence
of this is it's impossible to use count() against such a Query (I don’t
know why, SQLAlchemy just crashes with a very unhelpful exception), so
we calculate that part eagerly.

[1]: https://stackoverflow.com/questions/1412787

Report URL: https://github.com/apache/airflow/actions/runs/3702008284

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to