Update JDBCSecurityMetadataDAO.java
authoryonzhang <yonzhang@ebay.com>
Tue, 3 Apr 2018 23:45:56 +0000 (16:45 -0700)
committeryonzhang <yonzhang@ebay.com>
Tue, 3 Apr 2018 23:45:56 +0000 (16:45 -0700)
Author: yizt
Reviewer: yonzhang

Closes #970

eagle-security/eagle-security-common/src/main/java/org/apache/eagle/security/service/JDBCSecurityMetadataDAO.java

index 07523d2..945ad3e 100644 (file)
@@ -53,8 +53,7 @@ public class JDBCSecurityMetadataDAO implements ISecurityMetadataDAO  {
     private final String HIVE_INSERT_STATEMENT = "INSERT INTO hive_sensitivity_entity (site, hive_resource, sensitivity_type) VALUES (?, ?, ?)";
 
     private final String OOZIE_QUERY_ALL_STATEMENT = "SELECT jobid, name, sensitivity_type FROM oozie_sensitivity_entity";
-    private final String OOZIE_INSERT_STATEMENT = "INSERT INTO oozie_sensitivity_entity (site, filedir, sensitivity_type) VALUES (?, ?, ?)";
-
+    private final String OOZIE_INSERT_STATEMENT = "INSERT INTO oozie_sensitivity_entity (jobid, name, sensitivity_type) VALUES (?, ?, ?)";
     // get connection url from config
     @Inject
     public JDBCSecurityMetadataDAO(Config config){