In Spark SQL , i would need to cast as_of_date to string and do a inner join with two tables. Example table schema as shown below
Tablename : Table_01 Column