min() and max() Functions Only Take Measures as Arguments

If you pass a dimension to a SAQL min() or max() function, the code throws an error.


This change may break existing SAQL code. Update existing code to use this new behavior.

The SAQL in bold is a min() function with a dimension argument. This statement throws an error.
a = load "0Fbxx000000002qCAA/0Fcxx000000002WCAQ";
a1 = group a by (destination);
q = foreach a1 generate destination as destination, min(destination) as minDestination;
limit q 20;