incubator-drill-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacques Nadeau <jacq...@apache.org>
Subject Re: Does the Sqlline Support the Cluster Mode
Date Mon, 03 Mar 2014 00:02:45 GMT
Currently the 'optimizer' is just a basic rule based direct
transformation.  You can submit a logical plan.  However, if you do
so, you need to use logical operators.  You cannot use physical
operators in a logical plan.  The plan you are referencing leverages
physical operators.

J

On Sun, Mar 2, 2014 at 3:35 PM, zhixuan <zhoudandelion@gmail.com> wrote:
> Thanks very much. Besides, does it support the optimization for the logical
> plan now? Dose the optimizer works in the Drill now? Since the physical plan
> is the output of the optimizer.
>
> When submit the plan with setting type to "-t logical" like this:
> bin/submit_plan -f sample-data/parquet_scan_union_screen_physical.json -t
> logical -zk 127.0.0.1:2181
>
> It reports an error on parsing a logical plan.
>
> But I can change the plan type ( in the
> parquet_scan_union_screen_physical.json ) to this:
> head:
>     {
>       type: "APACHE_DRILL_LOGICAL",
>       version: 1,
>       generator:
>         {
>           type: "manual"
>         }
>
> And submit it in the  "-t physical" setting:
> bin/submit_plan -f sample-data/parquet_scan_union_screen_logical.json -t
> physical -zk 127.0.0.1:2181
>
> Then I can get results. Is this a bug or something else?
>
> Thanks,
> Xuan
>
> On 3/2/14, 12:24 AM, "Jacques Nadeau" <jacques@apache.org> wrote:
>
>> We're currently in the process right now of transitioning over to automatic
>> exchange insertion using optiq.  This should be available soon.  In the
>> meantime,  you can experiment with the distributed engine using physical
>> plans.
>>
>> Thanks
>> Jacques
>> On Mar 1, 2014 8:41 PM, "zhixuan" <zhoudandelion@gmail.com> wrote:
>>
>>>  Hi all,
>>>
>>>  It seems that the interactive ³sqlline² only works for the single node mode
>>>  according to the following link:
>>>  https://github.com/mhausenblas/apache-drill-sandbox/tree/master/M1
>>>
>>>  Is that true? Can I use the SQL query in distributed mode in some other
>>>  way?
>>>
>>>  Thanks,
>>>  Xuan
>>>
>>>
>>>
>>
>
>

Mime
View raw message