seanmuth commented on issue #69980:
URL: https://github.com/apache/airflow/issues/69980#issuecomment-4995719247

   PR #69985 opened.
   
   Per discussion with @dstandish, the fix **hotfixes migration `0094` in 
place** so it correctly extended-serializes nested callback kwargs on future 
upgrades (both the Postgres CTE and the MySQL/SQLite paths, with the downgrade 
paths decoding back to raw to preserve the round-trip).
   
   Repairing **already-corrupted** `callback.data` rows (deployments that have 
already run `0094` with nested-dict callback kwargs) is intentionally left to 
end-users / managed services rather than shipping a data-repair migration. 
Affected rows can be found with:
   
   ```sql
   SELECT count(*) FROM callback c
   WHERE jsonb_path_exists(c.data::jsonb, '$.**.__var.* ? (@.type()=="object" 
&& !exists(@.__type))');
   ```
   
   and re-encoded so nested dicts are wrapped as `{"__type": "dict", "__var": 
{...}}`.
   
   ---
   🤖 Posted with [Claude Code](https://claude.com/claude-code) (model: Claude 
Opus 4.8, `claude-opus-4-8[1m]`).
   


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