Hi there
I'm trying to evaluate whether partition elimination is occurring effectively with the following example, and looking at the documentation, cant see any way of deternmining this on this page:
https://my.vertica.com/docs/CE/6.0.1/HTML/index.htm#13731.htm
We store our facts with an idDate, which links to a date dimension with a business date, and wanted to make a partition strategy by month / year, as follows:
DDL
CREATE TABLE rl.FactTest
( idDate INT NOT NULL PRIMARY KEY
,idDim1 INT NOT NULL
,idDim2 INT NOT NULL
,value DECIMAL(22,6)
)
ORDER BY idDate
PARTITION BY ( FLOOR(idDate / 100)::INT );
INSERT INTO rl.FactTest (idDate, idDim1, idDim2, value) VALUES (20120101, 1, 2, 300.67);
INSERT INTO rl.FactTest (idDate, idDim1, idDim2, value) VALUES (20120201, 3, 4, 300.67);
explain
SELECT * FROM rl.FactTest
WHERE idDate = 20120201
Output
------------------------------
QUERY PLAN DESCRIPTION:
------------------------------
explain SELECT * FROM rl.FactTest WHERE idDate = 20120201
Access Path:
+-STORAGE ACCESS for FactTest [Cost: 8, Rows: 1 (NO STATISTICS)] (PATH ID: 1)
| Projection: rl.FactTest_b0
| Materialize: FactTest.idDate, FactTest.idDim1, FactTest.idDim2, FactTest.value
| Filter: (FactTest.idDate = 20120201)
| Execute on: db_node0002
How is it possible to determine partition elimination in Vertica?
Thanks
Mike
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
ideas?