Repository: kylin Updated Branches: refs/heads/KYLIN-1875 84ce3ad62 -> 4c32ab71e
minor, test query of group by pushdown Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/4c32ab71 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/4c32ab71 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/4c32ab71 Branch: refs/heads/KYLIN-1875 Commit: 4c32ab71e63804feaa26a29d6999e90353d21be6 Parents: 84ce3ad Author: Yang Li <[email protected]> Authored: Sat Dec 3 12:33:14 2016 +0800 Committer: Yang Li <[email protected]> Committed: Sat Dec 3 12:33:14 2016 +0800 ---------------------------------------------------------------------- .../resources/query/sql_subquery/query02.sql | 31 ++++++++++++++++++++ .../query/sql_subquery/query02.sql.disable | 25 ---------------- 2 files changed, 31 insertions(+), 25 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/4c32ab71/kylin-it/src/test/resources/query/sql_subquery/query02.sql ---------------------------------------------------------------------- diff --git a/kylin-it/src/test/resources/query/sql_subquery/query02.sql b/kylin-it/src/test/resources/query/sql_subquery/query02.sql new file mode 100644 index 0000000..81b4887 --- /dev/null +++ b/kylin-it/src/test/resources/query/sql_subquery/query02.sql @@ -0,0 +1,31 @@ +-- +-- 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. +-- + +SELECT + week_beg_dt + ,sum(price) +FROM +( + select + test_cal_dt.week_beg_dt + ,test_kylin_fact.price + from test_kylin_fact + inner join edw.test_cal_dt as test_cal_dt + on test_kylin_fact.cal_dt = test_cal_dt.cal_dt +) t +group by week_beg_dt http://git-wip-us.apache.org/repos/asf/kylin/blob/4c32ab71/kylin-it/src/test/resources/query/sql_subquery/query02.sql.disable ---------------------------------------------------------------------- diff --git a/kylin-it/src/test/resources/query/sql_subquery/query02.sql.disable b/kylin-it/src/test/resources/query/sql_subquery/query02.sql.disable deleted file mode 100644 index 968dbae..0000000 --- a/kylin-it/src/test/resources/query/sql_subquery/query02.sql.disable +++ /dev/null @@ -1,25 +0,0 @@ --- --- 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. --- - -SELECT sum(1) AS "COL" - FROM ( - select test_cal_dt.week_beg_dt, sum(test_kylin_fact.price) as sum_price - from test_kylin_fact - inner join test_cal_dt ON test_kylin_fact.cal_dt = test_cal_dt.cal_dt - group by test_cal_dt.week_beg_dt - ) "TableauSQL"
