Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBuehmann committed Feb 26, 2021
1 parent 4c2b0fe commit 2a6c8cc
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ abstract class SPARQL11TestSuiteRunnerSpark

// we drop the Spark database to remove all tables from previous loaded data
spark.sql(s"DROP DATABASE IF EXISTS $db")
spark.catalog.listTables().foreach(t => spark.catalog.dropTempView(s"${sqlEscaper.forSchemaName().encode(t.name)}"))
spark.catalog.listTables(db).foreach(t => spark.catalog.dropTempView(s"${sqlEscaper.forSchemaName().encode(t.name)}"))
spark.catalog.listTables().foreach(t => {
val b = spark.catalog.dropTempView(s"${sqlEscaper.forSchemaName().encode(t.name)}")
})
spark.catalog.listTables(db).foreach(t => {
val b = spark.catalog.dropTempView(s"${sqlEscaper.forSchemaName().encode(t.name)}")
})

// distribute on Spark
val triplesRDD = spark.sparkContext.parallelize(data.getGraph.find().toList.asScala)
Expand Down

0 comments on commit 2a6c8cc

Please sign in to comment.