From d4a91c828a334d590a216629e2200b9af8465d21 Mon Sep 17 00:00:00 2001 From: MrPowers Date: Thu, 19 Jul 2018 10:47:24 -0400 Subject: [PATCH] Fix an argument typo --- .../scala/com/github/mrpowers/spark/daria/sql/functions.scala | 4 ++-- .../com/github/mrpowers/spark/daria/sql/FunctionsTest.scala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/scala/com/github/mrpowers/spark/daria/sql/functions.scala b/src/main/scala/com/github/mrpowers/spark/daria/sql/functions.scala index d71fa1c5..ec0a5958 100644 --- a/src/main/scala/com/github/mrpowers/spark/daria/sql/functions.scala +++ b/src/main/scala/com/github/mrpowers/spark/daria/sql/functions.scala @@ -332,12 +332,12 @@ object functions { buckets: Array[(Any, Any)], inclusiveBoundries: Boolean = false, lowestBoundLte: Boolean = false, - hightestBoundGte: Boolean = false + highestBoundGte: Boolean = false ): Column = { val inclusiveBoundriesCol = lit(inclusiveBoundries) val lowerBoundLteCol = lit(lowestBoundLte) - val upperBoundGteCol = lit(hightestBoundGte) + val upperBoundGteCol = lit(highestBoundGte) val b = buckets.map { res: (Any, Any) => when( diff --git a/src/test/scala/com/github/mrpowers/spark/daria/sql/FunctionsTest.scala b/src/test/scala/com/github/mrpowers/spark/daria/sql/FunctionsTest.scala index fc9da17f..66234e89 100644 --- a/src/test/scala/com/github/mrpowers/spark/daria/sql/FunctionsTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/daria/sql/FunctionsTest.scala @@ -574,7 +574,7 @@ object FunctionsTest ), inclusiveBoundries = true, lowestBoundLte = false, - hightestBoundGte = true + highestBoundGte = true ) ) @@ -604,7 +604,7 @@ object FunctionsTest (11, null) ), inclusiveBoundries = false, - hightestBoundGte = true + highestBoundGte = true ) )