Skip to content

Commit

Permalink
Fixed test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren committed Jan 14, 2025
1 parent 8da26d6 commit 57c6f21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.junit.jupiter.api.extension.ExtendWith;

import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -174,7 +175,9 @@ public void verifyAllTheFieldTypesView() throws Exception {
// see that we can persist and read a row with all fields, no indexed columns
var id = newId();
var row = new AllTheTypesKvEntity.AllTheTypes(1, 2L, 3F, 4D, true, "text", 5, 6L, 7F, 8D, false,
Instant.now(), ZonedDateTime.now(),
Instant.now(),
// Note: we turn it into a timestamp internally, so the specific TZ is lost (but the exact point in time stays the same)
ZonedDateTime.now().withZoneSameInstant(ZoneId.of("Z")),
Optional.of("optional"), List.of("text1", "text2"),
new AllTheTypesKvEntity.ByEmail("[email protected]"),
AllTheTypesKvEntity.AnEnum.THREE, new AllTheTypesKvEntity.Recursive(new AllTheTypesKvEntity.Recursive(null, "level2"), "level1"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public QueryEffect<CountResult> countRows() {
}

public record InstantRequest(Instant instant) {}
@Query("SELECT * FROM events WHERE instant < :instant")
@Query("SELECT * FROM events WHERE instant > :instant")
public QueryStreamEffect<AllTheTypesKvEntity.AllTheTypes> compareInstant(InstantRequest request) { return queryStreamResult(); }

public record GroupResult(List<AllTheTypesKvEntity.AllTheTypes> grouped, long totalCount) {}
Expand Down

0 comments on commit 57c6f21

Please sign in to comment.