You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/10 09:19:21 UTC

[GitHub] [airflow] ashb commented on a change in pull request #22112: Add map_index to XCom model and interface

ashb commented on a change in pull request #22112:
URL: https://github.com/apache/airflow/pull/22112#discussion_r823505404



##########
File path: airflow/migrations/versions/c306b5b5ae4a_switch_xcom_table_to_use_run_id.py
##########
@@ -132,6 +134,10 @@ def downgrade():
     op.create_table("__airflow_tmp_xcom", *_get_old_xcom_columns())
 
     xcom = Table("xcom", metadata, *_get_new_xcom_columns())
+
+    # Remoe XCom entries from mapped tis.
+    delete(xcom).where(xcom.c.map_index != -1)

Review comment:
       This doesn't go via alembic's op which means it doesn't get captured in to `--sql` mode. 




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org