/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/ppd_gby.q
# · text · 12 lines · 10 code · 2 blank · 0 comment · 0 complexity · b68e1d00adcf60b04cbbf6faec7110fc MD5 · raw file
- set hive.optimize.ppd=true;
- EXPLAIN
- SELECT src1.c1
- FROM
- (SELECT src.value as c1, count(src.key) as c2 from src where src.value > 'val_10' group by src.value) src1
- WHERE src1.c1 > 'val_200' and (src1.c2 > 30 or src1.c1 < 'val_400');
- SELECT src1.c1
- FROM
- (SELECT src.value as c1, count(src.key) as c2 from src where src.value > 'val_10' group by src.value) src1
- WHERE src1.c1 > 'val_200' and (src1.c2 > 30 or src1.c1 < 'val_400');