Skip to content

Commit 9841355

Browse files
use cache (#988)
1 parent 4e12657 commit 9841355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/cognite/spark/v1/FileContentRelation.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class FileContentRelation(config: RelationConfig, fileExternalId: String, inferS
9797
Array(CdfPartition(0))
9898
}
9999
import sqlContext.sparkSession.implicits._
100-
val dataset = rdd.toDS()
100+
val dataset = rdd.cache().toDS()
101101

102102
if (inferSchema) {
103103
sqlContext.sparkSession.read.json(dataset)

0 commit comments

Comments
 (0)