You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by GitBox <gi...@apache.org> on 2021/01/04 02:28:11 UTC

[GitHub] [kylin] zzcclp commented on pull request #1529: KYLIN-4682 Fix java.lang.IndexOutOfBoundsException due to not setting havingFilter correctly

zzcclp commented on pull request #1529:
URL: https://github.com/apache/kylin/pull/1529#issuecomment-753724772


   Verified passed. LGTM.
   
   ## Before this pr:
   
   **'OPS_USER_ID' is shard by column.**
   
   `SELECT SELLER_ID,
       CASE WHEN OPS_USER_ID = 'MODELER' THEN OPS_USER_ID
            ELSE OPS_USER_ID
       END AS dyna_GROUP,
       SUM(PRICE)
   FROM KYLIN_SALES
   GROUP BY 1, 2
   HAVING SELLER_id is not null and SUM(PRICE)>10
   `
   ![image](https://user-images.githubusercontent.com/9430290/103495673-90f4c580-4e76-11eb-802a-96470b000ee1.png)
   
   `
   select LSTG_FORMAT_NAME, OPS_USER_ID, sum(price) as gmv
   from KYLIN_SALES
   group by LSTG_FORMAT_NAME, OPS_USER_ID
   having OPS_USER_ID = 'MODELER'
   `
   ![image](https://user-images.githubusercontent.com/9430290/103495689-9d791e00-4e76-11eb-95af-5dd45f90c50a.png)
   
   ## After this pr:
   
   **The sql shown above are executed successfully.**
   
   ![image](https://user-images.githubusercontent.com/9430290/103495957-766f1c00-4e77-11eb-918c-7c322e16a26d.png)
   
   
   ![image](https://user-images.githubusercontent.com/9430290/103495950-71aa6800-4e77-11eb-8663-4f83fcc7f45e.png)
   
   
   
   
   
   
   
   
   


----------------------------------------------------------------
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:
users@infra.apache.org