From c2d0068f5aa7623bde573f5591018c8c4dc30b47 Mon Sep 17 00:00:00 2001 From: alltej Date: Fri, 29 Dec 2017 11:50:14 -0500 Subject: [PATCH] Change to use string interpolation --- .../scala/com/sparkTutorial/sparkSql/HousePriceSolution.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy