Class AggregatingSelectScope.Resolved

  • Enclosing class:

    public class AggregatingSelectScope.Resolved
    extends java.lang.Object
    Information about an aggregating scope that can only be determined after validation has occurred. Therefore it cannot be populated when the scope is created.
    • Field Detail

      • extraExprList

        public final<SqlNode> extraExprList
      • groupExprList

        public final<SqlNode> groupExprList
      • groupSets

        public final<ImmutableBitSet> groupSets
      • groupExprProjection

        public final java.util.Map<java.lang.Integer,​java.lang.Integer> groupExprProjection
    • Constructor Detail

      • Resolved

        Resolved​(java.util.List<SqlNode> extraExprList,
                 java.util.List<SqlNode> groupExprList,
                 java.lang.Iterable<ImmutableBitSet> groupSets,
                 java.util.Map<java.lang.Integer,​java.lang.Integer> groupExprProjection)
    • Method Detail

      • isNullable

        public boolean isNullable​(int i)
        Returns whether a field should be nullable due to grouping sets.
      • isGroupingExpr

        public boolean isGroupingExpr​(SqlNode operand)
        Returns whether a given expression is equal to one of the grouping expressions. Determines whether it is valid as an operand to GROUPING.
      • lookupGroupingExpr

        public int lookupGroupingExpr​(SqlNode operand)