hussein-awala commented on code in PR #75272:
URL: https://github.com/apache/airflow/pull/75272#discussion_r4410477139


##########
providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/msgraph.py:
##########
@@ -332,16 +352,42 @@ def push_page(
         """
         cursor = self.get_cursor(task_state_store)
         page = cursor["pages"] if cursor else 0
-        task_state_store.set(f"{PAGE_KEY_PREFIX}{page}", result)
+        task_state_store.set(f"{_PAGE_KEY_PREFIX}{page}", {"result": result})

Review Comment:
   This check can mistake a legacy page for the new wrapper. Previously, 
result_processor output was stored directly, so a valid stored page could be 
`{"result": "value", "metadata": "keep"}`. After an upgrade, it passes this 
check and is unwrapped to `"value"`, silently discarding the original structure 
and metadata instead of restarting pagination.
   
   Could we distinguish the formats with an explicit version in the cursor or a 
new storage namespace? Please also add a regression case for a legacy 
dictionary containing `"result"`; the current upgrade test only covers a list.



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