dstandish commented on PR #42928:
URL: https://github.com/apache/airflow/pull/42928#issuecomment-2407475914
> This PR brings back the old behaviour of using different sessions for
writing/deleting RTIFs
I think has continued to use the same session. Pretty sure that the
difference is pre-AIP-44 we committed in between.
Here's a way to explore:
```
session.execute("create table parent(id int);");
session.commit()
session.execute("insert into parent (id) values (1),(2),(3);")
with create_session() as session2:
print(session2.execute("select * from parent").all())
assert session2 is session
```
Why this matters?
I feel like it's better to commit explicitly so that we _see_ it. Rather
than having it done invisibly by the decorator.
--
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]