kaxil commented on PR #44533:
URL: https://github.com/apache/airflow/pull/44533#issuecomment-2511643750

   > While Testing this I noticed an issue in the downgrade case. We are not 
removing the data from downgrade and just perform below conversion.
   > 
   > ```
   >           ALTER TABLE dag_run
   >           ALTER COLUMN conf TYPE BYTEA
   >           USING CASE
   >               WHEN conf IS NOT NULL THEN CONVERT_TO(conf::TEXT, 'UTF8')
   >               ELSE NULL
   >           END
   >  
   > ```
   > 
   > I am getting `UnpicklingError` error with this when I try to open DAG 
page. 
![image](https://private-user-images.githubusercontent.com/43964496/391508491-93d7a456-448c-4d60-956d-50cbef968de3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMxNDg0NDIsIm5iZiI6MTczMzE0ODE0MiwicGF0aCI6Ii80Mzk2NDQ5Ni8zOTE1MDg0OTEtOTNkN2E0NTYtNDQ4Yy00ZDYwLTk1NmQtNTBjYmVmOTY4ZGUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjAyVDE0MDIyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNlYTc4ODBiYTMxZjk5ZjFmZGM2YjU0NmJhYWRkMDE4NjIwMDgwMjI5MmQ4OTZjMzY0ZTZlY2Y4Y2MyNjdmMWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hJxNgnZc2QuLnUp1EPHdb787rac6U-UHX7f2rPZVQl4)
   > 
   > Should we also move data to the archive table in case of a downgrade as 
well? cc: @kaxil
   
   Yeah, it is different than XCom, because XCom code had handling of both JSON 
& pickle type -- for dagrun conf it would be different. For downgrade you might 
just want to insert all records from the archive table back here.


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