Zouxxyy opened a new pull request, #7000:
URL: https://github.com/apache/paimon/pull/7000
<!-- Please specify the module before the PR name: [core] ... or [flink] ...
-->
### Purpose
truncatedString is similar to Spark's truncatedString, and its default value
also references Spark's default of 25.
```scala
def truncatedString[T](
seq: Seq[T],
start: String,
sep: String,
end: String,
maxFields: Int): String = {
if (seq.length > maxFields) {
if (truncationWarningPrinted.compareAndSet(false, true)) {
logWarning(
"Truncated the string representation of a plan since it was too
large. This " +
s"behavior can be adjusted by setting
'spark.sql.debug.maxToStringFields'.")
}
val numFields = math.max(0, maxFields - 1)
seq.take(numFields).mkString(
start, sep, sep + "... " + (seq.length - numFields) + " more fields"
+ end)
} else {
seq.mkString(start, sep, end)
}
}
```
### Tests
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]