[
https://issues.apache.org/jira/browse/SEDONA-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17514930#comment-17514930
]
Jia Yu commented on SEDONA-25:
------------------------------
[~harjitdotsingh]
See this example:
import scala.collection.JavaConversions._
var joinResultDf = Adapter.toDf(joinResultPairRDD, leftRdd.fieldNames,
rightRdd.fieldNames, sparkSession)
leftRdd.fieldNames is a Java List but it is not the same type of Scala Seq. So,
to use it as the input, we have to call the Scala JavaConversions.
> Change Scala Seq type in Adapter
> --------------------------------
>
> Key: SEDONA-25
> URL: https://issues.apache.org/jira/browse/SEDONA-25
> Project: Apache Sedona
> Issue Type: Task
> Reporter: Jia Yu
> Assignee: Jia Yu
> Priority: Major
>
> Currently, the adapter function requires Seq type list for input fieldNames.
> This leads to lots of confusion in Scala and Java users:
> https://github.com/apache/incubator-sedona/blob/master/sql/src/main/scala/org/apache/sedona/sql/utils/Adapter.scala#L134
>
> To fix that, we'd better use List or Java list as the type.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)