You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Sergio Peña (JIRA)" <ji...@apache.org> on 2016/03/09 19:00:45 UTC

[jira] [Updated] (HIVE-13244) Get 'test-query-redactor.json' file on TestQueryRedactor.java from the resources classpath

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

Sergio Peña updated HIVE-13244:
-------------------------------
    Priority: Trivial  (was: Major)

> Get 'test-query-redactor.json' file on TestQueryRedactor.java from the resources classpath
> ------------------------------------------------------------------------------------------
>
>                 Key: HIVE-13244
>                 URL: https://issues.apache.org/jira/browse/HIVE-13244
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: Sergio Peña
>            Assignee: Sergio Peña
>            Priority: Trivial
>         Attachments: HIVE-13244.1.patch
>
>
> The 'test-query-redactor.json' file is used on TestQueryRedactor.java for doing redactor tests. This file is obtained using the following line:
> {code}
> conf.set("hive.query.redaction.rules", hiveRoot + "/ql/src/test/resources/test-query-redactor.json");
> {code}
> The location of the file is correct, but when running tests using the test-sources.jar file, the above line does not work. We should instead obtain the file using the {{ClassLoader.getSystemResource()}} to make it work.



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