You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Xurenhe (Jira)" <ji...@apache.org> on 2022/03/10 13:01:00 UTC

[jira] [Updated] (CALCITE-5038) Making AGGREGATE_ANY_PULL_UP_CONSTANTS's test case more rigorous

     [ https://issues.apache.org/jira/browse/CALCITE-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xurenhe updated CALCITE-5038:
-----------------------------
    Description: 
Some test cases for AGGREGATE_ANY_PULL_UP_CONSTANTS aren't rigorous.

 
{code:java}
//sql in testAggregateDynamicFunction
select hiredate
from sales.emp
where sal is null and hiredate = current_timestamp
group by sal, hiredate
having count(*) > 3
 {code}
But we know that sal in table of sales.emp is not null, so this case should be changed to

 

 
{code:java}
//代码占位符
select hiredate
from sales.emp
where mrg is null and hiredate = current_timestamp
group by mrg, hiredate
having count(*) > 3 {code}
 

Test case of *_testAggregateConstantKeyRule3_* has the same problem.

 

  was:
Some test cases for AGGREGATE_ANY_PULL_UP_CONSTANTS aren't rigorous.

 
{code:java}
//sql in testAggregateDynamicFunction
select hiredate
from sales.emp
where sal is null and hiredate = current_timestamp
group by sal, hiredate
having count(*) > 3
 {code}
But we know that sal in table of sales.emp is not null, so this case should be changed to

 

 
{code:java}
//代码占位符
select hiredate
from sales.emp
where mrg is null and hiredate = current_timestamp
group by sal, hiredate
having count(*) > 3 {code}
 

Test case of *_testAggregateConstantKeyRule3_* has the same problem.

 


> Making AGGREGATE_ANY_PULL_UP_CONSTANTS's test case more rigorous
> ----------------------------------------------------------------
>
>                 Key: CALCITE-5038
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5038
>             Project: Calcite
>          Issue Type: Test
>          Components: tests
>            Reporter: Xurenhe
>            Assignee: Xurenhe
>            Priority: Minor
>
> Some test cases for AGGREGATE_ANY_PULL_UP_CONSTANTS aren't rigorous.
>  
> {code:java}
> //sql in testAggregateDynamicFunction
> select hiredate
> from sales.emp
> where sal is null and hiredate = current_timestamp
> group by sal, hiredate
> having count(*) > 3
>  {code}
> But we know that sal in table of sales.emp is not null, so this case should be changed to
>  
>  
> {code:java}
> //代码占位符
> select hiredate
> from sales.emp
> where mrg is null and hiredate = current_timestamp
> group by mrg, hiredate
> having count(*) > 3 {code}
>  
> Test case of *_testAggregateConstantKeyRule3_* has the same problem.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)