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

lijibing pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 6958dec2420 branch-2.1: [fix](regression)Fix schema change statistics 
case. Neredis not allow change MV schema. #46433 (#46448)
6958dec2420 is described below

commit 6958dec242074a4b047553fa8b79b297173344e6
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jan 6 16:50:52 2025 +0800

    branch-2.1: [fix](regression)Fix schema change statistics case. Neredis not 
allow change MV schema. #46433 (#46448)
    
    Cherry-picked from #46433
    
    Co-authored-by: James <[email protected]>
---
 .../test_schema_change_statistics.groovy           | 24 ++++++++--------------
 1 file changed, 8 insertions(+), 16 deletions(-)

diff --git 
a/regression-test/suites/statistics/test_schema_change_statistics.groovy 
b/regression-test/suites/statistics/test_schema_change_statistics.groovy
index 6b411c156d7..0183a58e537 100644
--- a/regression-test/suites/statistics/test_schema_change_statistics.groovy
+++ b/regression-test/suites/statistics/test_schema_change_statistics.groovy
@@ -99,15 +99,11 @@ suite("test_schema_change_statistics") {
     result = sql """show column cached stats change"""
     assertEquals(8, result.size())
 
-    sql """ALTER TABLE change DROP COLUMN mv_value1 from mv1;"""
-    wait_schema_change_finished()
-    stats_dropped("change")
-
     sql """analyze table change with sync;"""
     result = sql """show column stats change"""
-    assertEquals(7, result.size())
+    assertEquals(8, result.size())
     result = sql """show column cached stats change"""
-    assertEquals(7, result.size())
+    assertEquals(8, result.size())
 
     sql """ALTER TABLE change ADD COLUMN new_key INT key DEFAULT "0" AFTER 
key2;"""
     wait_schema_change_finished()
@@ -115,9 +111,9 @@ suite("test_schema_change_statistics") {
 
     sql """analyze table change with sync;"""
     result = sql """show column stats change"""
-    assertEquals(8, result.size())
+    assertEquals(9, result.size())
     result = sql """show column cached stats change"""
-    assertEquals(8, result.size())
+    assertEquals(9, result.size())
 
     sql """ALTER TABLE change DROP COLUMN new_key;"""
     wait_schema_change_finished()
@@ -125,19 +121,15 @@ suite("test_schema_change_statistics") {
 
     sql """analyze table change with sync;"""
     result = sql """show column stats change"""
-    assertEquals(7, result.size())
+    assertEquals(8, result.size())
     result = sql """show column cached stats change"""
-    assertEquals(7, result.size())
-
-    sql """ALTER TABLE change MODIFY COLUMN value2 BIGINT AFTER value3;"""
-    wait_schema_change_finished()
-    stats_dropped("change")
+    assertEquals(8, result.size())
 
     sql """analyze table change with sync;"""
     result = sql """show column stats change"""
-    assertEquals(7, result.size())
+    assertEquals(8, result.size())
     result = sql """show column cached stats change"""
-    assertEquals(7, result.size())
+    assertEquals(8, result.size())
 
 
     sql """CREATE TABLE change_no_index (


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

Reply via email to