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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to