You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/24 12:44:58 UTC
[GitHub] [doris] morrySnow opened a new issue, #13605: [Bug] Unknown column when use MV and table alias
morrySnow opened a new issue, #13605:
URL: https://github.com/apache/doris/issues/13605
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
### Version
all
### What's Wrong?
throw exception
```
Unexpected exception: org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Unknown column 'mv_bitmap_union_mh' in 'default_cluster:test.original_table'
```
### What You Expected?
query success
### How to Reproduce?
```sql
CREATE TABLE test.original_table
(
day date,
aid bigint,
lid bigint,
yid bigint,
mh bigint,
my bigint
)
DUPLICATE KEY(`day`, `aid`, `lid`)
DISTRIBUTED BY HASH(aid)
PROPERTIES ("replication_num" = "1" );
insert into test.original_table values('2022-10-16', 1665710553, 1665710553, 1665710553, 1665700553, 1665700553);
create materialized view mv_table as
select day,aid,lid,
bitmap_union(to_bitmap(mh)) as wu,
bitmap_union(to_bitmap(my)) as mu
from test.original_table
group by day, aid, lid;
```
wait a while until mv create success. and then
```sql
select t0.aid, t0.lid, count(distinct mh), count(distinct my)
from test.original_table t0
where t0.day = '2022-10-16' and t0.lid > 0 group by t0.aid, t0.lid;
```
### 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: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman closed issue #13605: [Bug] Unknown column when use MV and table alias
Posted by GitBox <gi...@apache.org>.
morningman closed issue #13605: [Bug] Unknown column when use MV and table alias
URL: https://github.com/apache/doris/issues/13605
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org