Skip to content

datafusion-proto does not support view table scan #3874

@r4ntix

Description

@r4ntix

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
create view, then query from the view fails:

/* benchmark q15 sql */
create view revenue0 (supplier_no, total_revenue) as
select
	l_suppkey,
	sum(l_extendedprice * (1 - l_discount))
from
	lineitem
where
	l_shipdate >= date '1996-01-01'
	and l_shipdate < date '1996-01-01' + interval '3' month
group by
	l_suppkey;

select
	s_suppkey,
	s_name,
	s_address,
	s_phone,
	total_revenue
from
	supplier,
	revenue0
where
	s_suppkey = supplier_no
	and total_revenue = (
		select
			max(total_revenue)
		from
			revenue0
	)
order by
	s_suppkey;

drop view revenue0;
Error: Internal("logical plan to_proto unsupported table provider Any { .. }")

This problem was found in arrow-ballista's benchmarks test: apache/datafusion-ballista#372

Describe the solution you'd like
Add view table scan support

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions