You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case sv @SelectValue(LeafQuat(ast), _, _) => sv.copy(alias =Some("value"))
41
-
case _ => newSelectValue
42
-
}
43
-
case sv @SelectValue(LeafQuat(ast), _, _) =>
44
-
sv.copy(alias =Some("value")) // TODO check if there is no alias already? Probably don't need to since aliasing only really happens in ExpandNestedQueries
45
-
case sv => sv
31
+
// If there is one single select clause that has a primitive (i.e. Leaf) quat then we can alias it to "value"
32
+
// This is the case of `SELECT primitive FROM (SELECT p.age from Person p) AS primitive`
33
+
// where we turn it into `SELECT p.name AS value FROM Person p`
0 commit comments