Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support exists query #426

Closed
BohuTANG opened this issue Apr 28, 2021 · 1 comment · Fixed by #764
Closed

Support exists query #426

BohuTANG opened this issue Apr 28, 2021 · 1 comment · Fixed by #764
Assignees
Labels
A-query Area: databend query C-feature Category: feature community-take prio: high High priority

Comments

@BohuTANG
Copy link
Member

Summary

select number from numbers_mt(10) where number exists (select number from numbers_mt(1));

Need by TPCH q4:

select
    o_orderpriority,
    count(*) as order_count
from
    orders
where
        o_orderdate >= '1993-07-01'
  and o_orderdate < date '1993-07-01' + interval '3' month
  and exists (
        select
            *
        from
            lineitem
        where
                l_orderkey = o_orderkey
          and l_commitdate < l_receiptdate
    )
group by
    o_orderpriority
order by
    o_orderpriority;
@BohuTANG BohuTANG added C-feature Category: feature prio: high High priority SQL A-query Area: databend query labels Apr 28, 2021
@jyizheng
Copy link
Contributor

/assignme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query Area: databend query C-feature Category: feature community-take prio: high High priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants