You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "m719030572 (via GitHub)" <gi...@apache.org> on 2024/02/01 08:06:08 UTC

[I] [Bug] distinct with windows function,the result contains duplicate values. [doris]

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

   ### 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
   
   2.0.2-rc05
   
   ### What's Wrong?
   
   SQL: 
   `select  distinct max(o_orderdate)over(partition by o_orderdate order by o_orderkey) from orders`
   the result contains duplicate values.
   
   ### What You Expected?
   
   Result shoud be distinct.
   
   ### How to Reproduce?
   
   _No response_
   
   ### 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


Re: [I] [Bug] distinct with windows function,the result contains duplicate values. [doris]

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

   if you execute sql:
   `explain analyzed plan select  distinct o_orderdate from orders`
   this distinct will be convert to agg,however, if there is a window function in the project, this conversion will not occur, only the property distinct = true will be set in the project, and this familiarity will be lost after cascade optimize


-- 
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] distinct with windows function,the result contains duplicate values. [doris]

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

   @yiguolei orders is a tpch table,use tpch-tools to build
   `   ./bin/build-tpch-dbgen.sh
       ./bin/gen-tpch-data.sh -s 1
       ./bin/create-tpch-tables.sh -s 1
       ./bin/load-tpch-data.sh`


-- 
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] distinct with windows function,the result contains duplicate values. [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #30701:
URL: https://github.com/apache/doris/issues/30701#issuecomment-3287226443

   We're closing this issue because it hasn't been updated in a while.
   If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!


-- 
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] distinct with windows function,the result contains duplicate values. [doris]

Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #30701: [Bug] distinct with windows function,the result contains duplicate values.
URL: https://github.com/apache/doris/issues/30701


-- 
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] distinct with windows function,the result contains duplicate values. [doris]

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

   @m719030572  Could you please provide the table schema and some sample data that could reproduce the bug?


-- 
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] distinct with windows function,the result contains duplicate values. [doris]

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

   orders is a tpch table


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