EmmyMiao87 opened a new issue #5083:
URL: https://github.com/apache/incubator-doris/issues/5083
**Describe the bug**
If user wants to create materialized view with a mv column which is
transformed from original column in agg family table,
Doris will throw a inaccurate error message "Column[mv_xxx] does not exist"
This is a confusing error message, the user does not know what wrong
behavior he has done.
**To Reproduce**
Steps to reproduce the behavior:
1. create agg table
```
CREATE TABLE example_table ( k1 TINYINT, k2 DECIMAL(10, 2)
DEFAULT "10.5", v1 int replace, v2 int replace ) ENGINE=olap
AGGREGATE KEY(k1, k2) DISTRIBUTED BY HASH(k1) BUCKETS 32 PROPERTIES
("replication_num"="1");
```
2. create materialized view
```
create materialized view mv as select k1, k2, bitmap_union(to_bitmap(v1))
from example_table group by k1,k2;
ERROR 1064 (HY000): Unexpected exception: Column[mv_bitmap_union_v1] does
not exist
```
**Expected behavior**
```
ERROR 1064 (HY000): errCode = 2, detailMessage = The mv column of agg or
uniq table cannot be transformed from original column[v1]
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]