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
In the Substrait spec, unspecified invocations are read as AGGREGATION_INVOCATION_UNSPECIFIED, and treated as AGGREGATION_INVOCATION_ALL in practice (see: https://github.com/substrait-io/substrait/blob/main/proto/substrait/algebra.proto#L1221-L1230). Arrow's current implementation only accepts plans explicitly using AGGREGATION_INVOCATION_ALL, thus excluding valid plans using AGGREGATION_INVOCATION_UNSPECIFIED.
In order to match the expected behavior, AGGREGATION_INVOCATION_UNSPECIFIED should lead to interpretation as AGGREGATION_INVOCATION_ALL. This will allow acceptance of plans from at least the Substrait producer Ibis, which does not specify this setting.
Component(s)
C++, Other
The text was updated successfully, but these errors were encountered:
…s valid invocation (#15198)
In our use of our Substrait, we only accept AGGREGATION_INVOCATION_ALL for aggregation invocations. This is fine, but the spec (as per: https://github.com/substrait-io/substrait/blob/main/proto/substrait/algebra.proto#L1221-L1230) automatically reads AGGREGATION_INVOCATION_UNSPECIFIED as AGGREGATION_INVOCATION_ALL, while we reject it.
This PR accepts AGGREGATION_INVOCATION_UNSPECIFIED past our error checking. Any requested AGGREGATION_INVOCATION_UNSPECIFIED is thus processed as AGGREGATION_INVOCATION_ALL, with no further functionality changes. The basic aggregation test is modified to test this.
* Closes: #15199
Authored-by: kaesuarez <kaesuarez1423@gmail.com>
Signed-off-by: Weston Pace <weston.pace@gmail.com>
…FIED as valid invocation (apache#15198)
In our use of our Substrait, we only accept AGGREGATION_INVOCATION_ALL for aggregation invocations. This is fine, but the spec (as per: https://github.com/substrait-io/substrait/blob/main/proto/substrait/algebra.proto#L1221-L1230) automatically reads AGGREGATION_INVOCATION_UNSPECIFIED as AGGREGATION_INVOCATION_ALL, while we reject it.
This PR accepts AGGREGATION_INVOCATION_UNSPECIFIED past our error checking. Any requested AGGREGATION_INVOCATION_UNSPECIFIED is thus processed as AGGREGATION_INVOCATION_ALL, with no further functionality changes. The basic aggregation test is modified to test this.
* Closes: apache#15199
Authored-by: kaesuarez <kaesuarez1423@gmail.com>
Signed-off-by: Weston Pace <weston.pace@gmail.com>
…FIED as valid invocation (apache#15198)
In our use of our Substrait, we only accept AGGREGATION_INVOCATION_ALL for aggregation invocations. This is fine, but the spec (as per: https://github.com/substrait-io/substrait/blob/main/proto/substrait/algebra.proto#L1221-L1230) automatically reads AGGREGATION_INVOCATION_UNSPECIFIED as AGGREGATION_INVOCATION_ALL, while we reject it.
This PR accepts AGGREGATION_INVOCATION_UNSPECIFIED past our error checking. Any requested AGGREGATION_INVOCATION_UNSPECIFIED is thus processed as AGGREGATION_INVOCATION_ALL, with no further functionality changes. The basic aggregation test is modified to test this.
* Closes: apache#15199
Authored-by: kaesuarez <kaesuarez1423@gmail.com>
Signed-off-by: Weston Pace <weston.pace@gmail.com>
Describe the enhancement requested
In the Substrait spec, unspecified invocations are read as AGGREGATION_INVOCATION_UNSPECIFIED, and treated as AGGREGATION_INVOCATION_ALL in practice (see: https://github.com/substrait-io/substrait/blob/main/proto/substrait/algebra.proto#L1221-L1230). Arrow's current implementation only accepts plans explicitly using AGGREGATION_INVOCATION_ALL, thus excluding valid plans using AGGREGATION_INVOCATION_UNSPECIFIED.
In order to match the expected behavior, AGGREGATION_INVOCATION_UNSPECIFIED should lead to interpretation as AGGREGATION_INVOCATION_ALL. This will allow acceptance of plans from at least the Substrait producer Ibis, which does not specify this setting.
Component(s)
C++, Other
The text was updated successfully, but these errors were encountered: