Skip to content

Commit

Permalink
use returns
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed May 2, 2024
1 parent 15e1e45 commit 9e3e24d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ case class NTile(buckets: Expression) extends RowNumberLike with SizeBasedWindow
// for each partition.
override def checkInputDataTypes(): TypeCheckResult = {
if (!buckets.foldable) {
DataTypeMismatch(
return DataTypeMismatch(
errorSubClass = "NON_FOLDABLE_INPUT",
messageParameters = Map(
"inputName" -> toSQLId("buckets"),
Expand All @@ -864,7 +864,7 @@ case class NTile(buckets: Expression) extends RowNumberLike with SizeBasedWindow
}

if (buckets.dataType != IntegerType) {
DataTypeMismatch(
return DataTypeMismatch(
errorSubClass = "UNEXPECTED_INPUT_TYPE",
messageParameters = Map(
"paramIndex" -> ordinalNumber(0),
Expand Down

0 comments on commit 9e3e24d

Please sign in to comment.