Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The order of resolving an undefined alias should be:
Have different resolving mechanism for FROM/UNNEST/Quantifier and others:
– FROM/JOIN/UNNEST/Quantifier: 1. user-defined variables, 2. Datasets
– Others: 1. user-defined variables, 2. field-accesses, 3. Datasets
Always resolving to a dataset as the last option can preserve query stability such that the query semantics will not be perturbed by adding/removing a dataset.