Skip to content

Commit

Permalink
Add support for all types (#5132)
Browse files Browse the repository at this point in the history
Signed-off-by: remzi <13716567376yh@gmail.com>
  • Loading branch information
HaoYang670 authored Apr 6, 2022
1 parent 4c8ec71 commit b1cfb50
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
36 changes: 18 additions & 18 deletions docs/supported_ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -15130,12 +15130,12 @@ are limited.
<td>S</td>
<td>S</td>
<td>S</td>
<td><b>NS</b></td>
<td><b>NS</b></td>
<td><b>NS</b></td>
<td><b>NS</b></td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP;<br/>unsupported child types BINARY, CALENDAR, ARRAY, MAP, STRUCT, UDT</em></td>
<td><b>NS</b></td>
<td>S</td>
<td>S</td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP</em></td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP</em></td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP</em></td>
<td>S</td>
</tr>
<tr>
<td>result</td>
Expand Down Expand Up @@ -15173,12 +15173,12 @@ are limited.
<td>S</td>
<td>S</td>
<td>S</td>
<td><b>NS</b></td>
<td><b>NS</b></td>
<td><b>NS</b></td>
<td><b>NS</b></td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP;<br/>unsupported child types BINARY, CALENDAR, ARRAY, MAP, STRUCT, UDT</em></td>
<td><b>NS</b></td>
<td>S</td>
<td>S</td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP</em></td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP</em></td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP</em></td>
<td>S</td>
</tr>
<tr>
<td>result</td>
Expand Down Expand Up @@ -15216,12 +15216,12 @@ are limited.
<td>S</td>
<td>S</td>
<td>S</td>
<td><b>NS</b></td>
<td><b>NS</b></td>
<td><b>NS</b></td>
<td><b>NS</b></td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP;<br/>unsupported child types BINARY, CALENDAR, ARRAY, MAP, STRUCT, UDT</em></td>
<td><b>NS</b></td>
<td>S</td>
<td>S</td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP</em></td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP</em></td>
<td><em>PS<br/>UTC is only supported TZ for child TIMESTAMP</em></td>
<td>S</td>
</tr>
<tr>
<td>result</td>
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/src/main/python/hash_aggregate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ def test_generic_reductions(data_gen):
'count(1)'),
conf = local_conf)

@pytest.mark.parametrize('data_gen', non_nan_all_basic_gens, ids=idfn)
@pytest.mark.parametrize('data_gen', all_gen + _nested_gens, ids=idfn)
def test_count(data_gen):
assert_gpu_and_cpu_are_equal_collect(
lambda spark : unary_op_df(spark, data_gen) \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2245,9 +2245,7 @@ object GpuOverrides extends Logging {
ExprChecks.fullAgg(
TypeSig.LONG, TypeSig.LONG,
repeatingParamCheck = Some(RepeatingParamCheck(
"input", _gpuCommonTypes + TypeSig.DECIMAL_128 +
TypeSig.STRUCT.nested(_gpuCommonTypes + TypeSig.DECIMAL_128),
TypeSig.all))),
"input", TypeSig.all, TypeSig.all))),
(count, conf, p, r) => new AggExprMeta[Count](count, conf, p, r) {
override def tagAggForGpu(): Unit = {
if (count.children.size > 1) {
Expand Down

0 comments on commit b1cfb50

Please sign in to comment.