What does the below code print [closed]

0 votes
What does the below code print?

val AgeDs = ageDs.filter {

ageDs("birthYear")> 1950

}

The birthYear column can also be referenced with this syntax:

val ageDs = ageDs.filter {

$"birthYear" > 1950

}

a)creates ageDS and dataset is empty

b)doesn't create a ageDS

c)Creates ageDS, and datasets contain all ages that are born after 1950

d)Run time error
closed as a duplicate of: What does the below code print?
Nov 24, 2020 in Apache Spark by ritu
• 980 points

closed Nov 25, 2020 by Gitika 436 views

Related Questions In Apache Spark

0 votes
1 answer

What does the below code print?

Option d) Run time error. READ MORE

answered Nov 25, 2020 in Apache Spark by Gitika
• 65,930 points
114 views
0 votes
1 answer

What does the following code print?

error: expected class or object definition sc.parallelize (Array(1L, ...READ MORE

answered Nov 25, 2020 in Apache Spark by Gitika
• 65,930 points
362 views
0 votes
1 answer

2)What will be printed when the below code is executed ?

Hi, @Ritu, List(5,100,10) is printed. The take method returns the first n elements in ...READ MORE

answered Nov 23, 2020 in Apache Spark by Gitika
• 65,930 points
106 views
0 votes
1 answer

From the below code. what is the most appropriate next step in ML process?

Hi@ritu, The most appropriate step according to me ...READ MORE

answered Nov 25, 2020 in Apache Spark by MD
• 95,240 points
118 views
0 votes
1 answer

What will be printed when the below code is executed ?

Option a) List(5,100,10) The take method returns the first n elements in an ...READ MORE

answered Nov 26, 2020 in Apache Spark by Gitika
• 65,930 points
93 views
0 votes
1 answer

What will be printed when the below code is executed?

Option D)  runtime error READ MORE

answered Nov 26, 2020 in Apache Spark by Gitika
• 65,930 points
368 views
0 votes
1 answer

What will be printed when the below code is executed?

Option b) .List(0,3,5) The takeOrdered method returns the smallest n elements in a ...READ MORE

answered Nov 26, 2020 in Apache Spark by Gitika
• 65,930 points
247 views
0 votes
1 answer

What does the command df.registerTempTable() do?

df.registerTempTable(“airports”) This command is used to register ...READ MORE

answered Jul 14, 2019 in Apache Spark by James
5,044 views
0 votes
1 answer

What is the output of the following code?

After executing your code, there is an ...READ MORE

answered Nov 25, 2020 in Apache Spark by Gitika
• 65,930 points
138 views
0 votes
1 answer

13)Refer the input and identify the output if the below code is run

Option c)  Run time error - A READ MORE

answered Nov 25, 2020 in Apache Spark by Gitika
• 65,930 points
107 views