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

ASF GitHub Bot updated SPARK-48665:
-----------------------------------
    Labels: pull-request-available  (was: )

> Support dict type for pyspark.sql.functions.lit
> -----------------------------------------------
>
>                 Key: SPARK-48665
>                 URL: https://issues.apache.org/jira/browse/SPARK-48665
>             Project: Spark
>          Issue Type: New Feature
>          Components: PySpark
>    Affects Versions: 4.0.0
>            Reporter: Ron Serruya
>            Priority: Major
>              Labels: pull-request-available
>
> Currently, the `lit` function in pyspark doesn't accept dict in order to 
> create maps
> {noformat}
> F.lit({"a":1})
> pyspark.errors.exceptions.captured.SparkRuntimeException: 
> [UNSUPPORTED_FEATURE.LITERAL_TYPE] The feature is not supported: Literal for 
> '{asd=2}' of class java.util.HashMap.{noformat}
> Support should be added, the same way that scala has with `typedLit` to allow 
> easier creation of maps using lit



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to