You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ramanand Jaiswal (Jira)" <ji...@apache.org> on 2019/11/19 05:44:00 UTC
[jira] [Created] (SPARK-29955) Can't cast String MapType to MapType
Ramanand Jaiswal created SPARK-29955:
----------------------------------------
Summary: Can't cast String MapType to MapType
Key: SPARK-29955
URL: https://issues.apache.org/jira/browse/SPARK-29955
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.4.4
Reporter: Ramanand Jaiswal
I'm not able to cast the String Map type to MapType.
{code:java}
dataset.withColumn("test", dataset.col("test").cast(DataTypes.createMapType(StringType, StringType)));
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org