Skip to content

Commit

Permalink
Scala 2.11 back comp.
Browse files Browse the repository at this point in the history
  • Loading branch information
angelcervera committed Oct 24, 2020
1 parent 604cab0 commit 1865a08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ object OsmPbfRowIterator {

private def calculateTags(tags: Map[String, String]): MapData = ArrayBasedMapData(
tags,
k => UTF8String.fromString(k.toString),
v => UTF8String.fromString(v.toString)
(k:Any) => UTF8String.fromString(k.toString),
(v:Any) => UTF8String.fromString(v.toString)
)

private def calculateRelation(relation: RelationMemberEntity, structType: StructType): Seq[Any] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class OsmPbfFormatSpec extends AnyWordSpec with Matchers with BeforeAndAfterAll
relation55799.getAs[Seq[Any]]("nodes") shouldBe Seq.empty
relation55799.getAs[InternalRow]("relations") shouldBe Seq(
Row(28775036L, 1, "outer"),
Row(28775323, 1, "inner"),
Row(28775323, 1, "inner")
)
}

Expand Down

0 comments on commit 1865a08

Please sign in to comment.