InseeFr / Trevas

Transformation engine and validator for statistics.
MIT License
12 stars 5 forks source link

Null in logical operators #330

Open NicoLaval opened 6 months ago

NicoLaval commented 6 months ago

@noahboerger you reported Null in logical operators results in null in trevas instead of being interpreted as false (seems to be correct behaviour reference manual part 2 (page 99f)).

Can you provide an example please?

noahboerger commented 5 months ago

I think this is more an issue of the testcases from BdI that we have used and the testcases should be adjusted according to the reference manual. The behaviour of trevas seems to be correct out of my point of view.

Examples are e.g. testcases that contains comparisons of null values with null or false values, that are resulting in nulls (as described by the reference manual) but our testcases assume to be resulting in a true value (interpreting null always as false).

(e.g. boolean/and_1)