leborchuk commented on PR #708:
URL: https://github.com/apache/cloudberry/pull/708#issuecomment-2465641061

   Tests still failed - patch did not help
   
   The good news it's stable reproduced in my dev env, script for it -
   
   ```
   CREATE TABLE city (
       id integer NOT NULL,
       name text NOT NULL,
       countrycode character(3) NOT NULL,
       district text NOT NULL,
       population integer NOT NULL
   ) distributed by(id);
   
   
   
   CREATE TABLE country (
       code character(3) NOT NULL,
       name text NOT NULL,
       continent text NOT NULL,
       region text NOT NULL,
       surfacearea numeric(10,2) NOT NULL,
       indepyear smallint,
       population integer NOT NULL,
       lifeexpectancy real,
       gnp numeric(10,2),
       gnpold numeric(10,2),
       localname text NOT NULL,
       governmentform text NOT NULL,
       headofstate text,
       capital integer,
       code2 character(2) NOT NULL
   ) distributed by (code);
   
   
   
   CREATE TABLE countrylanguage (
       countrycode character(3) NOT NULL,
       "language" text NOT NULL,
       isofficial boolean NOT NULL,
       percentage real NOT NULL
   )distributed by (countrycode,language);
   
   with diversecountries as
   (select country.code,country.name,country.capital,d.CNT
    from country,
    (select countrylanguage.countrycode,count(*) as CNT from countrylanguage 
group by countrycode
     HAVING count(*) > 6) d
    where d.countrycode = country.code and country.gnp > 100000)
   select * from
   (
   select
   (select max(CNT) from diversecountries where  diversecountries.code = 
country.code) CNT,country.name COUNTRY,city.name CAPITAL
   from country,city where country.capital = city.id) FOO where FOO.CNT is not 
null;
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to