Filippo Mascolo
09/25/2024, 10:37 AMinjective: true property of a lookup?
From the documentation:
The lookup table must have a key-value pair defined for every input that the LOOKUP function call may encounter. For example, when calling LOOKUP(sku, 'sku_to_name'), the sku_to_name lookup table must have a key for all possible sku.
I wonder how strict is that constraint and what would be the outcome if I make a lookup as injective but not all the sku keys are present.
I am testing it and actually Druid is returning back the correct result (null for cases where the sku key is not present). Unfortunately I dont see any benefit in terms of query execution time.
Any though about that? have you ever experience boos in performance by using the injective: true property?John Kowtko
09/27/2024, 11:45 AMLaksh Singla
09/27/2024, 11:52 AMFilippo Mascolo
09/27/2024, 3:12 PMQuery Rewrites functionality.
Bottom line, I would not change anything