Skip to content
Advertisement

Pass date string as variable in spark sql

I am unable to pass a date string in spark sql

When I run this

However I get error when I want to pass the date string as variable

I am not sure, how to pass that variable.

Advertisement

Answer

you can just add single quotes to the query and it should work for you

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement