dataframe.limit(1).selectExpr("xxx").collect()? -----Original Message----- From: chrish2312 [mailto:c...@palantir.com] Sent: Wednesday, July 8, 2015 6:20 AM To: user@spark.apache.org Subject: Hive UDFs
I know the typical way to apply a hive UDF to a dataframe is basically something like: dataframe.selectExpr("reverse(testString) as reversedString") Is there a way to apply the hive UDF just to a single row and get a row back? Something like: dataframe.first.selectExpr("reverse(testString) as reversedString") Thanks in advance! -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Hive-UDFs-tp23707.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org