aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/url_base/test/cases/UrlQuery.sql
blob: 4179fd0a0c83d35b972219c9f7ba4b6e2e59efd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SELECT
    value,
    Url::QueryStringToList(value, false AS Strict) AS base_list,
    Url::BuildQueryString(Url::QueryStringToList(value, false AS Strict)) AS base_list_build,
    Url::QueryStringToList(value, true AS KeepBlankValues, false AS Strict) AS keep_blank_list,
    Url::BuildQueryString(Url::QueryStringToList(value, true AS KeepBlankValues, false AS Strict)) AS keep_blank_list_build,
    Url::QueryStringToList(value, ";" AS Separator, false AS Strict) AS sep_semicol_list,
    Url::BuildQueryString(Url::QueryStringToList(value, ";" AS Separator, false AS Strict), ";" AS Separator) AS sep_semicol_list_build,
    Url::QueryStringToDict(value, false AS Strict) AS base_dict,
    Url::BuildQueryString(Url::QueryStringToDict(value, false AS Strict)) AS base_dict_build,
    Url::QueryStringToDict(value, true AS KeepBlankValues, false AS Strict) AS keep_blank_dict,
    Url::BuildQueryString(Url::QueryStringToDict(value, true AS KeepBlankValues, false AS Strict)) AS keep_blank_dict_build,
    Url::QueryStringToDict(value, ";" AS Separator, false AS Strict) AS sep_semicol_dict,
    Url::BuildQueryString(Url::QueryStringToDict(value, ";" AS Separator, false AS Strict), ";" AS Separator) AS sep_semicol_dict_build,
FROM Input;