You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by chrish2312 <ch...@palantir.com> on 2015/07/08 00:19:53 UTC
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-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
RE: Hive UDFs
Posted by "Cheng, Hao" <ha...@intel.com>.
dataframe.limit(1).selectExpr("xxx").collect()?
-----Original Message-----
From: chrish2312 [mailto:chsu@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-unsubscribe@spark.apache.org For additional commands, e-mail: user-help@spark.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org