qidaye opened a new issue, #41368:
URL: https://github.com/apache/doris/issues/41368

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   master
   
   ### What's Wrong?
   
   When drop a column which has bloom filter, the column is dropped, but the 
bloom filter info are not dropped.
   
   ### What You Expected?
   
   Drop column and the bloom filter is dropped too.
   
   ### How to Reproduce?
   
   ```
   mysql> create table table1 (
       ->     k1 INT,
       ->     c1 varchar(10),
       -> ) duplicate key(k1) distributed by hash(k1) buckets 1
       -> properties(
       ->     "replication_num" = "1",
       ->     "bloom_filter_columns" = "c1"
       -> );
   Query OK, 0 rows affected (0.01 sec)
   
   mysql>
   mysql> alter table table1 drop column c1;
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> show create table table1;
   
+--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | Table  | Create Table                                                      
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
 |
   
+--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | table1 | CREATE TABLE `table1` (
     `k1` int NULL
   ) ENGINE=OLAP
   DUPLICATE KEY(`k1`)
   DISTRIBUTED BY HASH(`k1`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "min_load_replica_num" = "-1",
   "bloom_filter_columns" = "",
   "is_being_synced" = "false",
   "storage_medium" = "hdd",
   "storage_format" = "V2",
   "inverted_index_storage_format" = "V2",
   "light_schema_change" = "true",
   "disable_auto_compaction" = "false",
   "binlog.enable" = "false",
   "binlog.ttl_seconds" = "86400",
   "binlog.max_bytes" = "9223372036854775807",
   "binlog.max_history_nums" = "9223372036854775807",
   "enable_single_replica_compaction" = "false",
   "group_commit_interval_ms" = "10000",
   "group_commit_data_bytes" = "134217728"
   ); |
   
+--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   ```
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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