diff --git a/src/main/scala/com/sparkTutorial/sparkSql/HousePriceSolution.scala b/src/main/scala/com/sparkTutorial/sparkSql/HousePriceSolution.scala index 53a4f9a..dc23774 100644 --- a/src/main/scala/com/sparkTutorial/sparkSql/HousePriceSolution.scala +++ b/src/main/scala/com/sparkTutorial/sparkSql/HousePriceSolution.scala @@ -19,7 +19,7 @@ object HousePriceSolution { realEstate.groupBy("Location") .avg(PRICE_SQ_FT) - .orderBy("avg(Price SQ Ft)") + .orderBy(s"avg(${PRICE_SQ_FT})") .show() } }