Skip to content

Commit

Permalink
Minor cleanup.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Apr 15, 2023
1 parent 899d083 commit df54e79
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,6 @@ public static Property<LogicalPlan, Table> table() {
: Optional.empty());
}

/**
* Logical pagination with page size.
*/
public static Property<LogicalPlan, Integer> pagination() {
return Property.optionalProperty("pagination",
plan -> plan instanceof LogicalPaginate
? Optional.of(((LogicalPaginate) plan).getPageSize())
: Optional.empty());
}

/**
* Logical write with table field.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,4 @@ void table_is_empty() {
() -> assertFalse(Patterns.writeTable().getFunction().apply(plan).isPresent())
);
}

@Test
void pagination() {
assertAll(
() -> assertTrue(Patterns.pagination().getFunction()
.apply(mock(LogicalPaginate.class)).isPresent()),
() -> assertFalse(Patterns.pagination().getFunction()
.apply(mock(LogicalFilter.class)).isPresent())
);
}
}

0 comments on commit df54e79

Please sign in to comment.