Sign in
apache
/
hive
/
6b095edc31a9baa0ae805e2b5aea88101284d84b
/
.
/
ql
/
src
/
test
/
queries
/
clientpositive
/
distinct_order_by.q
blob: 92f73e7ad3db62bbd3f1b9272a636d233e3cbcc9 [
file
] [
log
] [
blame
]
create table t1
(
a bigint
,
b
int
);
insert
into
t1
(
a
,
b
)
values
(
1
,
1
),
(
1
,
2
),
(
2
,
2
),
(
3
,
2
);
explain cbo
select
distinct b
+
2
as
alias_b
,
b
from
t1
order
by
b
+
2
,
b
;
select
distinct b
+
2
as
alias_b
,
b
from
t1
order
by
b
+
2
,
b
;