You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@drill.apache.org by mufy <mu...@gmail.com> on 2014/11/09 05:25:24 UTC

Custom sqlline Prompt

Is there a way to set/define a custom sqlline prompt in Drill to display,
say, the current workspace it is connected to?

For example:


In Hive one could do,
set hive.cli.print.current.db=true

And in MySQL in /etc/my.cnf,
[mysql]
prompt=\u@\h:[\d]>\_

---
Mufeed Usman
My LinkedIn <http://www.linkedin.com/pub/mufeed-usman/28/254/400> | My
Social Cause <http://www.vision2016.org.in/> | My Blogs : LiveJournal
<http://mufeed.livejournal.com>

Re: Custom sqlline Prompt

Posted by Jacques Nadeau <ja...@apache.org>.
Both.

On Sun, Nov 9, 2014 at 8:18 PM, mufy <mu...@gmail.com> wrote:

> Which of the below is not possible currently? Both 1 & 2. Or just 1? If
> only 1, how do I achieve 2?
>
> 1) Way to set/define a custom sqlline prompt in Drill to display, say, the
> current workspace it is connected to.
> 2) Manually list the current workspace I'm connected to.
>
>
>
> ---
> Mufeed Usman
> My LinkedIn <http://www.linkedin.com/pub/mufeed-usman/28/254/400> | My
> Social Cause <http://www.vision2016.org.in/> | My Blogs : LiveJournal
> <http://mufeed.livejournal.com>
>
>
>
>
> On Mon, Nov 10, 2014 at 9:39 AM, Jacques Nadeau <ja...@apache.org>
> wrote:
>
> > Mufeed, that is a great idea.  Unfortunately, there currently isn't a way
> > to configure this.
> >
> > Can you open an enhancement request to support this?
> >
> > thanks,
> > Jacques
> >
> > On Sat, Nov 8, 2014 at 8:58 PM, mufy <mu...@gmail.com> wrote:
> >
> > > And how to manually list the current workspace I'm connected to?
> > >
> >
>

Re: Custom sqlline Prompt

Posted by mufy <mu...@gmail.com>.
Which of the below is not possible currently? Both 1 & 2. Or just 1? If
only 1, how do I achieve 2?

1) Way to set/define a custom sqlline prompt in Drill to display, say, the
current workspace it is connected to.
2) Manually list the current workspace I'm connected to.



---
Mufeed Usman
My LinkedIn <http://www.linkedin.com/pub/mufeed-usman/28/254/400> | My
Social Cause <http://www.vision2016.org.in/> | My Blogs : LiveJournal
<http://mufeed.livejournal.com>




On Mon, Nov 10, 2014 at 9:39 AM, Jacques Nadeau <ja...@apache.org> wrote:

> Mufeed, that is a great idea.  Unfortunately, there currently isn't a way
> to configure this.
>
> Can you open an enhancement request to support this?
>
> thanks,
> Jacques
>
> On Sat, Nov 8, 2014 at 8:58 PM, mufy <mu...@gmail.com> wrote:
>
> > And how to manually list the current workspace I'm connected to?
> >
>

Re: Custom sqlline Prompt

Posted by Jacques Nadeau <ja...@apache.org>.
Mufeed, that is a great idea.  Unfortunately, there currently isn't a way
to configure this.

Can you open an enhancement request to support this?

thanks,
Jacques

On Sat, Nov 8, 2014 at 8:58 PM, mufy <mu...@gmail.com> wrote:

> And how to manually list the current workspace I'm connected to?
>

Re: Custom sqlline Prompt

Posted by mufy <mu...@gmail.com>.
And how to manually list the current workspace I'm connected to?