Aggiornare 'dhp-workflows/dhp-doiboost/src/main/java/eu/dnetlib/doiboost/orcid/SparkConvertORCIDToOAF.scala'

to be able to replace the aboject assigned to author val has been replaced by var
This commit is contained in:
Miriam Baglioni 2021-06-07 17:27:07 +02:00
parent bc12e9819e
commit f33521d338
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ object SparkConvertORCIDToOAF {
works.joinWith(authors, authors("oid").equalTo(works("oid")))
.map(i =>{
val doi = i._1.doi
val author = i._2
var author = i._2
(doi, author)
}).groupBy(col("_1").alias("doi"))
.agg(collect_list(col("_2")).alias("authors")).as[ORCIDItem]