Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/9955#discussion_r45829006
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
@@ -599,6 +599,38 @@ class Dataset[T] private[sql](
*/
def takeAsList(num: Int): java.util.List[T] =
java.util.Arrays.asList(take(num) : _*)
+ /**
+ * Compose the string representing rows for output
+ * @param _numRows Number of rows to show
+ * @param truncate Whether truncate long strings and align cells right
+ */
+ override private[sql] def showString(_numRows: Int, truncate: Boolean =
true): String = {
--- End diff --
When merging them into the same one, I hit a problem when calling the
function `take`. The `Dataset` API has different type `Array[T]`, but
`Dataframe` API has a type `Array[T]`.
Do you have a better idea how to integrate into the same function?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]