Certified Data Engineer Professional Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Professional Exam - Question 52


Review the following error traceback:

Which statement describes the error being raised?

Show Answer
Correct Answer: BE

The error message clearly states that the column heartrateheartrateheartrate cannot be resolved based on the input columns provided. This indicates that there is no column with the name heartrateheartrateheartrate in the table. The issue arises from the invalid column name generated by the expression 3*'heartrate', which results in 'heartrateheartrateheartrate'. The DataFrame is expected to have a column named heartrate, not a string repetition of the column name.

Discussion

9 comments
Sign in to comment
CertPeopleOption: B
Sep 12, 2023

It's B, there is no column with that name

rok21Option: E
Dec 9, 2023

E is correct

sturcuOption: B
Oct 16, 2023

No such column found

DileepvikramOption: B
Nov 9, 2023

Answer is B

npc0001Option: B
Nov 9, 2023

Answer B

GulenurOption: E
Dec 5, 2023

Answer is E df.select(3*df['heartrate']) returns perfect result without error

Gulenur_GSOption: E
Dec 5, 2023

the answer is E, because df.select(3*df['heartrate']).show() perfectly returns

chokthewa
Jan 21, 2024

3*"heartrate" is triple of string "heartrate" ,isn't value of heartrate multiplied by 3.

guillesdOption: B
Feb 7, 2024

It's B. Regarding E, a syntax error would mean that the query is not valid due to a wrongfully written SQL statement. However, this is not the case. The column just does not exist.

Jay_98_11Option: B
Jan 13, 2024

https://sparkbyexamples.com/spark/spark-cannot-resolve-given-input-columns/