[
https://issues.apache.org/jira/browse/SPARK-50579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon resolved SPARK-50579.
----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 49187
[https://github.com/apache/spark/pull/49187]
> 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
> Fix For: 4.0.0
>
>
> 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]