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:43:00 UTC
[jira] [Created] (SPARK-40705) Issue with spark converting Row to Json
Amrane Ait Zeouay created SPARK-40705:
-----------------------------------------
Summary: 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
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