Skip to content

Commit

Permalink
Merge pull request kruize#1304 from shekhar316/ns-extype-change
Browse files Browse the repository at this point in the history
Fixing List Recommendations API Error
  • Loading branch information
dinogun authored Sep 27, 2024
2 parents c9a3dab + 6a100d3 commit e2c4796
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> exType = query.getResultList();
if (null != exType && !exType.isEmpty()) {
Expand Down

0 comments on commit e2c4796

Please sign in to comment.