Skip to content

Commit a98ecb2

Browse files
committed
Fixed failing test cases
1 parent a9a038e commit a98ecb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

document-store/src/test/java/org/hypertrace/core/documentstore/postgres/query/v1/PostgresQueryParserTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ void testFindWithSortingAndPagination() {
677677
+ "\"quantity\" AS \"quantity\", "
678678
+ "\"date\" AS \"date\" "
679679
+ "FROM \"testCollection\" "
680-
+ "WHERE ARRAY[\"item\"]::text[] && ARRAY[?, ?, ?, ?]::text[] "
680+
+ "WHERE \"item\" IN (?, ?, ?, ?) "
681681
+ "ORDER BY \"quantity\" DESC NULLS LAST,\"item\" ASC NULLS FIRST "
682682
+ "OFFSET ? LIMIT ?",
683683
postgresQueryParser.parse());
@@ -1499,7 +1499,7 @@ void testNotInWithFlatCollectionNonJsonField() {
14991499

15001500
String sql = postgresQueryParser.parse();
15011501
assertEquals(
1502-
"SELECT * FROM \"testCollection\" WHERE \"category\" IS NULL OR NOT (ARRAY[\"category\"]::text[] && ARRAY[?, ?]::text[])",
1502+
"SELECT * FROM \"testCollection\" WHERE \"category\" IS NULL OR NOT (\"category\" IN (?, ?))",
15031503
sql);
15041504

15051505
Params params = postgresQueryParser.getParamsBuilder().build();

0 commit comments

Comments
 (0)