HyukjinKwon opened a new pull request, #914:
URL: https://github.com/apache/spark-connect-rust/pull/914

   ### What changes were proposed in this pull request?
   
   Four independent audits checked `dev/parity/known-differences.md` and 
`docs/compatibility.md` at master against the 74 commits since 4f0d0fa9. They 
probed the drop-in and pyspark-client 4.3.0 against a Spark Connect 4.3.0 
server and a raw HTTP/2 server. This PR corrects the statements they found 
untrue:
   
   - **Statements that later fixes made untrue:**
     - The annotations of `pyspark.sql.functions` and 
`pyspark.sql.connect.functions` name PySpark's classic `Column`, as 
pyspark-client's do, since `pyspark.sql.column` is PySpark's module. The KD 
sentence of a difference is removed.
     - A retry policy that is not a `DefaultPolicy` retries what its 
`can_retry` takes, as PySpark's `Retrying` asks it. That holds also in the 4.4 
notes of `RetryPolicy::retries_failures`.
     - PySpark 4.3.0 hangs at exit only when no collection frees a session of a 
cycle before the teardown.
     - Importing `pyspark.ml.connect` needs pandas, PyArrow and NumPy, as its 
vendored `feature` module imports them. `pyspark.sql.connect` does not.
     - `createDataFrame` of local rows reads non-`StructField` fields as 
PySpark's conversion does.
     - `toPandas` without pytz raises PyArrow's `ArrowInvalid` in both clients.
     - The AttributeErrors of PySpark's uninitialized objects name the first 
attribute the method reads.
     - A subclass of the channel builder that overrides `host` or `endpoint` 
changes the address of one client and not the other.
     - The SDP CLI's modules that run a pipeline over the client are the 
drop-in's.
     - `AGENTS.md` names a `reject_pandas` that no longer exists.
   - **Numbers that were off:**
     - the depths at which both clients' types raise their `RecursionError` 
(Python 3.11);
     - the server's limit of nested `abs` (508 run, 509 fail, of the 
`SparkConnectGrpcException` of `UNKNOWN`);
     - the depth at which PySpark's pickler fails a Column (about 200 on 3.11);
     - the sizes of the pickles;
     - the constructor parameters of `FMClassifier` (17, and `weightCol`) and 
`MultilayerPerceptronClassifier` (13, and `thresholds`).
   - **Rust API changes since v4.3.0 that the 4.4 migration notes missed:**
     - `RpcDeadlines.get_status`, the hidden `ServerErrorInfo.rpc_error`, 
`SparkConnectClient::get_status_proto`, and `ChannelBuilder::params` and 
`remove`;
     - `ClientDecoder`, `is_client_decode_error` and 
`bytes_codec::ClientBytesCodec`;
     - the `server` feature of `apache-spark-connect-proto`, and tonic's 
features;
     - the jitter of each retry, and the retries of the stack-trace configs;
     - the history of the doc-hidden `session::Tag`, which v4.3.0 does not 
have, and the `rpc_deadlines` that v4.3.0's `SparkConnectClient` had.
   - **Smaller corrections:** `pyspark.ml.connect.pipeline` has no `__all__`; a 
forward reference ("`LinearSVCModel` above"); the name of the runtime's 
`Message`; the docstring of the DataFrame's `__init__`; the JSON of the schema 
that `createDataFrame` sends.
   
   The edited paragraphs are re-wrapped at 100 columns. The paragraphs of the 
status details are corrected in a separate change of the code, which closes 
their KD row.
   
   ### Why are the changes needed?
   
   So that the parity docs say what is true at master.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Docs only.
   
   ### How was this patch tested?
   
   Each corrected claim was probed with both clients. Words other than the 
corrected ones are unchanged (whitespace-normalized comparison before and after 
the re-wrap).
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code
   
   This pull request and its description were written by Isaac.
   


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

Reply via email to