Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-1170

parse_url("http://oascentral.stripes.com/adstream_mjx.ads@Top2,Right1","HOST") returns Top2,Right1

    Details

      Description

      parse_url(x,HOST) is not returning a valid Hostname. Try the example given in summary above.

      Looking at the src code of https://github.com/cloudera/Impala/blob/8567b51f8c38bd389a338c761242a316d8ffe5c8/be/src/util/url-parser.cc
      we should be searching for a "/" in string and then look for a "@"; however acc to src code, we search for a "@" && then look for a "/"

      Workaround
      As a workaround the HOST could be parsed using a regex.

        Attachments

          Activity

            People

            • Assignee:
              lv Lars Volker
              Reporter:
              kmangtani_impala_ed77 Kushal Mangtani
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: