mapValues is part of syllabus of certification?

spark-sql
#1

I am working on one of problem

val a = sc.parallelize(List(“dog”, “tiger”, “lion”, “cat”, “panther”, “eagle”), 2)

b.mapValues(“x”+_+“x”).collect

Can anyone let me know mapValues is part of syllabus of certification or is it part of spark sql

0 Likes

#2

b.mapValues(“x”+_+“x”).collect

Above statement is it same as below ??

b.mapValues(x => x+1).collect

0 Likes

#3

CCA 175 is based on 1.2.1 and I searched for mapValues in 1.2.1 official documentation and there is nothing in it. Hence probability of questions on mapValues is low.

0 Likes

#4

What is b here? there is no function mapValues on RDD.

0 Likes

#5

yes sir ,thank you for the reply ,appreciated

0 Likes