seanmuth commented on PR #70385: URL: https://github.com/apache/airflow/pull/70385#issuecomment-6663092686
Followup on my 9/4 review: I'm retracting the `RunState.to_json()` concern. I re-ran the escaping and @moomindani is right. `json.dumps` writes a NUL as `\u0000`, and the nested stringification escapes the backslash again, so Postgres sees literal text and `run_state` doesn't hit the jsonb error. My `\^@` repro was a literal backslash-caret-at in Python, not a NUL, so it didn't show what I thought it did. Keeping the sanitization at the persistence boundary, as this PR does, also avoids changing the string that `databricks_repair_reason_new_settings` matches on. I also re-checked the head after the 11/05 rebase. The PR's own changes (`make_jsonb_safe`, the two call sites, the tests) are identical to what was approved. The only new lines come from #72313 on `main`, and they don't overlap. I found nothing else blocking. LGTM. -- 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]
