Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13244

Get 'test-query-redactor.json' file on TestQueryRedactor.java from the resources classpath

    XMLWordPrintableJSON

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.

      Attachments

        1. HIVE-13244.1.patch
          1 kB
          Sergio Peña

        Activity

          People

            spena Sergio Peña
            spena Sergio Peña
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: