You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Amrane Ait Zeouay (Jira)" <ji...@apache.org> on 2022/10/07 17:44:00 UTC

[jira] [Updated] (SPARK-40705) Issue with spark converting Row to Json

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

Amrane Ait Zeouay updated SPARK-40705:
--------------------------------------
    Attachment: image-2022-10-07-19-43-51-892.png

> Issue with spark converting Row to Json
> ---------------------------------------
>
>                 Key: SPARK-40705
>                 URL: https://issues.apache.org/jira/browse/SPARK-40705
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Amrane Ait Zeouay
>            Priority: Major
>         Attachments: image-2022-10-07-19-43-42-232.png, image-2022-10-07-19-43-51-892.png
>
>
> When I'm trying to convert the Row to a json to publish it, i'm getting this following error
> !image-2022-10-07-19-39-21-454.png!
> I tried to investigate and I found that the issue is in the matching.
> !image-2022-10-07-19-39-57-434.png!
> The type `ArraySeq` is not matched in `Row` class.
> !image-2022-10-07-19-40-45-700.png!
> This is the definition of my field
> !image-2022-10-07-19-41-06-314.png!
> And an example of it 
>  
> {code:java}
> {
> ...
> Codes: ["Test", "Spark", "Json"]
> ...
> }{code}
> The Scala version I'm using is `2.13.9`



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

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