Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand authored Feb 23, 2023
1 parent 0083f44 commit a35f6ce
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ public <R, C> R accept(LogicalPlanNodeVisitor<R, C> visitor, C context) {
return visitor.visitTableScanBuilder(this, context);
}

public boolean pushDownOffset(int i) {
return false;
public void pushDownOffset(int i) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public void reject_query_with_select_fields_and_from() {
assertFalse(plan.accept(visitor, null));
}


@Test
// select x
public void reject_query_without_from() {
Expand Down Expand Up @@ -112,12 +111,6 @@ public void reject_query_with_window_function() {
@Test
// select * from y, z
public void reject_query_with_select_from_multiple_indices() {
// TODO
}

@Test
// unreal case, added for coverage only
public void reject_project_with_multiple_nodes() {
var plan = mock(Project.class);
when(plan.getChild()).thenReturn(List.of(AstDSL.relation("dummy"), AstDSL.relation("pummy")));
when(plan.getProjectList()).thenReturn(List.of(AstDSL.allFields()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void compress_decompress_null_or_empty_string() {
// test added for coverage only
void compress_throws() {
var mock = Mockito.mockConstructionWithAnswer(GZIPOutputStream.class, invocation -> null);
assertThrows(Throwable.class, () -> PaginatedPlanCache.compress("¯\\_()_/¯"));
assertThrows(Throwable.class, () -> PaginatedPlanCache.compress("\\_(`v`)_/"));
mock.close();
}

Expand Down

0 comments on commit a35f6ce

Please sign in to comment.