Tech Mahindra Interview Question

Case statements in both spark and sql