Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I would like to report what I believe is a bug in inner and outer set expressions feature (May 2023 patch 1), not sure if this forum can be a suitable location.
Given the the script,
Fruits:
LOAD * Inline [
Type,Color,Quantity
apple,green,1
apple,green,1
apple,green,1
orange,orange,1
orange,orange,1
];
Consider the below formulae outputs, where we select apples (which exist in the data set) and kiwis (which do not exist):
Sum({<Type={'apple'}, Color={'green'}>} Quantity)
|
3 | OK |
{<Type={'apple'}>} Sum({<Color={'green'}>} Quantity)
|
3 | OK |
{<Type={'apple'}, Color={'green'}>} Sum(Quantity)
|
3 | OK |
Sum({<Type={'kiwi'}, Color={'green'}>} Quantity)
|
0 | OK |
{<Type={'kiwi'}>} Sum( {<Color={'green'}>} Quantity)
|
3 | WRONG!! The outer set analysis is not inherited! |
{<Type={'kiwi'}, Color={'green'}>} Sum(Quantity)
|
0 |
OK |
Sum({<Type={'orange'}, Color={'green'}>} Quantity)
|
0 |
OK |
{<Type={'orange'}>} Sum( {<Color={'green'}>} Quantity)
|
0 |
OK |
{<Type={'orange'}, Color={'green'}>} Sum(Quantity)
|
0 |
OK |
Sum({<Type={'kiwi'}>} Quantity)
|
0 |
OK |
{<Type={'kiwi'}>} Sum( Quantity)
|
0 |
OK |
As per the results above: outer set expression is not inherited if
Could someone confirm this is indeed a bug and whether it has already been fixed in the recent version? Thanks!