method can be protected, it is meant to be used only in tests

This commit is contained in:
Claudio Atzori 2020-03-27 14:31:26 +01:00
parent a4b6a51168
commit 1767dfaa3f
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ public class SparkGraphImporterJob {
}
}
// public for testing
public void runWith(SparkSession spark, String inputPath, String hiveDbName) {
// protected for testing
protected void runWith(SparkSession spark, String inputPath, String hiveDbName) {
spark.sql(String.format("DROP DATABASE IF EXISTS %s CASCADE", hiveDbName));
spark.sql(String.format("CREATE DATABASE IF NOT EXISTS %s", hiveDbName));