carloea2 opened a new pull request, #8218: URL: https://github.com/apache/texera/pull/8218
### What changes were proposed in this PR? Replace the removable empty-tuple assert with an explicit ValueError. Existing coverage for empty lists, dictionaries, and pandas Series now verifies the stable exception, including optimized Python. ### Any related issues, documentation, discussions? Closes #8217 ### 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','-q','-p','no:cacheprovider','-k','not test_hash']))" 101 passed, 2 deselected python -O -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_reject_empty_tuplelike','-q','-p','no:cacheprovider']))" 1 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 ``` ### 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]
