SnowPro Core Exam QuestionsBrowse all questions from this exam

SnowPro Core Exam - Question 1263


Which configuration of the function PARSE_JSON( [expr] ) will retrieve a valid SQL NULL value?

Show Answer
Correct Answer:

Discussion

2 comments
Sign in to comment
Damu123Option: A
Jan 17, 2025

If the input is NULL, the output is also NULL. However, if the input string is 'null', then it is interpreted as a JSON null value so that the result isn’t SQL NULL, but instead a valid VARIANT value containing null https://docs.snowflake.com/en/sql-reference/functions/parse_json

bor4unOption: A
Jan 24, 2025

Tried in Snowflake myself: select NULL, parse_json(NULL);