You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by Ryan Blue <rb...@netflix.com.INVALID> on 2017/04/03 17:04:36 UTC
SQL interpreter
I've been working on improvements to the SQL interpreter, but I'm not quite
sure why it works the way it currently does. Right now, the interpreter is
associated with a SQL service that is a BrokerService. BrokerService says
that it is a high-level interface between the JVM and another process, like
R or Python, so it isn't clear why SQL uses it.
The version I have working is considerably simpler and uses the lazy
`kernel.sparkSession` accessor. Is there a reason why the current one
doesn't use this approach?
rb
--
Ryan Blue
Software Engineer
Netflix
Re: SQL interpreter
Posted by Chip Senkbeil <ch...@gmail.com>.
When refactoring our original interpreter codebase to support new languages
such as Python and R, I wrote the broker service to abstract the process of
communicating with another language's interpreter. When SQL was added, it
was easier to add a stubbed-out broker service such that the interpreter
followed the same structure and interfaces as the others.
The other intention was that we might fork the broker service to run in a
separate process along with the interpreter itself.
Go ahead and put your code as a WIP PR and I can take a look at it later.
On Mon, Apr 3, 2017 at 12:05 PM Ryan Blue <rb...@netflix.com.invalid> wrote:
> I've been working on improvements to the SQL interpreter, but I'm not quite
> sure why it works the way it currently does. Right now, the interpreter is
> associated with a SQL service that is a BrokerService. BrokerService says
> that it is a high-level interface between the JVM and another process, like
> R or Python, so it isn't clear why SQL uses it.
>
> The version I have working is considerably simpler and uses the lazy
> `kernel.sparkSession` accessor. Is there a reason why the current one
> doesn't use this approach?
>
> rb
>
> --
> Ryan Blue
> Software Engineer
> Netflix
>