spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-20519) When the input parameter is null, may be a runtime exception occurs
Date Mon, 08 May 2017 09:04:04 GMT

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

Sean Owen resolved SPARK-20519.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 2.3.0

Issue resolved by pull request 17796
[https://github.com/apache/spark/pull/17796]

> When the input parameter is null,  may be a runtime exception occurs
> --------------------------------------------------------------------
>
>                 Key: SPARK-20519
>                 URL: https://issues.apache.org/jira/browse/SPARK-20519
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core, SQL
>    Affects Versions: 2.1.0
>            Reporter: liuxian
>            Assignee: liuxian
>            Priority: Trivial
>             Fix For: 2.3.0
>
>
> sqlContext.tables(null)
> setCustomHostname(null)
> checkHost(null, "test")
> checkHostPort(null, "test")
> throws exception at runtime:
> java.lang.NullPointerException was thrown.
> java.lang.NullPointerException
> 	at org.apache.spark.sql.catalyst.catalog.SessionCatalog.formatDatabaseName(SessionCatalog.scala:125)
> 	at org.apache.spark.sql.catalyst.catalog.SessionCatalog.listTables(SessionCatalog.scala:715)
> 	at org.apache.spark.sql.catalyst.catalog.SessionCatalog.listTables(SessionCatalog.scala:706)
> 	at org.apache.spark.sql.execution.command.ShowTablesCommand$$anonfun$11.apply(tables.scala:655)



--
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