Skip to content

Commit

Permalink
Fix test for Postgres TestDistinctOnQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Oct 22, 2024
1 parent d77c14d commit c868d8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void distinctOnSubQuery() {
assertThat(lines).isNotEmpty();
List<String> sql = LoggedSql.stop();
assertThat(sql).hasSize(1);
assertThat(sql.get(0)).contains("select t0.id, t0.product_id, t0.order_qty, t0.ship_qty, t0.id from o_order_detail t0 where t0.id in (select distinct on (t0.product_id) t0.id from o_order_detail t0 order by t0.product_id, t0.updtime desc limit 10) order by t0.cretime");
assertThat(sql.get(0)).contains("select t0.id, t0.product_id, t0.order_qty, t0.ship_qty, t0.cretime from o_order_detail t0 where t0.id in (select distinct on (t0.product_id) t0.id from o_order_detail t0 order by t0.product_id, t0.updtime desc limit 10) order by t0.cretime");
}

@ForPlatform({Platform.POSTGRES, Platform.YUGABYTE})
Expand Down

0 comments on commit c868d8a

Please sign in to comment.