spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Li (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-24337) Improve the error message for invalid SQL conf value
Date Thu, 31 May 2018 05:42:00 GMT

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

Xiao Li resolved SPARK-24337.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

> Improve the error message for invalid SQL conf value
> ----------------------------------------------------
>
>                 Key: SPARK-24337
>                 URL: https://issues.apache.org/jira/browse/SPARK-24337
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Shixiong Zhu
>            Priority: Major
>             Fix For: 2.4.0
>
>
> Right now Spark will throw the following error message when a config is set to an invalid
value. It would be great if the error message contains the config key so that it's easy to
tell which one is wrong.
> {code}
> Size must be specified as bytes (b), kibibytes (k), mebibytes (m), gibibytes (g), tebibytes
(t), or pebibytes(p). E.g. 50b, 100k, or 250m.
> Fractional values are not supported. Input was: 1.6
> 	at org.apache.spark.network.util.JavaUtils.byteStringAs(JavaUtils.java:291)
> 	at org.apache.spark.internal.config.ConfigHelpers$.byteFromString(ConfigBuilder.scala:66)
> 	at org.apache.spark.internal.config.ConfigBuilder$$anonfun$bytesConf$1.apply(ConfigBuilder.scala:234)
> 	at org.apache.spark.internal.config.ConfigBuilder$$anonfun$bytesConf$1.apply(ConfigBuilder.scala:234)
> 	at org.apache.spark.sql.internal.SQLConf.setConfString(SQLConf.scala:1300)
> 	at org.apache.spark.sql.internal.BaseSessionStateBuilder$$anonfun$mergeSparkConf$1.apply(BaseSessionStateBuilder.scala:78)
> 	at org.apache.spark.sql.internal.BaseSessionStateBuilder$$anonfun$mergeSparkConf$1.apply(BaseSessionStateBuilder.scala:77)
> 	at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
> 	at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
> 	at org.apache.spark.sql.internal.BaseSessionStateBuilder.mergeSparkConf(BaseSessionStateBuilder.scala:77)
> 	at org.apache.spark.sql.internal.BaseSessionStateBuilder.conf$lzycompute(BaseSessionStateBuilder.scala:90)
> 	at org.apache.spark.sql.internal.BaseSessionStateBuilder.conf(BaseSessionStateBuilder.scala:88)
> 	at org.apache.spark.sql.internal.BaseSessionStateBuilder.build(BaseSessionStateBuilder.scala:289)
> 	at org.apache.spark.sql.SparkSession$.org$apache$spark$sql$SparkSession$$instantiateSessionState(SparkSession.scala:1071)
> 	... 59 more
> {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