[SPARK-3814][SQL] Bitwise & does not work in Hive

Currently there is no support of Bitwise & , | in Spark HiveQl and Spark SQL as well. So this PR support the same.
I am closing https://github.com/apache/spark/pull/2736 as it has conflicts to merge. And I handled all review comments in that PR.

Author : ravipesala ravindra.pesala@huawei.com