You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "cjj2010 (via GitHub)" <gi...@apache.org> on 2023/12/18 04:18:02 UTC

[I] [Bug] Create View Error [doris]

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

   ### 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
   
   doris-2.0.0-rc04
   
   ### What's Wrong?
   
   Error reported when creating view e.g
   ![image](https://github.com/apache/doris/assets/45192870/f71924ec-25ef-4083-9924-33144040e801)
   
   
   ### What You Expected?
   
   Creating views normally
   
   ### How to Reproduce?
   
   e.g Normal Query
   ` create view asd as
    
    
    select
   	custId ,
   	shipperId ,
   	shipAddress, IFNULL(map1["custId ,shipperId ,shipAddress"], 0) as "Boulevard"
   from
   	(
   	select
   		custId ,
   		shipperId ,
   		shipAddress,
   		map_agg(shipAddress,
   		totalfreight) as map1
   	from
   		(
   		select
   			x.custId ,
   			x.shipperId ,
   			x.shipAddress ,
   			sum(x.freight) as totalfreight
   		from
   			qixi_ods.salesorder x
   		group by
   			x.custId ,
   			x.shipperId ,
   			x.shipAddress,
   			x.freight
   ) a
   	group by
   		custId ,
   		shipperId ,
   		shipAddress,
   		totalfreight
    ) t
    `
   ![image](https://github.com/apache/doris/assets/45192870/60ca4610-1c41-4985-8130-5b4b93a8ade5)
   
   create view 
   
   `create view asd as
    select
   	custId ,
   	shipperId ,
   	shipAddress, IFNULL(map1["custId ,shipperId ,shipAddress"], 0) as "Boulevard"
   from
   	(
   	select
   		custId ,
   		shipperId ,
   		shipAddress,
   		map_agg(shipAddress,
   		totalfreight) as map1
   	from
   		(
   		select
   			x.custId ,
   			x.shipperId ,
   			x.shipAddress ,
   			sum(x.freight) as totalfreight
   		from
   			qixi_ods.salesorder x
   		group by
   			x.custId ,
   			x.shipperId ,
   			x.shipAddress,
   			x.freight
   ) a
   	group by
   		custId ,
   		shipperId ,
   		shipAddress,
   		totalfreight
    ) t
    `
   
   ![image](https://github.com/apache/doris/assets/45192870/a87c29b0-ce6a-4a32-aea9-41b96d4a9fdd)
   
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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


Re: [I] [Bug] Create View Error [doris]

Posted by "liugddx (via GitHub)" <gi...@apache.org>.
liugddx commented on issue #28548:
URL: https://github.com/apache/doris/issues/28548#issuecomment-1859657313

   use 2.0.3 and try again.


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


Re: [I] [Bug] Create View Error [doris]

Posted by "cjj2010 (via GitHub)" <gi...@apache.org>.
cjj2010 commented on issue #28548:
URL: https://github.com/apache/doris/issues/28548#issuecomment-1860082723

   > use 2.0.3 and try again.
   
   The experiment passed, thank you very much


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


Re: [I] [Bug] Create View Error [doris]

Posted by "cjj2010 (via GitHub)" <gi...@apache.org>.
cjj2010 closed issue #28548: [Bug]  Create View Error
URL: https://github.com/apache/doris/issues/28548


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