@Value.Immutable public static interface AggregateExpandWithinDistinctRule.Config extends RelRule.Config
| Modifier and Type | Field and Description |
|---|---|
static AggregateExpandWithinDistinctRule.Config |
DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
throwIfNotUnique()
Whether the code generated by the rule should throw if the arguments
are not functionally dependent.
|
default AggregateExpandWithinDistinctRule |
toRule()
Creates a rule that uses this configuration.
|
AggregateExpandWithinDistinctRule.Config |
withThrowIfNotUnique(boolean throwIfNotUnique)
Sets
throwIfNotUnique(). |
as, description, operandSupplier, relBuilderFactory, withDescription, withOperandSupplier, withRelBuilderFactorystatic final AggregateExpandWithinDistinctRule.Config DEFAULT
default AggregateExpandWithinDistinctRule toRule()
RelRule.ConfigtoRule in interface RelRule.Config@Value.Default default boolean throwIfNotUnique()
For example, if implementing SUM(sal) WITHIN DISTINCT job) ...
GROUP BY deptno,
suppose that within department 10, (job, sal) has the values
('CLERK', 100), ('CLERK', 120), ('MANAGER', 150), ('MANAGER', 150). If
throwIfNotUnique is true, the query would throw because of the
values [100, 120]; if false, the query would sum the distinct values
[100, 120, 150].
AggregateExpandWithinDistinctRule.Config withThrowIfNotUnique(boolean throwIfNotUnique)
throwIfNotUnique().Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.