Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix scalastyle
  • Loading branch information
mgaido91 committed Apr 10, 2018
commit a296bc0db8b8d3befa05b7d0a8faedea4f21a625
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,4 @@ case class ArrayMax(child: Expression) extends UnaryExpression with ImplicitCast
case ArrayType(dt, _) => dt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also check if dt is orderable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the check in the checkInputDataTypes method, thanks.

case _ => throw new IllegalStateException("array_max accepts only arrays.")
}
}
}