| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| /* |
| * Description : Run aggregates over records, with only null items for the aggregating fields. |
| * Expected Res : Success |
| * Date : Jun 2nd 2013 |
| */ |
| |
| use test; |
| |
| |
| {'count':test.strict_count(( |
| select element t |
| from Test as t |
| )),'average':test.strict_avg(( |
| select element i.val |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| )),'sum':test.strict_sum(( |
| select element i.val |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| )),'min':test.strict_min(( |
| select element i.valplus |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| )),'max':test.strict_max(( |
| select element i.valplus |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| )),'stddev_samp':test.strict_stddev_samp(( |
| select element i.val |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| )),'stddev_pop':test.strict_stddev_pop(( |
| select element i.val |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| )),'var_samp':test.strict_var_samp(( |
| select element i.val |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| )),'var_pop':test.strict_var_pop(( |
| select element i.val |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| )),'skewness':test.strict_skewness(( |
| select element i.val |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| )),'kurtosis':test.strict_kurtosis(( |
| select element i.val |
| from ( |
| select element t |
| from Test as t |
| ) as i |
| ))}; |