Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1409

substring-after doesn't work with data from dataset

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FUN - Functions
    • Labels:
      None

      Description

      This query:

      for $e in dataset externallibtest.Condor
      where not(is-null($e.RemoteHost))
      limit 1
      return substring-after($e.RemoteHost, "@")
      //return $e.RemoteHost
      

      Returns this error:

      Expects String Type. [AlgebricksException]
      

      The RemoteHost field is a String.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                buyingyi Yingyi Bu
                Reporter:
                cjgreen Christopher Green
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: