Hyukjin Kwon created SPARK-61138:
------------------------------------
Summary: Make str of a VariantVal its JSON in the Python client as
PySpark does
Key: SPARK-61138
URL: https://issues.apache.org/jira/browse/SPARK-61138
Project: Spark
Issue Type: Bug
Components: Connect
Affects Versions: connect-rust-4.3.0
Reporter: Hyukjin Kwon
PySpark's VariantVal.__str__ is its JSON (VariantUtils.to_json, as toJson),
while its __repr__ is "VariantVal(value, metadata)". The client's VariantVal
has no __str__, so str(v) is its repr of bytes.
Apache Spark's test_variant_type fails on this client. The client's str of a
VariantVal should be its JSON, as PySpark's is.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]