Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2516

Property folding has trouble with coalesce

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.9
    • Fix Version/s: 3.5.0, 3.4.11
    • Component/s: process
    • Labels:
      None

      Description

      This appears closely related to TINKERPOP-2112. I had some working code that was appending .property(T.id, str) to the results of an addE call. However, I have refactored that code so that the call to set the ID is appended to a coalesce call:

      gts.V(Vo).coalesce(
        // guard condition
        __.addE("rel").to(Vi).property("foo", bar)
      );
      

      This formulation triggers the same T$2 cannot be cast to String error.

        Attachments

          Activity

            People

            • Assignee:
              spmallette Stephen Mallette
              Reporter:
              chrylis Christopher Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: