[ 
https://issues.apache.org/jira/browse/TEZ-3502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sreenath Somarajapuram updated TEZ-3502:
----------------------------------------
    Attachment: TEZ-3502.1.patch

[~hitesh] Please help with this patch.

It stringifies a filter values before sending to the timeline server.
Following scenarios have been tested, and respective UTs have been added:
# When value is a numeral. Eg: 123
# When the value contains double quotes. Eg: INSERT INTO TABLE sample_tmp 
VALUES ("a...2)(Stage-1)

> Tez UI: Search in All DAGs page doesn't work with numeric values
> ----------------------------------------------------------------
>
>                 Key: TEZ-3502
>                 URL: https://issues.apache.org/jira/browse/TEZ-3502
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Sreenath Somarajapuram
>            Assignee: Sreenath Somarajapuram
>         Attachments: TEZ-3502.1.patch
>
>
> Timeline server documentation says the following. 
> {code}
> Note that the value of the key/value pair for primaryFilter and 
> secondaryFilters parameters can be of different data types, and matching is 
> data type sensitive. Users need to format the value properly. For example, 
> 123 and "123" means an integer and a string respectively. If the entity has a 
> string "123" for primaryFilter, but the parameter is set to the integer 123, 
> the entity will not be matched. Similarly, true means a boolean while "true" 
> means a string. In general, the value will be casted as a certain Java type 
> in consistent with jackson library parsing a JSON clip.
> {code}
> In essence, as data to be filtered is string we need to send all the filter 
> values enclosed in double quotes.
> Timeline doc can be found @ 
> https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/TimelineServer.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to