SPARK-3968: Add a test case for filter pushdown on optional column