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

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

Sergio Peña created HIVE-13244:
----------------------------------

             Summary: 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


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)