|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | + |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | + |
| 19 | +statement ok |
| 20 | +CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER) |
| 21 | + |
| 22 | +statement ok |
| 23 | +CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER) |
| 24 | + |
| 25 | +statement ok |
| 26 | +CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER) |
| 27 | + |
| 28 | +statement ok |
| 29 | +INSERT INTO tab0 VALUES(83,0,38) |
| 30 | + |
| 31 | +statement ok |
| 32 | +INSERT INTO tab0 VALUES(26,0,79) |
| 33 | + |
| 34 | +statement ok |
| 35 | +INSERT INTO tab0 VALUES(43,81,24) |
| 36 | + |
| 37 | +statement ok |
| 38 | +INSERT INTO tab1 VALUES(22,6,8) |
| 39 | + |
| 40 | +statement ok |
| 41 | +INSERT INTO tab1 VALUES(28,57,45) |
| 42 | + |
| 43 | +statement ok |
| 44 | +INSERT INTO tab1 VALUES(82,44,71) |
| 45 | + |
| 46 | +statement ok |
| 47 | +INSERT INTO tab2 VALUES(15,61,87) |
| 48 | + |
| 49 | +statement ok |
| 50 | +INSERT INTO tab2 VALUES(91,59,79) |
| 51 | + |
| 52 | +statement ok |
| 53 | +INSERT INTO tab2 VALUES(92,41,58) |
| 54 | + |
| 55 | +# group by same column |
| 56 | +query I |
| 57 | +SELECT 38 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1; |
| 58 | +---- |
| 59 | +38 |
| 60 | +38 |
0 commit comments