carloea2 opened a new issue, #8215:
URL: https://github.com/apache/texera/issues/8215

   ### What happened?
   
   State serialization converts every dictionary key to a string. Distinct 
Python keys can therefore collapse to the same JSON key and silently overwrite 
state.
   
   Before: integer key 1 and string key 1 -> one stored value survives
   
   After: any non-string state key -> TypeError before serialization
   
   ### How to reproduce?
   
   Round-trip state containing a nested dictionary with integer key 1 and 
string key 1.
   
   ### Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash
   
   70c21145887920528d7d5540e3fb790b43e8b759
   
   ### What browsers are you seeing the problem on?
   
   Not browser-specific.
   
   ### Relevant log output
   
   ```text
   original= {'config': {1: 'integer key', '1': 'string key'}}
   encoded= {"config":{"1":"string key"}}
   round_trip_equal= False
   ```


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