This is an automated email from the ASF dual-hosted git repository.

zhaoc pushed a commit to branch imay-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git

commit 9108a999a045c00133a2361165db6dbe15719348
Author: Zhao Chun <[email protected]>
AuthorDate: Fri Jul 24 23:33:17 2020 +0800

    Let linked-schema change work for BETA tablet
    
    #4181
---
 be/src/olap/schema_change.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/schema_change.cpp b/be/src/olap/schema_change.cpp
index 8dcd8d7..555a664 100644
--- a/be/src/olap/schema_change.cpp
+++ b/be/src/olap/schema_change.cpp
@@ -2141,7 +2141,7 @@ OLAPStatus 
SchemaChangeHandler::_parse_request(TabletSharedPtr base_tablet,
         *sc_directly = true;
     }
 
-    if (new_tablet->tablet_meta()->preferred_rowset_type() == BETA_ROWSET) {
+    if (base_tablet->tablet_meta()->preferred_rowset_type() != 
new_tablet->tablet_meta()->preferred_rowset_type()) {
         // if the default rowset type is alpha, and tablet meta has 
preferred_rowset_type
         // field set to BETA_ROWST, just use directly type
         *sc_directly = true;


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

Reply via email to