I have a below Logic to be Implemented in Apache Spark in Scala language
ETL Logic:
let int i=lookup_count("LKP_NAME",in.lkp_key);