Skip to content

Commit

Permalink
checkstyle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lct45 committed Feb 12, 2021
1 parent 2fef018 commit 146230c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ public Node visitTerminateQuery(final SqlBaseParser.TerminateQueryContext contex

@Override
public Node visitShowColumns(final SqlBaseParser.ShowColumnsContext context) {
// Special check to allow `DESCRIBE TABLES` while still allowing users to maintain statements that
// used TABLES as a column name
// Special check to allow `DESCRIBE TABLES` while still allowing
// users to maintain statements that used TABLES as a column name
if (context.sourceName().identifier() instanceof SqlBaseParser.UnquotedIdentifierContext
&& context.sourceName().getText().toUpperCase().equals("TABLES")) {
return new DescribeTables(getLocation(context), context.EXTENDED() != null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@
import org.mockito.junit.MockitoJUnitRunner;
import org.mockito.stubbing.Answer;

import javax.xml.transform.Source;

@SuppressWarnings({"unchecked", "SameParameterValue"})
@RunWith(MockitoJUnitRunner.class)
public class KsqlResourceTest {
Expand Down Expand Up @@ -772,7 +774,7 @@ public void shouldDescribeStatement() {
Collections.singletonList(queries.get(0)),
Optional.empty(),
Collections.emptyList(),
ImmutableList.of("DOWN_STREAM"));
Collections.emptyList());

assertThat(description.getSourceDescription(), is(expectedDescription));
}
Expand Down

0 comments on commit 146230c

Please sign in to comment.