spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-19840) Disallow creating permanent functions with invalid class names
Date Mon, 06 Mar 2017 23:47:33 GMT

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

Apache Spark reassigned SPARK-19840:
------------------------------------

    Assignee: Apache Spark

> Disallow creating permanent functions with invalid class names
> --------------------------------------------------------------
>
>                 Key: SPARK-19840
>                 URL: https://issues.apache.org/jira/browse/SPARK-19840
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Dongjoon Hyun
>            Assignee: Apache Spark
>
> Currently, Spark raises exceptions on creating invalid **temporary** functions, but doesn't
for **permanent** functions. This issue aims to disallow creating permanent functions with
invalid class names.
> **BEFORE**
> {code}
> scala> sql("CREATE TEMPORARY FUNCTION function_with_invalid_classname AS 'org.invalid'").show
> java.lang.ClassNotFoundException: org.invalid at 
> ...
> scala> sql("CREATE FUNCTION function_with_invalid_classname AS 'org.invalid'").show
> ++
> ||
> ++
> ++
> {code}
> **AFTER**
> {code}
> scala> sql("CREATE FUNCTION function_with_invalid_classname AS 'org.invalid'").show
> java.lang.ClassNotFoundException: org.invalid
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message