dataframe.limit(1).selectExpr("xxx").collect()?
-----Original Message-----
From: chrish2312 [mailto:[email protected]]
Sent: Wednesday, July 8, 2015 6:20 AM
To: [email protected]
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: [email protected] For additional
commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]