This patch is included in the repository. Apply the patch and build Hive. cd <your local Hive repo> git checkout branch-3.1 git apply -3 branch_3.1.patch mvn clean install -DskipTests As Spark uses a fork of Hive based off the 2.3 branch, in order to build the Spark client, you ...