blob: 8101238f428171faae17a9f7806b4b877528b75f [file] [log] [blame]
/*
* 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 : Feb 7th 2014
*/
use test;
{'sql-count':test.array_count((
select element t
from Test as t
)),'average':test.array_avg((
select element i.val
from (
select element t
from Test as t
) as i
)),'sql-sum':test.array_sum((
select element i.val
from (
select element t
from Test as t
) as i
)),'sql-min':test.array_min((
select element i.valplus
from (
select element t
from Test as t
) as i
)),'sql-max':test.array_max((
select element i.valplus
from (
select element t
from Test as t
) as i
)),'sql-stddev_samp':test.array_stddev_samp((
select element i.valplus
from (
select element t
from Test as t
) as i
)),'sql-stddev_pop':test.array_stddev_pop((
select element i.valplus
from (
select element t
from Test as t
) as i
)),'sql-var_samp':test.array_var_samp((
select element i.valplus
from (
select element t
from Test as t
) as i
)),'sql-var_pop':test.array_var_pop((
select element i.valplus
from (
select element t
from Test as t
) as i
)),'sql-skewness':test.array_skewness((
select element i.valplus
from (
select element t
from Test as t
) as i
)),'sql-kurtosis':test.array_kurtosis((
select element i.valplus
from (
select element t
from Test as t
) as i
))};