Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-42

Bug on EdgeTransformer with specific cases.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Minor
    • Resolution: Done
    • None
    • None
    • None

    Description

      With following example, EdgeTransform gives wrong transformed result.

      given: "transform": [["age_band.slot.$.8", "age_band"]]
      expected: "age_band.slot.${age_band}.8"
      result: "age_band.slot.${age_band}"
      

      so transform logic lose ".8"

      I think this problem comes from not comparable size on tokens split by "$" and values provided on EdgeTransformer.replace method.

      "age_band.slot.$.8" yield ["age_band.slot.", ".8"] and values provided into replace is only ["age_band"] so zipping these two lose last element of first list.

      Attachments

        Activity

          People

            steamshon Do Yung Yoon
            steamshon Do Yung Yoon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: