Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5038

Making AGGREGATE_ANY_PULL_UP_CONSTANTS's test case more rigorous

    XMLWordPrintableJSON

Details

    Description

      Some test cases for AGGREGATE_ANY_PULL_UP_CONSTANTS aren't rigorous.

       

      //sql in testAggregateDynamicFunction
      select hiredate
      from sales.emp
      where sal is null and hiredate = current_timestamp
      group by sal, hiredate
      having count(*) > 3
       

      But we know that sal in table of sales.emp is not null, so this case should be changed to

       

       

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

       

      Test case of testAggregateConstantKeyRule3 has the same problem.

       

      Attachments

        Issue Links

          Activity

            People

              wojustme Xurenhe
              wojustme Xurenhe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m