You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I read the regression test in columnar_cache.sql, I noticed that it contains the following test case:
CREATETABLEbig_table (
id INT,
firstname TEXT,
lastname TEXT
) USING columnar;
INSERT INTO big_table (id, firstname, lastname)
SELECT i,
CONCAT('firstname-', i),
CONCAT('lastname-', i)
FROM generate_series(1, 1000000) as i;
-- get some baselines from multiple chunksSELECT firstname,
lastname,
SUM(id)
FROM big_table
WHERE id <1000GROUP BY firstname,
lastname
UNIONSELECT firstname,
lastname,
SUM(id)
FROM big_table
WHERE id BETWEEN 15000AND16000GROUP BY firstname,
lastname
ORDER BY firstname;
-- enable cachingSETcolumnar.enable_column_cache='t';
-- the results should be the same as aboveSELECT firstname,
lastname,
SUM(id)
FROM big_table
WHERE id <1000GROUP BY firstname,
lastname
UNIONSELECT firstname,
lastname,
SUM(id)
FROM big_table
WHERE id BETWEEN 15000AND16000GROUP BY firstname,
lastname
ORDER BY firstname;
The comments claim that both queries produce the same outcome but columnar_cache.out results differ. The first query returns 2000 rows while the second only returns 999 rows.
Is this expected?
The text was updated successfully, but these errors were encountered:
What's wrong?
Hi,
When I read the regression test in columnar_cache.sql, I noticed that it contains the following test case:
The comments claim that both queries produce the same outcome but columnar_cache.out results differ. The first query returns 2000 rows while the second only returns 999 rows.
Is this expected?
The text was updated successfully, but these errors were encountered: