Strictly, neither a Schema nor a TableFactory is required for planning, only 
for looking up tables if you are building a RelNode tree from SQL. 

If you use RelBuilder and already have the Table objects you need you can build 
the TableScan RelNodes yourself. No Schema required. 

Now there’s a RelOptSchema needed by the planner, but that’s a different thing. 

Julian

> On May 15, 2019, at 7:47 AM, Muhammad Gelbana <[email protected]> wrote:
> 
> The CSV example has what you're looking for.
> 
> Thanks,
> Gelbana
> 
> 
>> On Wed, May 15, 2019 at 4:19 PM Naveen Kumar <[email protected]> wrote:
>> 
>> Hi,
>> 
>> Can I generate relational node tree, if i just have schemas.
>> Is TableFactory a essential part for query planner?
>> 
>> Conceptually Schema should be enough to create a query planner and generate
>> relational tree, If that is the case, can you help me with a sample code on
>> how query planner can work with just schema to generate relational tree.
>> 
>> Thanks
>> Naveen
>> 

Reply via email to