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

   ### What changes were proposed in this PR?
   
   Attach the system local timezone before converting naive timestamps for 
tuple hashing. This avoids the Windows pre-epoch failure while preserving aware 
timestamps and Java-compatible epoch seconds.
   
   ### Any related issues, documentation, discussions?
   
   Closes #8211
   
   ### 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_tuple.py::TestTuple::test_hash_supports_local_epoch_timestamp','-q','-p','no:cacheprovider']))"
   1 passed
   
   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_tuple.py','-q','-p','no:cacheprovider','-k','not
 test_hash']))"
   101 passed, 3 deselected
   
   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 broader existing test_hash now passes its epoch assertion but later 
fails while its Windows fixture calls datetime.fromtimestamp with a negative 
value, before Texera hashing runs.
   
   ### 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