I am trying to understand the small snippet from Query which must be adapted by Impala.
Select
.
.
from ${ENV_PREFIX}private_datalap_storage_customer_v1 cus
lateral view explode(adresses) address as addr
where year = substr(${REF_DATE}, 1, 4)
and month = substr(${REF_DATE}, 5, 2)
Can someone please help to understand what's happening infrom and Where ?
Also, I will appreciate if someone can explain Why I have the below error when Tryin to Run the Query on Impala
ParseException line 35:20 cannot recognize input near ',' ''1'' ',' in function specification