SPARK-3711: 1. Fix code style and import order
            2. Fix optimization condition
            3. Add tests for null in filter list
            4. Add test case that optimization is not triggered in case of attributes in filter list