diff --git a/integration-tests/sqls/self_join_with_alias.sql b/integration-tests/sqls/self_join_with_alias.sql new file mode 100644 index 000000000000..54c39888dffe --- /dev/null +++ b/integration-tests/sqls/self_join_with_alias.sql @@ -0,0 +1,22 @@ +-- 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 + t1.c9 result +FROM test t1 +INNER JOIN test t2 +ON t1.c9 = t2.c9 +ORDER BY result; diff --git a/integration-tests/sqls/simple_union_all.sql b/integration-tests/sqls/simple_union_all.sql new file mode 100644 index 000000000000..65557b8d263f --- /dev/null +++ b/integration-tests/sqls/simple_union_all.sql @@ -0,0 +1,17 @@ +-- 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 1 num UNION ALL SELECT 2 num ORDER BY num; diff --git a/integration-tests/test_psql_parity.py b/integration-tests/test_psql_parity.py index 766f403f3e54..39cfdee77fbd 100644 --- a/integration-tests/test_psql_parity.py +++ b/integration-tests/test_psql_parity.py @@ -74,7 +74,7 @@ class PsqlParityTest(unittest.TestCase): def test_parity(self): root = Path(os.path.dirname(__file__)) / "sqls" files = set(root.glob("*.sql")) - self.assertEqual(len(files), 12, msg="tests are missed") + self.assertEqual(len(files), 14, msg="tests are missed") for fname in files: with self.subTest(fname=fname): datafusion_output = pd.read_csv(