You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "starocean999 (via GitHub)" <gi...@apache.org> on 2023/03/09 13:53:52 UTC

[GitHub] [doris] starocean999 opened a new pull request, #17630: [fix](fe)project should be done inside subquery

starocean999 opened a new pull request, #17630:
URL: https://github.com/apache/doris/pull/17630

   # Proposed changes
   
   Issue Number: close #xxx
   
   WITH t0 AS(
               SELECT report.date1 AS date2 FROM(
                   SELECT **DATE_FORMAT(date, '%Y%m%d')** AS date1 FROM cir_1756_t1
               ) report **GROUP BY report.date1**
               ),
               t3 AS(
                   SELECT date_format(date, '%Y%m%d') AS `date3`
                   FROM `cir_1756_t2`
               )
           SELECT row_number() OVER(ORDER BY date2)
           FROM(
               SELECT t0.date2 FROM t0 LEFT JOIN t3 ON t0.date2 = t3.date3
           ) tx;
   
   The **DATE_FORMAT(date, '%Y%m%d')** was calculated in **GROUP BY** node, which is wrong. This expr should be calculated inside the subquery.
   
   ## Checklist(Required)
   
   * [ ] Does it affect the original behavior
   * [ ] Has unit tests been added
   * [ ] Has document been added or modified
   * [ ] Does it need to update dependencies
   * [ ] Is this PR support rollback (If NO, please explain WHY)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


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


[GitHub] [doris] github-actions[bot] commented on pull request #17630: [fix](fe)project should be done inside subquery

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17630:
URL: https://github.com/apache/doris/pull/17630#issuecomment-1465442268

   PR approved by anyone and no changes requested.


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


[GitHub] [doris] starocean999 commented on pull request #17630: [fix](fe)project should be done inside subquery

Posted by "starocean999 (via GitHub)" <gi...@apache.org>.
starocean999 commented on PR #17630:
URL: https://github.com/apache/doris/pull/17630#issuecomment-1462176564

   run buildall


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


[GitHub] [doris] starocean999 commented on pull request #17630: [fix](fe)project should be done inside subquery

Posted by "starocean999 (via GitHub)" <gi...@apache.org>.
starocean999 commented on PR #17630:
URL: https://github.com/apache/doris/pull/17630#issuecomment-1463191598

   run buildall


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


[GitHub] [doris] github-actions[bot] commented on pull request #17630: [fix](fe)project should be done inside subquery

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17630:
URL: https://github.com/apache/doris/pull/17630#issuecomment-1465442217

   PR approved by at least one committer and no changes requested.


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


[GitHub] [doris] morrySnow merged pull request #17630: [fix](fe)project should be done inside subquery

Posted by "morrySnow (via GitHub)" <gi...@apache.org>.
morrySnow merged PR #17630:
URL: https://github.com/apache/doris/pull/17630


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