dbtsai commented on PR #296: URL: https://github.com/apache/spark-connect-rust/pull/296#issuecomment-6718219775
Reviewed `02b34e8` against its original base `9feb32b`. The shared client seed and `deterministic_order` serialization look correct by inspection. A few follow-ups: - Add a serialized-proto regression for `randomSplit`: assert each split's bounds, shared seed, `with_replacement=false`, and `deterministic_order=true`, with and without an explicit seed. The new unit test checks the logical plan only, and the ordered `range` input in the live test does not protect the ordering flag. Also assert ordinary `sample` serializes the flag as false. - Clarify the remote-only `rdd` contract. This package's `is_remote_only()` returns true, while the getter raises `PySparkNotImplementedError`; official remote-only PySpark reaches `JVM_ATTRIBUTE_NOT_SUPPORTED` through `__getattr__`. The getter predates this PR, but the new `"rdd"` entry in `__getattr__` is unreachable and the new test pins the differing behavior. - Reword `random_seed()`'s comparison with `random.randint(0, sys.maxsize)`, or use an appropriate random integer generator. Shifting a v4 UUID by 65 retains its fixed version nibble, leaving 59 random bits. This does not invalidate the shared seed or establish a sampling defect. Small documentation follow-up: `__getattr__`'s rustdoc still says all underscore-prefixed names raise, although single-underscore names now return columns. This is a source review; I did not run tests for these observations. Reviewed by OpenAI 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
