diff --git a/src/main/java/com/autotune/database/dao/ExperimentDAOImpl.java b/src/main/java/com/autotune/database/dao/ExperimentDAOImpl.java index 00b733d8c..21930c327 100644 --- a/src/main/java/com/autotune/database/dao/ExperimentDAOImpl.java +++ b/src/main/java/com/autotune/database/dao/ExperimentDAOImpl.java @@ -1113,7 +1113,7 @@ private void getExperimentTypeInSingleKruizeRecommendationsEntry(KruizeRecommend try (Session session = KruizeHibernateUtil.getSessionFactory().openSession()) { String sql = DBConstants.SQLQUERY.SELECT_RECOMMENDATIONS_EXP_TYPE; Query query = session.createNativeQuery(sql); - query.setParameter("experiment_type", recomEntry.getExperimentType()); + // set experiment_type parameter in sql query query.setParameter("experiment_name", recomEntry.getExperiment_name()); List exType = query.getResultList(); if (null != exType && !exType.isEmpty()) {