User16857282152
Databricks Employee
Databricks Employee

That seems strange,

Have you tried the reverse, convert the date you want to compare to a string, and then compare

select * from table where (your column cast to string) = date_format(date_sub(current_date(),1), 'yyyyMMdd')