kakao / s2graph

This code base is retained for historical interest only, please visit Apache Incubator Repo for latest one
https://github.com/apache/incubator-s2graph
Other
250 stars 32 forks source link

bug fix on transformer bug. #257

Closed SteamShon closed 8 years ago

SteamShon commented 8 years ago

Bug: "transform": [["age_band.slot.$.8", "age_band"]] yield "age_band.slot.${age_band}", not "age_band.slot.${age_band}.8".

SteamShon commented 8 years ago

@daewon please review this.

daewon commented 8 years ago

@SteamShon Good catch.

scala> Vector(("a"), ("8")).zip(Vector("10", ""))
res7: scala.collection.immutable.Vector[(String, String)] = Vector((a,10), (8,""))

scala> Vector(("a"), ("8")).zip(Vector("10"))
res8: scala.collection.immutable.Vector[(String, String)] = Vector((a,10))

scala>