KYLIN-2085 Add test cases
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/75617041 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/75617041 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/75617041 Branch: refs/heads/yang21-hbase1.x Commit: 756170412f48f67be8e15210711eb5ff8d65a7c5 Parents: c1ad449 Author: lidongsjtu <lid...@apache.org> Authored: Wed Oct 12 17:21:24 2016 +0800 Committer: lidongsjtu <lid...@apache.org> Committed: Wed Oct 12 17:21:24 2016 +0800 ---------------------------------------------------------------------- .../src/test/resources/query/sql/query100.sql | 20 ++++++++++++++++++++ .../resources/query/sql_dynamic/query04.dat | 2 ++ .../resources/query/sql_dynamic/query04.sql | 20 ++++++++++++++++++++ 3 files changed, 42 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/75617041/kylin-it/src/test/resources/query/sql/query100.sql ---------------------------------------------------------------------- diff --git a/kylin-it/src/test/resources/query/sql/query100.sql b/kylin-it/src/test/resources/query/sql/query100.sql new file mode 100644 index 0000000..a2b0d1b --- /dev/null +++ b/kylin-it/src/test/resources/query/sql/query100.sql @@ -0,0 +1,20 @@ +-- +-- 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 count(*) as cnt from test_kylin_fact +where lstg_format_name>='AAAA' and 'BBBB'>=lstg_format_name \ No newline at end of file http://git-wip-us.apache.org/repos/asf/kylin/blob/75617041/kylin-it/src/test/resources/query/sql_dynamic/query04.dat ---------------------------------------------------------------------- diff --git a/kylin-it/src/test/resources/query/sql_dynamic/query04.dat b/kylin-it/src/test/resources/query/sql_dynamic/query04.dat new file mode 100644 index 0000000..e8506ab --- /dev/null +++ b/kylin-it/src/test/resources/query/sql_dynamic/query04.dat @@ -0,0 +1,2 @@ +AAAA +BBBB \ No newline at end of file http://git-wip-us.apache.org/repos/asf/kylin/blob/75617041/kylin-it/src/test/resources/query/sql_dynamic/query04.sql ---------------------------------------------------------------------- diff --git a/kylin-it/src/test/resources/query/sql_dynamic/query04.sql b/kylin-it/src/test/resources/query/sql_dynamic/query04.sql new file mode 100644 index 0000000..135cf69 --- /dev/null +++ b/kylin-it/src/test/resources/query/sql_dynamic/query04.sql @@ -0,0 +1,20 @@ +-- +-- 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 count(*) as cnt from test_kylin_fact +where lstg_format_name>=? and ?>=lstg_format_name \ No newline at end of file