Repository: kylin Updated Branches: refs/heads/KYLIN-2254 [created] 0a5f8a8bd
KYLIN-1875 try to pass subquery/query02 Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/0a5f8a8b Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/0a5f8a8b Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/0a5f8a8b Branch: refs/heads/KYLIN-2254 Commit: 0a5f8a8bdaf2d6bf0c9c17bcb8c241b359d5c865 Parents: c31c849 Author: Yang Li <liy...@apache.org> Authored: Thu Dec 8 21:40:54 2016 +0800 Committer: Yang Li <liy...@apache.org> Committed: Thu Dec 8 21:40:54 2016 +0800 ---------------------------------------------------------------------- .../resources/query/sql_subquery/query02.sql | 31 ++++++++++++++++++++ .../query/sql_subquery/query02.sql.disabled | 31 -------------------- 2 files changed, 31 insertions(+), 31 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/0a5f8a8b/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..e6751b7 --- /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) as 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/0a5f8a8b/kylin-it/src/test/resources/query/sql_subquery/query02.sql.disabled ---------------------------------------------------------------------- diff --git a/kylin-it/src/test/resources/query/sql_subquery/query02.sql.disabled b/kylin-it/src/test/resources/query/sql_subquery/query02.sql.disabled deleted file mode 100644 index e6751b7..0000000 --- a/kylin-it/src/test/resources/query/sql_subquery/query02.sql.disabled +++ /dev/null @@ -1,31 +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 - week_beg_dt - ,sum(price) as 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