Hi everyone
I just learnt about some strange behaviour from AX that occurs when you group on inMemory tables.
If I say
MyTable t;
select ColA from t group by ColA;
print t.ColB;
then naturally, ColB is null if MyTable is a regular or tempDB table because it isn't part of the field list, nor is it being grouped on which means it's truncated, but strangely, ColB has a value if MyTable is inMemory.
I know these table types are stored differently between the AOS and SQL depending on what type they are, but is this behaviour a bug or a feature?
If it's a feature, what are the rules for what value ColB gets and is there any documentation for it? Does ColB just get the first value for each group of ColA?
Any thoughts appreciated. Tx