RaigorJiang commented on code in PR #17820:
URL: https://github.com/apache/shardingsphere/pull/17820#discussion_r877835837


##########
shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/asserts/statement/distsql/rql/impl/rule/ShowShadowTableRulesStatementAssert.java:
##########
@@ -42,10 +42,10 @@ public final class ShowShadowTableRulesStatementAssert {
      */
     public static void assertIs(final SQLCaseAssertContext assertContext, 
final ShowShadowTableRulesStatement actual, final 
ShowShadowTableRulesStatementTestCase 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());
         } else {
-            assertFalse(assertContext.getText("Actual schema should not 
exist."), actual.getSchema().isPresent());
+            assertFalse(assertContext.getText("Actual schema should not 
exist."), actual.getDatabase().isPresent());

Review Comment:
   Actual database



-- 
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]

Reply via email to