RocMarshal commented on a change in pull request #18386:
URL: https://github.com/apache/flink/pull/18386#discussion_r830500284



##########
File path: 
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowDatabasesOperation.java
##########
@@ -21,8 +21,37 @@
 /** Operation to describe a SHOW DATABASES statement. */
 public class ShowDatabasesOperation implements ShowOperation {
 
+    private final String catalogName;
+    private final boolean notLike;
+    private final String likePattern;
+
+    public ShowDatabasesOperation() {
+        this(null, false, null);
+    }
+
+    public ShowDatabasesOperation(String catalogName, boolean notLike, String 
likePattern) {
+        this.catalogName = catalogName;
+        this.notLike = notLike;
+        this.likePattern = likePattern;
+    }
+
+    public String getCatalogName() {
+        return catalogName;
+    }
+
+    public boolean isNotLike() {
+        return notLike;
+    }
+
+    public String getLikePattern() {
+        return likePattern;
+    }
+
     @Override
     public String asSummaryString() {
+        if (likePattern != null) {

Review comment:
       You can refer to other implementations to see if it need a  preposition, 
from, in or other keywords here.




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