RaigorJiang commented on code in PR #17820:
URL: https://github.com/apache/shardingsphere/pull/17820#discussion_r877835275
##########
shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/asserts/statement/distsql/rql/impl/rule/ShowShadowAlgorithmsStatementAssert.java:
##########
@@ -42,10 +42,10 @@ public final class ShowShadowAlgorithmsStatementAssert {
*/
public static void assertIs(final SQLCaseAssertContext assertContext,
final ShowShadowAlgorithmsStatement actual, final
ShowShadowAlgorithmsStatementTestCase expected) {
if (null != expected.getSchema()) {
- assertTrue(assertContext.getText("Actual schema should exist."),
actual.getSchema().isPresent());
- SchemaAssert.assertIs(assertContext, actual.getSchema().get(),
expected.getSchema());
+ assertTrue(assertContext.getText("Actual schema should exist."),
actual.getDatabase().isPresent());
+ DatabaseAssert.assertIs(assertContext, actual.getDatabase().get(),
expected.getSchema());
Review Comment:
expected.getDatabase()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]