-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DDF validator didn’t find duplicated entities in a set #197
Comments
test file: in this entity list the validator should discover a duplicate |
I don't completely agree. Case 1. Angie's test file. Should warn if entities are identical and error if they are not (identical=properties are all the same). Case 2. One entity defined in two files. E.g. geo swe is defined in ddf--entities--geo--country.csv and ddf--entities--geo--un_state.csv. In other words: if an entity is defined twice: Does that make sense? |
yes, makes perfect sense |
@jheeffer one note: I created
ask please @rychkog regarding this rule regarding usage via WS |
ddf--entities--geo--country.csv
ddf--entities--geo--un_state.csv
The above is valid but should give a warning because ddf--entities--geo--country.csv
ddf--entities--geo--un_state.csv
The above is invalid and should throw an error because |
Also I'm fine with error'ing on duplicate ID in one file, as under your first case. ddf--entities--geo--country.csv
Invalid because of duplicate |
@jheeffer This idea make sense only if I will analyze regarding warnings:
I think it's not a problem. No need to produce a warning in this case. |
The above example is just that, an example. I just happen to use I'm not sure what you mean by it not making sense if it's not hardcoded. Can you elaborate? |
@jheeffer yes I understand this idea: I'll get keys intersection for two records, for example, for and after I'll analyze values for those fields ( |
Ok, good, but what is the problem with hardcoding you mentioned in your previous comment then? also, if they are equal - "maybe warning" was what I wrote. What do you think? Ok or warning? |
@jheeffer no problem, my bad, sorry |
entities id _can_ be duplicated, for example
male
gender andmale
country, but never within a set. if they are that means the set is brokenThe text was updated successfully, but these errors were encountered: