spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-25768) Constant argument expecting Hive UDAFs doesn't work
Date Fri, 19 Oct 2018 13:21:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-25768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wenchen Fan reassigned SPARK-25768:
-----------------------------------

    Assignee: Peter Toth

> Constant argument expecting Hive UDAFs doesn't work
> ---------------------------------------------------
>
>                 Key: SPARK-25768
>                 URL: https://issues.apache.org/jira/browse/SPARK-25768
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Peter Toth
>            Assignee: Peter Toth
>            Priority: Major
>             Fix For: 2.3.3, 2.4.0
>
>
>  The following doesn't work since SPARK-18186 so it is a regression.
> {code:java}
> test("constant argument expecting Hive UDAF") {
>   withTempView("inputTable") {
>     spark.range(10).createOrReplaceTempView("inputTable")
>     withUserDefinedFunction("testGenericUDAFPercentileApprox" -> false) {
>       val numFunc = spark.catalog.listFunctions().count()
>       sql(s"CREATE FUNCTION testGenericUDAFPercentileApprox AS '" +
>         s"${classOf[GenericUDAFPercentileApprox].getName}'")
>       checkAnswer(
>         sql("SELECT testGenericUDAFPercentileApprox(id, 0.5) FROM inputTable"),
>         Seq(Row(4.0)))
>     }
>   }
> }
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message