Skip to content

Commit

Permalink
Addressing code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
imarios committed Dec 21, 2018
1 parent c923e90 commit 571c071
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dataset/src/main/scala/frameless/TypedDataset.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ class TypedDataset[T] protected[frameless](val dataset: Dataset[T])(implicit val
(c, i) <- columns.toList[UntypedExpression[T]].zipWithIndex
} yield new Column(c.expr).as(s"_${i+1}")

// Workaround to SPARK-20346. The alternative is to allow the result to be Vector(null) for empty DataFrames.
// Workaround to SPARK-20346. One alternative is to allow the result to be Vector(null) for empty DataFrames.
// Another one would be to return an Option.
val filterStr = (
for {
(c, i) <- underlyingColumns.zipWithIndex
Expand Down

0 comments on commit 571c071

Please sign in to comment.