Hi Vertica Team,
I have executed following sequence of scripts.
--The following series of commands create a table named dim and the corresponding projection:
CREATE TABLE dim (pk INTEGER PRIMARY KEY, x INTEGER);
CREATE PROJECTION dim_p (pk, x) AS SELECT * FROM dim ORDER BY x UNSEGMENTED ALL NODES;
CREATE TABLE fact(fk INTEGER not null REFERENCES dim(pk));
INSERT INTO dim values (1,1);
INSERT INTO dim values (2,2);
INSERT INTO dim values (1,2); --Constraint violation
insert into fact values(1);
select analyze_constraints('dim');
select * from dim d, fact f where d.pk = f.fk;
For the first 10-15 time for the above statement i got the expected error.
ERROR 3149: Duplicate primary/unique key detected in join [(public.fact x public.dim) using fact_super and dim_p_node0001 (PATH ID: 1)]; value [1]
but after that i got the following result. How Veritica is behaving like this.
Test=> select * from dim d, fact f where d.pk = f.fk;
pk | x | fk
----+---+----
1 | 1 | 1
1 | 2 | 1
(2 rows)
Regards
--Noor Ahmed
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.