carloea2 opened a new pull request, #8214:
URL: https://github.com/apache/texera/pull/8214

   ### What changes were proposed in this PR?
   
   Escape user dictionaries containing Texera's internal type-marker key before 
JSON serialization.
   
   The decoder now recognizes only exact internal envelopes and restores 
escaped dictionaries without interpreting their own top-level keys. Existing 
byte envelopes remain compatible.
   
   ### Any related issues, documentation, discussions?
   
   Closes #8213
   
   ### How was this PR tested?
   
   ```text
   python -c "import sys,pytest; 
sys.path[:0]=[r'<worktree>ambersrcmainpython',r'<main-checkout>ambersrcmainpython'];
 raise 
SystemExit(pytest.main([r'amber/src/test/python/core/models/test_state.py','-q','-p','no:cacheprovider']))"
   16 passed
   
   ruff check amber/src/main/python amber/src/test/python
   All checks passed
   
   ruff format --check amber/src/main/python amber/src/test/python
   213 files already formatted
   ```
   
   The direct runtime round trip now reports:
   
   ```text
   decoded= {'config': {'__texera_type__': 'bytes', 'payload': 'aGVsbG8=', 
'owner': 'user'}}
   round_trip_equal= True
   ```
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Codex


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