You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by Michael Mior <mm...@uwaterloo.ca> on 2018/02/25 00:24:37 UTC
Google Summer of Code 2018
You have probably seen that Apache was accepted as an organization for this
year's GSoC. I thought I would see if anyone in the Calcite community can
think of any issues that would be a good fit. It's no guarantee we would
get someone to work on it, but it could be a good push to move some
isolated bits of functionality forward that may not get much attention
otherwise.
--
Michael Mior
mmior@apache.org
Re: Google Summer of Code 2018
Posted by Mark Hammond <gp...@themarkhammond.com>.
Thanks Julian for the context. I have no insight on Sigma, unfortunately.
I'm working toward adding such functionality to an Elixir Ecto based platform, and so will sketch something in due course - just concerned this may not be in time for a GSoC submission.
Cheers,
Mark.
> On 28 Feb 2018, at 08:09, Julian Hyde <jh...@apache.org> wrote:
>
> Mark,
>
> Do you know if Sigma is built using Calcite?
>
> I’m totally in agreement about the power of SQL. You can create access-controlled views (or inject filters based on tenant id), give your end-users access to that layer, and you know that your users will get performance without being able to subvert security. It helps a lot that SQL is mathematically closed. If your users don’t like SQL, layer a non-SQL language on top of the relational algebra if you like.
>
> I’d appreciate if you could sketch out the JSON feature set that you think Calcite needs. We already have https://issues.apache.org/jira/browse/CALCITE-950 <https://issues.apache.org/jira/browse/CALCITE-950>; read https://issues.apache.org/jira/browse/DRILL-6035 <https://issues.apache.org/jira/browse/DRILL-6035> for a (sobering) overview of what is needed to fully support reading JSON data.
>
> Julian
>
>
>> On Feb 27, 2018, at 3:25 PM, Mark Hammond <gp...@themarkhammond.com> wrote:
>>
>> I'd like to suggest developing a convenient way to compose WHERE constraints on base queries, via the JSON api.
>>
>> Having a convenient way to inject rigorous application tenancy constraints would be huge boon for SaaS style applications.
>>
>> Calcite, with its JSON driver, could effectively enable any application to safely expose SQL-based queries, and remove the need for limited-capability domain specific languages.
>>
>> Calcite can already restrict queries to whitelisted operators, and the optimiser can deftly handle a bag of tenancy-related constraints.
>>
>> It would be possible to extend further by clamping query COST, etc.
>>
>> E.g. this capability has been productised by stripe, https://stripe.com/us/sigma.
>>
>> Cheers,
>> Mark.
>>
>>
>>> On 25 Feb 2018, at 08:24, Michael Mior <mm...@uwaterloo.ca> wrote:
>>>
>>> You have probably seen that Apache was accepted as an organization for this
>>> year's GSoC. I thought I would see if anyone in the Calcite community can
>>> think of any issues that would be a good fit. It's no guarantee we would
>>> get someone to work on it, but it could be a good push to move some
>>> isolated bits of functionality forward that may not get much attention
>>> otherwise.
>>>
>>> --
>>> Michael Mior
>>> mmior@apache.org
>
Re: Google Summer of Code 2018
Posted by Aman Sinha <am...@apache.org>.
Good discussion. Some thoughts in no particular priority order:
- I think we should also look at the SQL extensions that have been
proposed in SQL++ [1] .. for instance the WHERE clause can contain a
QuantifiedExpression such as
QuantifiedExpression ::= ( (<ANY>|<SOME>) | <EVERY> )
Variable <IN> Expression ( "," Variable "in" Expression )*
<SATISFIES> Expression (<END>)?
- WHERE predicates on JSON fields should be expressed in a manner that
allows determining selectivity estimates using NDV and Histograms,
otherwise cost based optimizations would not be possible.
- Also, what is this community's thoughts on Higher-Order/Lambda
functions that some products have to operate on JSON arrays and maps etc.
?
[1]
https://ci.apache.org/projects/asterixdb/sqlpp/manual.html#Comparison_operators
-Aman
On Tue, Feb 27, 2018 at 4:09 PM, Julian Hyde <jh...@apache.org> wrote:
> Mark,
>
> Do you know if Sigma is built using Calcite?
>
> I’m totally in agreement about the power of SQL. You can create
> access-controlled views (or inject filters based on tenant id), give your
> end-users access to that layer, and you know that your users will get
> performance without being able to subvert security. It helps a lot that SQL
> is mathematically closed. If your users don’t like SQL, layer a non-SQL
> language on top of the relational algebra if you like.
>
> I’d appreciate if you could sketch out the JSON feature set that you think
> Calcite needs. We already have https://issues.apache.org/
> jira/browse/CALCITE-950 <https://issues.apache.org/jira/browse/CALCITE-950>;
> read https://issues.apache.org/jira/browse/DRILL-6035 <
> https://issues.apache.org/jira/browse/DRILL-6035> for a (sobering)
> overview of what is needed to fully support reading JSON data.
>
> Julian
>
>
> > On Feb 27, 2018, at 3:25 PM, Mark Hammond <gp...@themarkhammond.com>
> wrote:
> >
> > I'd like to suggest developing a convenient way to compose WHERE
> constraints on base queries, via the JSON api.
> >
> > Having a convenient way to inject rigorous application tenancy
> constraints would be huge boon for SaaS style applications.
> >
> > Calcite, with its JSON driver, could effectively enable any application
> to safely expose SQL-based queries, and remove the need for
> limited-capability domain specific languages.
> >
> > Calcite can already restrict queries to whitelisted operators, and the
> optimiser can deftly handle a bag of tenancy-related constraints.
> >
> > It would be possible to extend further by clamping query COST, etc.
> >
> > E.g. this capability has been productised by stripe,
> https://stripe.com/us/sigma.
> >
> > Cheers,
> > Mark.
> >
> >
> >> On 25 Feb 2018, at 08:24, Michael Mior <mm...@uwaterloo.ca> wrote:
> >>
> >> You have probably seen that Apache was accepted as an organization for
> this
> >> year's GSoC. I thought I would see if anyone in the Calcite community
> can
> >> think of any issues that would be a good fit. It's no guarantee we would
> >> get someone to work on it, but it could be a good push to move some
> >> isolated bits of functionality forward that may not get much attention
> >> otherwise.
> >>
> >> --
> >> Michael Mior
> >> mmior@apache.org
>
>
Re: Google Summer of Code 2018
Posted by Julian Hyde <jh...@apache.org>.
Mark,
Do you know if Sigma is built using Calcite?
I’m totally in agreement about the power of SQL. You can create access-controlled views (or inject filters based on tenant id), give your end-users access to that layer, and you know that your users will get performance without being able to subvert security. It helps a lot that SQL is mathematically closed. If your users don’t like SQL, layer a non-SQL language on top of the relational algebra if you like.
I’d appreciate if you could sketch out the JSON feature set that you think Calcite needs. We already have https://issues.apache.org/jira/browse/CALCITE-950 <https://issues.apache.org/jira/browse/CALCITE-950>; read https://issues.apache.org/jira/browse/DRILL-6035 <https://issues.apache.org/jira/browse/DRILL-6035> for a (sobering) overview of what is needed to fully support reading JSON data.
Julian
> On Feb 27, 2018, at 3:25 PM, Mark Hammond <gp...@themarkhammond.com> wrote:
>
> I'd like to suggest developing a convenient way to compose WHERE constraints on base queries, via the JSON api.
>
> Having a convenient way to inject rigorous application tenancy constraints would be huge boon for SaaS style applications.
>
> Calcite, with its JSON driver, could effectively enable any application to safely expose SQL-based queries, and remove the need for limited-capability domain specific languages.
>
> Calcite can already restrict queries to whitelisted operators, and the optimiser can deftly handle a bag of tenancy-related constraints.
>
> It would be possible to extend further by clamping query COST, etc.
>
> E.g. this capability has been productised by stripe, https://stripe.com/us/sigma.
>
> Cheers,
> Mark.
>
>
>> On 25 Feb 2018, at 08:24, Michael Mior <mm...@uwaterloo.ca> wrote:
>>
>> You have probably seen that Apache was accepted as an organization for this
>> year's GSoC. I thought I would see if anyone in the Calcite community can
>> think of any issues that would be a good fit. It's no guarantee we would
>> get someone to work on it, but it could be a good push to move some
>> isolated bits of functionality forward that may not get much attention
>> otherwise.
>>
>> --
>> Michael Mior
>> mmior@apache.org
Re: Google Summer of Code 2018
Posted by Mark Hammond <gp...@themarkhammond.com>.
I'd like to suggest developing a convenient way to compose WHERE constraints on base queries, via the JSON api.
Having a convenient way to inject rigorous application tenancy constraints would be huge boon for SaaS style applications.
Calcite, with its JSON driver, could effectively enable any application to safely expose SQL-based queries, and remove the need for limited-capability domain specific languages.
Calcite can already restrict queries to whitelisted operators, and the optimiser can deftly handle a bag of tenancy-related constraints.
It would be possible to extend further by clamping query COST, etc.
E.g. this capability has been productised by stripe, https://stripe.com/us/sigma.
Cheers,
Mark.
> On 25 Feb 2018, at 08:24, Michael Mior <mm...@uwaterloo.ca> wrote:
>
> You have probably seen that Apache was accepted as an organization for this
> year's GSoC. I thought I would see if anyone in the Calcite community can
> think of any issues that would be a good fit. It's no guarantee we would
> get someone to work on it, but it could be a good push to move some
> isolated bits of functionality forward that may not get much attention
> otherwise.
>
> --
> Michael Mior
> mmior@apache.org
Re: Google Summer of Code 2018
Posted by Julian Hyde <jh...@apache.org>.
That would be excellent. Some of the aspects of the paper will be interesting to implement in Calcite - e.g. piecewise linear cost functions.
Can we use existing RelOptRule instances unchanged in MOP (multi-objective parametric) mode? It remains to be seen, but I hope so, because our RelOptRules are a huge asset.
I would also be interested in optimizing queries with 0 parameters (i.e. what Calcite does today), keep the planning state, then add parameters.
Calcite’s cost model is currently broken. RelOptCost is a vector (cpu, io, rows) and therefore is a partial order, whereas Volcano requires a total order. If we are able to convert cost into a scalar, c = p0 * cpu + p1 * io + p2 * rows, where p0, p1 and p2 are parameters, then we now have a total order. With MOP, we would still want to do multi-phase optimization, and we could set some parameters to zero in particular phases to reduce the size of the search space.
Lastly, I would like to tie in Jesus's work on intermediate results where he used a {0, 1} parameter to represent whether a particular intermediate result was populated. He used an ILP solver to find the optimal set of intermediate results to populate but if we were to make Jesus’s parameters into parameters of the MOP model, my hunch is that MOP would be able to find optimal values, i.e. figure out which intermediate results to materialize.
> On Mar 7, 2018, at 6:28 AM, Michael Mior <mm...@uwaterloo.ca> wrote:
>
> Just thought I would point out that I have a fellow student here who seems
> interested in trying to tackle implementing on multi-objective parametric
> query optimization in Calcite. If anyone else would like to be involved in
> that effort, let me know. Although this wouldn't be a GSoC project, I
> believe he's willing to contribute a significant amount of time over the
> summer.
>
> --
> Michael Mior
> mmior@apache.org
>
> 2018-02-27 10:24 GMT-05:00 Edmon Begoli <eb...@gmail.com>:
>
>> If we are to be ambitious, and to give someone a real challenge --
>> implement this approach for Calcite:
>> Multi-objective Parametric Query Optimization
>> https://cacm.acm.org/magazines/2017/10/221322-multi-objective-parametric-
>> query-optimization/fulltext
>>
>> (I think Julian might have mentioned this once before in a different
>> context. I might be wrong ...)
>>
>> On Tue, Feb 27, 2018 at 10:20 AM, Michael Mior <mm...@uwaterloo.ca> wrote:
>>
>>> I would suggest creating a JIRA case to track this. It sounds like a
>> basic
>>> implementation could be of reasonable scope for a GSoC project.
>>>
>>> --
>>> Michael Mior
>>> mmior@apache.org
>>>
>>> 2018-02-26 19:09 GMT-05:00 Chunhui Shi <cs...@mapr.com>:
>>>
>>>> What about "SQL support for JavaScript Object Notation (JSON)"?
>>>> www.iso.org/standard/67367.html<http://www.iso.org/standard/67367.html
>>> ?
>>>>
>>>> There are two categories of JSON functions (8 functions) for query and
>>> for
>>>> constructor, some clauses like PLAN, etc are introduced in this
>> standard.
>>>>
>>>> I did not see the supports in mainstream DBs(Oracle and Sql Server)
>>>> covering all of them, but IS JSON, JSON_QUERY and JSON_VALUE are both
>>>> implemented
>>>>
>>>> SQL server support
>>>> https://docs.microsoft.com/en-us/sql/relational-databases/
>>>> json/validate-query-and-change-json-data-with-built-
>>>> in-functions-sql-server
>>>>
>>>> Oracle:
>>>> https://docs.oracle.com/database/121/ADXDB/json.htm#ADXDB6374
>>>>
>>>> MySQL and Postgres have a lot functions to handle JSON, besides
>>>> JSON_OBJECT or one or two other functions, seems none of its function
>> is
>>>> standardized.
>>>> https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html
>>>>
>>>> Postgres
>>>> <https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html>
>>>> https://www.postgresql.org/docs/current/static/functions-json.html
>>>>
>>>>
>>>> While I think the scope could be self contained, if it is not suitable
>>> for
>>>> this activity do we want to put this into Calcite roadmap?
>>>>
>>>>
>>>> Best,
>>>>
>>>> Chunhui
>>>>
>>>> ________________________________
>>>> From: Julian Hyde <jh...@apache.org>
>>>> Sent: Monday, February 26, 2018 4:00:21 PM
>>>> To: dev
>>>> Subject: Re: Google Summer of Code 2018
>>>>
>>>> Yes.
>>>>
>>>>
>>>>> On Feb 26, 2018, at 2:32 PM, Michael Mior <mm...@uwaterloo.ca>
>> wrote:
>>>>>
>>>>> Thanks Julian! Would these be some good JIRAs to tag?
>>>>>
>>>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
>>>> apache.org_jira_browse_CALCITE-2D1737&d=DwICAg&c=
>>> cskdkSMqhcnjZxdQVpwTXg&r=
>>>> 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
>> eWRg5qGj9K6txN2zGGcqakg&s=
>>>> KXsK-qlYTOf5W1KDQmlqjA7CIj4_CtGlmWirBlPxopI&e=
>>>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
>>>> apache.org_jira_browse_CALCITE-2D1861&d=DwICAg&c=
>>> cskdkSMqhcnjZxdQVpwTXg&r=
>>>> 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
>> eWRg5qGj9K6txN2zGGcqakg&s=
>>>> 6xfRRfhSus-SrVHKvEIYKzcyAaEAUJBLdHbkqjUhrRk&e=
>>>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
>>>> apache.org_jira_browse_CALCITE-2D2031&d=DwICAg&c=
>>> cskdkSMqhcnjZxdQVpwTXg&r=
>>>> 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
>>>> eWRg5qGj9K6txN2zGGcqakg&s=oLu_OiKf-cFe1RxcmAnv2CFW6QPGbpz5uYeiN5y
>> 3EMs&e=
>>>>>
>>>>> --
>>>>> Michael Mior
>>>>> mmior@apache.org
>>>>>
>>>>> 2018-02-26 14:46 GMT-05:00 Julian Hyde <jh...@apache.org>:
>>>>>
>>>>>> Here are two areas that are self-contained and rewarding:
>>>>>> * Spatial functions
>>>>>> * Spark adapter
>>>>>>
>>>>>> Julian
>>>>>>
>>>>>>
>>>>>>
>>>>>>> On Feb 24, 2018, at 4:24 PM, Michael Mior <mm...@uwaterloo.ca>
>>> wrote:
>>>>>>>
>>>>>>> You have probably seen that Apache was accepted as an organization
>>> for
>>>>>> this
>>>>>>> year's GSoC. I thought I would see if anyone in the Calcite
>> community
>>>> can
>>>>>>> think of any issues that would be a good fit. It's no guarantee we
>>>> would
>>>>>>> get someone to work on it, but it could be a good push to move some
>>>>>>> isolated bits of functionality forward that may not get much
>>> attention
>>>>>>> otherwise.
>>>>>>>
>>>>>>> --
>>>>>>> Michael Mior
>>>>>>> mmior@apache.org
>>>>>>
>>>>>>
>>>>
>>>>
>>>
>>
Re: Google Summer of Code 2018
Posted by Michael Mior <mm...@uwaterloo.ca>.
Just thought I would point out that I have a fellow student here who seems
interested in trying to tackle implementing on multi-objective parametric
query optimization in Calcite. If anyone else would like to be involved in
that effort, let me know. Although this wouldn't be a GSoC project, I
believe he's willing to contribute a significant amount of time over the
summer.
--
Michael Mior
mmior@apache.org
2018-02-27 10:24 GMT-05:00 Edmon Begoli <eb...@gmail.com>:
> If we are to be ambitious, and to give someone a real challenge --
> implement this approach for Calcite:
> Multi-objective Parametric Query Optimization
> https://cacm.acm.org/magazines/2017/10/221322-multi-objective-parametric-
> query-optimization/fulltext
>
> (I think Julian might have mentioned this once before in a different
> context. I might be wrong ...)
>
> On Tue, Feb 27, 2018 at 10:20 AM, Michael Mior <mm...@uwaterloo.ca> wrote:
>
> > I would suggest creating a JIRA case to track this. It sounds like a
> basic
> > implementation could be of reasonable scope for a GSoC project.
> >
> > --
> > Michael Mior
> > mmior@apache.org
> >
> > 2018-02-26 19:09 GMT-05:00 Chunhui Shi <cs...@mapr.com>:
> >
> > > What about "SQL support for JavaScript Object Notation (JSON)"?
> > > www.iso.org/standard/67367.html<http://www.iso.org/standard/67367.html
> >?
> > >
> > > There are two categories of JSON functions (8 functions) for query and
> > for
> > > constructor, some clauses like PLAN, etc are introduced in this
> standard.
> > >
> > > I did not see the supports in mainstream DBs(Oracle and Sql Server)
> > > covering all of them, but IS JSON, JSON_QUERY and JSON_VALUE are both
> > > implemented
> > >
> > > SQL server support
> > > https://docs.microsoft.com/en-us/sql/relational-databases/
> > > json/validate-query-and-change-json-data-with-built-
> > > in-functions-sql-server
> > >
> > > Oracle:
> > > https://docs.oracle.com/database/121/ADXDB/json.htm#ADXDB6374
> > >
> > > MySQL and Postgres have a lot functions to handle JSON, besides
> > > JSON_OBJECT or one or two other functions, seems none of its function
> is
> > > standardized.
> > > https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html
> > >
> > > Postgres
> > > <https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html>
> > > https://www.postgresql.org/docs/current/static/functions-json.html
> > >
> > >
> > > While I think the scope could be self contained, if it is not suitable
> > for
> > > this activity do we want to put this into Calcite roadmap?
> > >
> > >
> > > Best,
> > >
> > > Chunhui
> > >
> > > ________________________________
> > > From: Julian Hyde <jh...@apache.org>
> > > Sent: Monday, February 26, 2018 4:00:21 PM
> > > To: dev
> > > Subject: Re: Google Summer of Code 2018
> > >
> > > Yes.
> > >
> > >
> > > > On Feb 26, 2018, at 2:32 PM, Michael Mior <mm...@uwaterloo.ca>
> wrote:
> > > >
> > > > Thanks Julian! Would these be some good JIRAs to tag?
> > > >
> > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> > > apache.org_jira_browse_CALCITE-2D1737&d=DwICAg&c=
> > cskdkSMqhcnjZxdQVpwTXg&r=
> > > 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
> eWRg5qGj9K6txN2zGGcqakg&s=
> > > KXsK-qlYTOf5W1KDQmlqjA7CIj4_CtGlmWirBlPxopI&e=
> > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> > > apache.org_jira_browse_CALCITE-2D1861&d=DwICAg&c=
> > cskdkSMqhcnjZxdQVpwTXg&r=
> > > 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
> eWRg5qGj9K6txN2zGGcqakg&s=
> > > 6xfRRfhSus-SrVHKvEIYKzcyAaEAUJBLdHbkqjUhrRk&e=
> > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> > > apache.org_jira_browse_CALCITE-2D2031&d=DwICAg&c=
> > cskdkSMqhcnjZxdQVpwTXg&r=
> > > 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
> > > eWRg5qGj9K6txN2zGGcqakg&s=oLu_OiKf-cFe1RxcmAnv2CFW6QPGbpz5uYeiN5y
> 3EMs&e=
> > > >
> > > > --
> > > > Michael Mior
> > > > mmior@apache.org
> > > >
> > > > 2018-02-26 14:46 GMT-05:00 Julian Hyde <jh...@apache.org>:
> > > >
> > > >> Here are two areas that are self-contained and rewarding:
> > > >> * Spatial functions
> > > >> * Spark adapter
> > > >>
> > > >> Julian
> > > >>
> > > >>
> > > >>
> > > >>> On Feb 24, 2018, at 4:24 PM, Michael Mior <mm...@uwaterloo.ca>
> > wrote:
> > > >>>
> > > >>> You have probably seen that Apache was accepted as an organization
> > for
> > > >> this
> > > >>> year's GSoC. I thought I would see if anyone in the Calcite
> community
> > > can
> > > >>> think of any issues that would be a good fit. It's no guarantee we
> > > would
> > > >>> get someone to work on it, but it could be a good push to move some
> > > >>> isolated bits of functionality forward that may not get much
> > attention
> > > >>> otherwise.
> > > >>>
> > > >>> --
> > > >>> Michael Mior
> > > >>> mmior@apache.org
> > > >>
> > > >>
> > >
> > >
> >
>
Re: Google Summer of Code 2018
Posted by Michael Mior <mm...@uwaterloo.ca>.
While it would be great to have some movement forward on this, I think it
seems too ambitious for a GSoC project. I am definitely looking forward to
seeing this implemented though :)
As for the issues I referenced earlier, I applied the GSoC label and below
is a short link. Feel free to pass around to anyone you know who may be
interested.
https://s.apache.org/calcite-gsoc2018
Cheers,
--
Michael Mior
mmior@apache.org
2018-02-27 10:24 GMT-05:00 Edmon Begoli <eb...@gmail.com>:
> If we are to be ambitious, and to give someone a real challenge --
> implement this approach for Calcite:
> Multi-objective Parametric Query Optimization
> https://cacm.acm.org/magazines/2017/10/221322-multi-objective-parametric-
> query-optimization/fulltext
>
> (I think Julian might have mentioned this once before in a different
> context. I might be wrong ...)
>
> On Tue, Feb 27, 2018 at 10:20 AM, Michael Mior <mm...@uwaterloo.ca> wrote:
>
> > I would suggest creating a JIRA case to track this. It sounds like a
> basic
> > implementation could be of reasonable scope for a GSoC project.
> >
> > --
> > Michael Mior
> > mmior@apache.org
> >
> > 2018-02-26 19:09 GMT-05:00 Chunhui Shi <cs...@mapr.com>:
> >
> > > What about "SQL support for JavaScript Object Notation (JSON)"?
> > > www.iso.org/standard/67367.html<http://www.iso.org/standard/67367.html
> >?
> > >
> > > There are two categories of JSON functions (8 functions) for query and
> > for
> > > constructor, some clauses like PLAN, etc are introduced in this
> standard.
> > >
> > > I did not see the supports in mainstream DBs(Oracle and Sql Server)
> > > covering all of them, but IS JSON, JSON_QUERY and JSON_VALUE are both
> > > implemented
> > >
> > > SQL server support
> > > https://docs.microsoft.com/en-us/sql/relational-databases/
> > > json/validate-query-and-change-json-data-with-built-
> > > in-functions-sql-server
> > >
> > > Oracle:
> > > https://docs.oracle.com/database/121/ADXDB/json.htm#ADXDB6374
> > >
> > > MySQL and Postgres have a lot functions to handle JSON, besides
> > > JSON_OBJECT or one or two other functions, seems none of its function
> is
> > > standardized.
> > > https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html
> > >
> > > Postgres
> > > <https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html>
> > > https://www.postgresql.org/docs/current/static/functions-json.html
> > >
> > >
> > > While I think the scope could be self contained, if it is not suitable
> > for
> > > this activity do we want to put this into Calcite roadmap?
> > >
> > >
> > > Best,
> > >
> > > Chunhui
> > >
> > > ________________________________
> > > From: Julian Hyde <jh...@apache.org>
> > > Sent: Monday, February 26, 2018 4:00:21 PM
> > > To: dev
> > > Subject: Re: Google Summer of Code 2018
> > >
> > > Yes.
> > >
> > >
> > > > On Feb 26, 2018, at 2:32 PM, Michael Mior <mm...@uwaterloo.ca>
> wrote:
> > > >
> > > > Thanks Julian! Would these be some good JIRAs to tag?
> > > >
> > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> > > apache.org_jira_browse_CALCITE-2D1737&d=DwICAg&c=
> > cskdkSMqhcnjZxdQVpwTXg&r=
> > > 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
> eWRg5qGj9K6txN2zGGcqakg&s=
> > > KXsK-qlYTOf5W1KDQmlqjA7CIj4_CtGlmWirBlPxopI&e=
> > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> > > apache.org_jira_browse_CALCITE-2D1861&d=DwICAg&c=
> > cskdkSMqhcnjZxdQVpwTXg&r=
> > > 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
> eWRg5qGj9K6txN2zGGcqakg&s=
> > > 6xfRRfhSus-SrVHKvEIYKzcyAaEAUJBLdHbkqjUhrRk&e=
> > > > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> > > apache.org_jira_browse_CALCITE-2D2031&d=DwICAg&c=
> > cskdkSMqhcnjZxdQVpwTXg&r=
> > > 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
> > > eWRg5qGj9K6txN2zGGcqakg&s=oLu_OiKf-cFe1RxcmAnv2CFW6QPGbpz5uYeiN5y
> 3EMs&e=
> > > >
> > > > --
> > > > Michael Mior
> > > > mmior@apache.org
> > > >
> > > > 2018-02-26 14:46 GMT-05:00 Julian Hyde <jh...@apache.org>:
> > > >
> > > >> Here are two areas that are self-contained and rewarding:
> > > >> * Spatial functions
> > > >> * Spark adapter
> > > >>
> > > >> Julian
> > > >>
> > > >>
> > > >>
> > > >>> On Feb 24, 2018, at 4:24 PM, Michael Mior <mm...@uwaterloo.ca>
> > wrote:
> > > >>>
> > > >>> You have probably seen that Apache was accepted as an organization
> > for
> > > >> this
> > > >>> year's GSoC. I thought I would see if anyone in the Calcite
> community
> > > can
> > > >>> think of any issues that would be a good fit. It's no guarantee we
> > > would
> > > >>> get someone to work on it, but it could be a good push to move some
> > > >>> isolated bits of functionality forward that may not get much
> > attention
> > > >>> otherwise.
> > > >>>
> > > >>> --
> > > >>> Michael Mior
> > > >>> mmior@apache.org
> > > >>
> > > >>
> > >
> > >
> >
>
Re: Google Summer of Code 2018
Posted by Edmon Begoli <eb...@gmail.com>.
If we are to be ambitious, and to give someone a real challenge --
implement this approach for Calcite:
Multi-objective Parametric Query Optimization
https://cacm.acm.org/magazines/2017/10/221322-multi-objective-parametric-query-optimization/fulltext
(I think Julian might have mentioned this once before in a different
context. I might be wrong ...)
On Tue, Feb 27, 2018 at 10:20 AM, Michael Mior <mm...@uwaterloo.ca> wrote:
> I would suggest creating a JIRA case to track this. It sounds like a basic
> implementation could be of reasonable scope for a GSoC project.
>
> --
> Michael Mior
> mmior@apache.org
>
> 2018-02-26 19:09 GMT-05:00 Chunhui Shi <cs...@mapr.com>:
>
> > What about "SQL support for JavaScript Object Notation (JSON)"?
> > www.iso.org/standard/67367.html<http://www.iso.org/standard/67367.html>?
> >
> > There are two categories of JSON functions (8 functions) for query and
> for
> > constructor, some clauses like PLAN, etc are introduced in this standard.
> >
> > I did not see the supports in mainstream DBs(Oracle and Sql Server)
> > covering all of them, but IS JSON, JSON_QUERY and JSON_VALUE are both
> > implemented
> >
> > SQL server support
> > https://docs.microsoft.com/en-us/sql/relational-databases/
> > json/validate-query-and-change-json-data-with-built-
> > in-functions-sql-server
> >
> > Oracle:
> > https://docs.oracle.com/database/121/ADXDB/json.htm#ADXDB6374
> >
> > MySQL and Postgres have a lot functions to handle JSON, besides
> > JSON_OBJECT or one or two other functions, seems none of its function is
> > standardized.
> > https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html
> >
> > Postgres
> > <https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html>
> > https://www.postgresql.org/docs/current/static/functions-json.html
> >
> >
> > While I think the scope could be self contained, if it is not suitable
> for
> > this activity do we want to put this into Calcite roadmap?
> >
> >
> > Best,
> >
> > Chunhui
> >
> > ________________________________
> > From: Julian Hyde <jh...@apache.org>
> > Sent: Monday, February 26, 2018 4:00:21 PM
> > To: dev
> > Subject: Re: Google Summer of Code 2018
> >
> > Yes.
> >
> >
> > > On Feb 26, 2018, at 2:32 PM, Michael Mior <mm...@uwaterloo.ca> wrote:
> > >
> > > Thanks Julian! Would these be some good JIRAs to tag?
> > >
> > > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> > apache.org_jira_browse_CALCITE-2D1737&d=DwICAg&c=
> cskdkSMqhcnjZxdQVpwTXg&r=
> > 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-eWRg5qGj9K6txN2zGGcqakg&s=
> > KXsK-qlYTOf5W1KDQmlqjA7CIj4_CtGlmWirBlPxopI&e=
> > > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> > apache.org_jira_browse_CALCITE-2D1861&d=DwICAg&c=
> cskdkSMqhcnjZxdQVpwTXg&r=
> > 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-eWRg5qGj9K6txN2zGGcqakg&s=
> > 6xfRRfhSus-SrVHKvEIYKzcyAaEAUJBLdHbkqjUhrRk&e=
> > > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> > apache.org_jira_browse_CALCITE-2D2031&d=DwICAg&c=
> cskdkSMqhcnjZxdQVpwTXg&r=
> > 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
> > eWRg5qGj9K6txN2zGGcqakg&s=oLu_OiKf-cFe1RxcmAnv2CFW6QPGbpz5uYeiN5y3EMs&e=
> > >
> > > --
> > > Michael Mior
> > > mmior@apache.org
> > >
> > > 2018-02-26 14:46 GMT-05:00 Julian Hyde <jh...@apache.org>:
> > >
> > >> Here are two areas that are self-contained and rewarding:
> > >> * Spatial functions
> > >> * Spark adapter
> > >>
> > >> Julian
> > >>
> > >>
> > >>
> > >>> On Feb 24, 2018, at 4:24 PM, Michael Mior <mm...@uwaterloo.ca>
> wrote:
> > >>>
> > >>> You have probably seen that Apache was accepted as an organization
> for
> > >> this
> > >>> year's GSoC. I thought I would see if anyone in the Calcite community
> > can
> > >>> think of any issues that would be a good fit. It's no guarantee we
> > would
> > >>> get someone to work on it, but it could be a good push to move some
> > >>> isolated bits of functionality forward that may not get much
> attention
> > >>> otherwise.
> > >>>
> > >>> --
> > >>> Michael Mior
> > >>> mmior@apache.org
> > >>
> > >>
> >
> >
>
Re: Google Summer of Code 2018
Posted by Michael Mior <mm...@uwaterloo.ca>.
I would suggest creating a JIRA case to track this. It sounds like a basic
implementation could be of reasonable scope for a GSoC project.
--
Michael Mior
mmior@apache.org
2018-02-26 19:09 GMT-05:00 Chunhui Shi <cs...@mapr.com>:
> What about "SQL support for JavaScript Object Notation (JSON)"?
> www.iso.org/standard/67367.html<http://www.iso.org/standard/67367.html>?
>
> There are two categories of JSON functions (8 functions) for query and for
> constructor, some clauses like PLAN, etc are introduced in this standard.
>
> I did not see the supports in mainstream DBs(Oracle and Sql Server)
> covering all of them, but IS JSON, JSON_QUERY and JSON_VALUE are both
> implemented
>
> SQL server support
> https://docs.microsoft.com/en-us/sql/relational-databases/
> json/validate-query-and-change-json-data-with-built-
> in-functions-sql-server
>
> Oracle:
> https://docs.oracle.com/database/121/ADXDB/json.htm#ADXDB6374
>
> MySQL and Postgres have a lot functions to handle JSON, besides
> JSON_OBJECT or one or two other functions, seems none of its function is
> standardized.
> https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html
>
> Postgres
> <https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html>
> https://www.postgresql.org/docs/current/static/functions-json.html
>
>
> While I think the scope could be self contained, if it is not suitable for
> this activity do we want to put this into Calcite roadmap?
>
>
> Best,
>
> Chunhui
>
> ________________________________
> From: Julian Hyde <jh...@apache.org>
> Sent: Monday, February 26, 2018 4:00:21 PM
> To: dev
> Subject: Re: Google Summer of Code 2018
>
> Yes.
>
>
> > On Feb 26, 2018, at 2:32 PM, Michael Mior <mm...@uwaterloo.ca> wrote:
> >
> > Thanks Julian! Would these be some good JIRAs to tag?
> >
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> apache.org_jira_browse_CALCITE-2D1737&d=DwICAg&c=cskdkSMqhcnjZxdQVpwTXg&r=
> 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-eWRg5qGj9K6txN2zGGcqakg&s=
> KXsK-qlYTOf5W1KDQmlqjA7CIj4_CtGlmWirBlPxopI&e=
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> apache.org_jira_browse_CALCITE-2D1861&d=DwICAg&c=cskdkSMqhcnjZxdQVpwTXg&r=
> 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-eWRg5qGj9K6txN2zGGcqakg&s=
> 6xfRRfhSus-SrVHKvEIYKzcyAaEAUJBLdHbkqjUhrRk&e=
> > https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.
> apache.org_jira_browse_CALCITE-2D2031&d=DwICAg&c=cskdkSMqhcnjZxdQVpwTXg&r=
> 7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-
> eWRg5qGj9K6txN2zGGcqakg&s=oLu_OiKf-cFe1RxcmAnv2CFW6QPGbpz5uYeiN5y3EMs&e=
> >
> > --
> > Michael Mior
> > mmior@apache.org
> >
> > 2018-02-26 14:46 GMT-05:00 Julian Hyde <jh...@apache.org>:
> >
> >> Here are two areas that are self-contained and rewarding:
> >> * Spatial functions
> >> * Spark adapter
> >>
> >> Julian
> >>
> >>
> >>
> >>> On Feb 24, 2018, at 4:24 PM, Michael Mior <mm...@uwaterloo.ca> wrote:
> >>>
> >>> You have probably seen that Apache was accepted as an organization for
> >> this
> >>> year's GSoC. I thought I would see if anyone in the Calcite community
> can
> >>> think of any issues that would be a good fit. It's no guarantee we
> would
> >>> get someone to work on it, but it could be a good push to move some
> >>> isolated bits of functionality forward that may not get much attention
> >>> otherwise.
> >>>
> >>> --
> >>> Michael Mior
> >>> mmior@apache.org
> >>
> >>
>
>
Re: Google Summer of Code 2018
Posted by Chunhui Shi <cs...@mapr.com>.
What about "SQL support for JavaScript Object Notation (JSON)"? www.iso.org/standard/67367.html<http://www.iso.org/standard/67367.html>?
There are two categories of JSON functions (8 functions) for query and for constructor, some clauses like PLAN, etc are introduced in this standard.
I did not see the supports in mainstream DBs(Oracle and Sql Server) covering all of them, but IS JSON, JSON_QUERY and JSON_VALUE are both implemented
SQL server support
https://docs.microsoft.com/en-us/sql/relational-databases/json/validate-query-and-change-json-data-with-built-in-functions-sql-server
Oracle:
https://docs.oracle.com/database/121/ADXDB/json.htm#ADXDB6374
MySQL and Postgres have a lot functions to handle JSON, besides JSON_OBJECT or one or two other functions, seems none of its function is standardized.
https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html
Postgres
<https://dev.mysql.com/doc/refman/5.7/en/json-function-reference.html>https://www.postgresql.org/docs/current/static/functions-json.html
While I think the scope could be self contained, if it is not suitable for this activity do we want to put this into Calcite roadmap?
Best,
Chunhui
________________________________
From: Julian Hyde <jh...@apache.org>
Sent: Monday, February 26, 2018 4:00:21 PM
To: dev
Subject: Re: Google Summer of Code 2018
Yes.
> On Feb 26, 2018, at 2:32 PM, Michael Mior <mm...@uwaterloo.ca> wrote:
>
> Thanks Julian! Would these be some good JIRAs to tag?
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_CALCITE-2D1737&d=DwICAg&c=cskdkSMqhcnjZxdQVpwTXg&r=7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-eWRg5qGj9K6txN2zGGcqakg&s=KXsK-qlYTOf5W1KDQmlqjA7CIj4_CtGlmWirBlPxopI&e=
> https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_CALCITE-2D1861&d=DwICAg&c=cskdkSMqhcnjZxdQVpwTXg&r=7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-eWRg5qGj9K6txN2zGGcqakg&s=6xfRRfhSus-SrVHKvEIYKzcyAaEAUJBLdHbkqjUhrRk&e=
> https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_CALCITE-2D2031&d=DwICAg&c=cskdkSMqhcnjZxdQVpwTXg&r=7bZjGOKpQi7qeyQ_xRpzEQ&m=LYUbb9SvNkKb5PpYzt7-eWRg5qGj9K6txN2zGGcqakg&s=oLu_OiKf-cFe1RxcmAnv2CFW6QPGbpz5uYeiN5y3EMs&e=
>
> --
> Michael Mior
> mmior@apache.org
>
> 2018-02-26 14:46 GMT-05:00 Julian Hyde <jh...@apache.org>:
>
>> Here are two areas that are self-contained and rewarding:
>> * Spatial functions
>> * Spark adapter
>>
>> Julian
>>
>>
>>
>>> On Feb 24, 2018, at 4:24 PM, Michael Mior <mm...@uwaterloo.ca> wrote:
>>>
>>> You have probably seen that Apache was accepted as an organization for
>> this
>>> year's GSoC. I thought I would see if anyone in the Calcite community can
>>> think of any issues that would be a good fit. It's no guarantee we would
>>> get someone to work on it, but it could be a good push to move some
>>> isolated bits of functionality forward that may not get much attention
>>> otherwise.
>>>
>>> --
>>> Michael Mior
>>> mmior@apache.org
>>
>>
Re: Google Summer of Code 2018
Posted by Julian Hyde <jh...@apache.org>.
Yes.
> On Feb 26, 2018, at 2:32 PM, Michael Mior <mm...@uwaterloo.ca> wrote:
>
> Thanks Julian! Would these be some good JIRAs to tag?
>
> https://issues.apache.org/jira/browse/CALCITE-1737
> https://issues.apache.org/jira/browse/CALCITE-1861
> https://issues.apache.org/jira/browse/CALCITE-2031
>
> --
> Michael Mior
> mmior@apache.org
>
> 2018-02-26 14:46 GMT-05:00 Julian Hyde <jh...@apache.org>:
>
>> Here are two areas that are self-contained and rewarding:
>> * Spatial functions
>> * Spark adapter
>>
>> Julian
>>
>>
>>
>>> On Feb 24, 2018, at 4:24 PM, Michael Mior <mm...@uwaterloo.ca> wrote:
>>>
>>> You have probably seen that Apache was accepted as an organization for
>> this
>>> year's GSoC. I thought I would see if anyone in the Calcite community can
>>> think of any issues that would be a good fit. It's no guarantee we would
>>> get someone to work on it, but it could be a good push to move some
>>> isolated bits of functionality forward that may not get much attention
>>> otherwise.
>>>
>>> --
>>> Michael Mior
>>> mmior@apache.org
>>
>>
Re: Google Summer of Code 2018
Posted by Michael Mior <mm...@uwaterloo.ca>.
Thanks Julian! Would these be some good JIRAs to tag?
https://issues.apache.org/jira/browse/CALCITE-1737
https://issues.apache.org/jira/browse/CALCITE-1861
https://issues.apache.org/jira/browse/CALCITE-2031
--
Michael Mior
mmior@apache.org
2018-02-26 14:46 GMT-05:00 Julian Hyde <jh...@apache.org>:
> Here are two areas that are self-contained and rewarding:
> * Spatial functions
> * Spark adapter
>
> Julian
>
>
>
> > On Feb 24, 2018, at 4:24 PM, Michael Mior <mm...@uwaterloo.ca> wrote:
> >
> > You have probably seen that Apache was accepted as an organization for
> this
> > year's GSoC. I thought I would see if anyone in the Calcite community can
> > think of any issues that would be a good fit. It's no guarantee we would
> > get someone to work on it, but it could be a good push to move some
> > isolated bits of functionality forward that may not get much attention
> > otherwise.
> >
> > --
> > Michael Mior
> > mmior@apache.org
>
>
Re: Google Summer of Code 2018
Posted by Julian Hyde <jh...@apache.org>.
Here are two areas that are self-contained and rewarding:
* Spatial functions
* Spark adapter
Julian
> On Feb 24, 2018, at 4:24 PM, Michael Mior <mm...@uwaterloo.ca> wrote:
>
> You have probably seen that Apache was accepted as an organization for this
> year's GSoC. I thought I would see if anyone in the Calcite community can
> think of any issues that would be a good fit. It's no guarantee we would
> get someone to work on it, but it could be a good push to move some
> isolated bits of functionality forward that may not get much attention
> otherwise.
>
> --
> Michael Mior
> mmior@apache.org