Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-593

Function crashes with PANIC in planning stage related to gp_cte_sharing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • None
    • 2.0.0.0-incubating
    • Optimizer
    • None

    Description

      Small repro:

      set optimizer=off;
      set gp_cte_sharing=on=on;
      create table t (c int);
      insert into t values (2);
      
      explain 
      with cte0 (e) as (values (0), (1)) 
      select c, count(distinct d) disc_d
      from (
          select c, d
          from (
            select 
              case 
                when t.c in (select e from cte0) then 'a'
                when t.c not in (select e from cte0) then 'b'
              end as d,
              c
            from t, cte0
          ) A 
          group by c, d
      ) B
      group by c;
      

      Attachments

        Activity

          People

            aelhelw Amr El-Helw
            xzhang.pivotal xin zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: