TsukiokaKogane commented on code in PR #63850:
URL: https://github.com/apache/doris/pull/63850#discussion_r3362310819


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -4025,4 +4019,30 @@ public void createTableStream(CreateStreamCommand 
command) throws DdlException {
             LOG.info("successfully create stream[{}]", streamName);
         }
     }
+
+    void checkBaseTableAvailable(TableIf tableIf) throws DdlException {
+        if (!BaseTableStream.isTableTypeSupported(tableIf)) {

Review Comment:
   ok



##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -4010,6 +4001,9 @@ public void createTableStream(CreateStreamCommand 
command) throws DdlException {
                 } catch (AnalysisException e) {
                     throw new DdlException(e.getMessage(), e);
                 }
+                if (baseTable instanceof OlapTable) {
+                    checkBaseTableAvailableForStreamType((OlapTable) 
baseTable, newStream.getConsumeType());

Review Comment:
   ok



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