JNSimba commented on code in PR #69673:
URL: https://github.com/apache/doris/pull/69673#discussion_r4736349030


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/AlterJobCommand.java:
##########
@@ -190,6 +198,22 @@ private void validate() throws Exception {
         }
     }
 
+    /** Return the requested table set, or null when include_tables is 
unchanged. */
+    public List<String> getIncludeTables() throws AnalysisException {
+        if 
(!sourceProperties.containsKey(DataSourceConfigKeys.INCLUDE_TABLES)) {
+            return null;
+        }
+        String tables = 
sourceProperties.get(DataSourceConfigKeys.INCLUDE_TABLES);
+        if (StringUtils.isBlank(tables)) {
+            throw new AnalysisException("include_tables cannot be empty");
+        }
+        List<String> result = new ArrayList<>(new 
LinkedHashSet<>(Arrays.asList(tables.split(","))));

Review Comment:
   We’ll leave this as is for now, to maintain consistency with the previous 
semantics.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to