You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select
ps_partkey,
round(sum(ps_supplycost * ps_availqty), 1) as value
from
partsupp,
supplier,
nation
where
ps_suppkey = s_suppkey
and s_nationkey = n_nationkey
and n_name ='ARGENTINA'group by
ps_partkey
havingsum(ps_supplycost * ps_availqty) > (
selectsum(ps_supplycost * ps_availqty) *0.0001000000from
partsupp,
supplier,
nation
where
ps_suppkey = s_suppkey
and s_nationkey = n_nationkey
and n_name ='ARGENTINA'
)
order by
value desc;
the having clause is ignored. we have not support to bind and plan having clause yet.
- id: tpch_q11
sql: |
select
ps_partkey,
sum(ps_supplycost * ps_availqty) as value
from
partsupp,
supplier,
nation
where
ps_suppkey = s_suppkey
and s_nationkey = n_nationkey
and n_name = 'ARGENTINA'
group by
ps_partkey having
sum(ps_supplycost * ps_availqty) > (
select
sum(ps_supplycost * ps_availqty) * 0.0001000000
from
partsupp,
supplier,
nation
where
ps_suppkey = s_suppkey
and s_nationkey = n_nationkey
and n_name = 'ARGENTINA'
)
order by
value desc;
logical_plan: |
LogicalProject { exprs: [$0, $1], expr_alias: [ps_partkey, value] }
LogicalAgg { group_keys: [0], agg_calls: [sum($1)] }
LogicalProject { exprs: [$1, ($4 * $3)], expr_alias: [ , ] }
LogicalFilter { predicate: ($2 = $7) AND ($10 = $15) AND ($16 = 'ARGENTINA':Varchar) }
LogicalJoin { type: Inner, on: always }
LogicalJoin { type: Inner, on: always }
LogicalScan { table: partsupp, columns: [_row_id#0, ps_partkey, ps_suppkey, ps_availqty, ps_supplycost, ps_comment] }
LogicalScan { table: supplier, columns: [_row_id#0, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment] }
LogicalScan { table: nation, columns: [_row_id#0, n_nationkey, n_name, n_regionkey, n_comment] }
TPC-H Q11:
the
having
clause is ignored. we have not support to bind and plan having clause yet.Originally posted by @st1page in #2152 (comment)
The text was updated successfully, but these errors were encountered: