jedcunningham commented on code in PR #23434:
URL: https://github.com/apache/airflow/pull/23434#discussion_r864007259


##########
airflow/models/mappedoperator.py:
##########
@@ -795,7 +795,10 @@ def parse_time_mapped_ti_count(self) -> Optional[int]:
             if not isinstance(value, MAPPABLE_LITERAL_TYPES):
                 # None literal type encountered, so give up
                 return None
-            total += len(value)
+            if total == 0:
+                total = len(value)
+            else:
+                total *= len(value)

Review Comment:
   I tried that, and that's how I found the `.expand()` bug. If we can assume 
we will always have at least _something_ with a length, we could, but this felt 
more defensive.



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

Reply via email to