Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Invalid
-
2.0.0
-
None
-
None
-
None
Description
The 'test-query-redactor.json' file is used on TestQueryRedactor.java for doing redactor tests. This file is obtained using the following line:
conf.set("hive.query.redaction.rules", hiveRoot + "/ql/src/test/resources/test-query-redactor.json");
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.