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 2021/09/15 16:41:14 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #18274: Make `XCom.get_one` return full, not abbreviated values

uranusjr commented on a change in pull request #18274:
URL: https://github.com/apache/airflow/pull/18274#discussion_r709363315



##########
File path: airflow/models/xcom.py
##########
@@ -182,6 +189,9 @@ def get_many(
 
         ``run_id`` and ``execution_date`` are mutually exclusive.
 
+        This function returns an SQLAlchemy query of full XCom objects. If you just want one stored value then
+        use :meth:`get_one`.

Review comment:
       Perhaps also mention `with_entities()` for people who want a list of values? (If that’s a meaningful use case.)




-- 
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