You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2024/12/14 14:11:00 UTC
[jira] [Created] (SPARK-50579) Inconsistent string truncation
Max Gekk created SPARK-50579:
--------------------------------
Summary: Inconsistent string truncation
Key: SPARK-50579
URL: https://issues.apache.org/jira/browse/SPARK-50579
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 4.0.0
Reporter: Max Gekk
Assignee: Max Gekk
Output of truncatedString is different for the same max fields:
{code:scala}
truncatedString(Seq(1, 2), "[", ", ", "]", 2)
{code}
outputs *"[1, 2]"*, but less elements for the same max fields:
{code:scala}
truncatedString(Seq(1, 2, 3), "[", ", ", "]", 2)
{code}
it outputs *"[1, ... 2 more fields]"* instead of *"[1, 2, ... 1 more fields]"*.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org