Class ParseQueryFunction

java.lang.Object
org.apache.drill.exec.expr.fn.impl.ParseQueryFunction

public class ParseQueryFunction extends Object
The parse_query function splits up a query string and returns a map of the key-value pairs. If input string contains one or more '?' characters the string will be split by the first occurrence of the character and key-value mapping will be performed for the second part of split string (the part starting after '?' character) only.

For example, parse_query('url?arg1=x&arg2=y') will return:

 {
   "arg1": "x",
   "arg2": "y"
 }
 
  • Constructor Details

    • ParseQueryFunction

      public ParseQueryFunction()