[
https://issues.apache.org/jira/browse/SPARK-50579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-50579:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
>
> 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: [email protected]
For additional commands, e-mail: [email protected]