Skip to content

Commit 72d6011

Browse files
committed
Revert "Revert "[SPARK-29991][INFRA] Support test-hive1.2 in PR Builder""
This reverts commit 9351e3e.
1 parent 558a7b9 commit 72d6011

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dev/run-tests.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,16 @@ def get_hadoop_profiles(hadoop_version):
283283
"""
284284

285285
sbt_maven_hadoop_profiles = {
286-
"hadoop2.7": ["-Phadoop-2.7", "-Phive-1.2"],
287-
"hadoop3.2": ["-Phadoop-3.2", "-Phive-2.3"],
286+
"hadoop2.7": ["-Phadoop-2.7"],
287+
"hadoop3.2": ["-Phadoop-3.2"],
288288
}
289289

290290
if hadoop_version in sbt_maven_hadoop_profiles:
291-
return sbt_maven_hadoop_profiles[hadoop_version]
291+
if ("ghprbPullTitle" in os.environ and
292+
"test-hive1.2" in os.environ["ghprbPullTitle"].lower()):
293+
return sbt_maven_hadoop_profiles[hadoop_version] + ["-Phive-1.2"]
294+
else:
295+
return sbt_maven_hadoop_profiles[hadoop_version]
292296
else:
293297
print("[error] Could not find", hadoop_version, "in the list. Valid options",
294298
" are", sbt_maven_hadoop_profiles.keys())

0 commit comments

Comments
 (0)