[jira] [Created] (CALCITE-4644) Add percentile_cont and percentile_disc aggregate functions

2021-06-08 Thread Rafay A (Jira)
Rafay A created CALCITE-4644: Summary: Add percentile_cont and percentile_disc aggregate functions Key: CALCITE-4644 URL: https://issues.apache.org/jira/browse/CALCITE-4644 Project: Calcite

Re: [HELP] Calcite interpreting SQL to Druid DSL Question

2021-06-08 Thread Xu Chi
Hi Ben, Thanks for your prompt response. I checked the data schema in Druid and found below definition which specify the timestamp column. If I query with “__time”, it will be the situation which mentioned in previous email. And I tried to query with the column name “at”, it shows there’s no

Re: [HELP] Calcite interpreting SQL to Druid DSL Question

2021-06-08 Thread Ben Krug
I'm coming from the druid side, not a calcite person, but I wanted to ask. What tutorial do you mean? Did you specify a model, and did it specify timestampColumn? (If so, was it __time?) I notice that in the druid console, if you use your SQL, it translate correctly, as in your desired DSL, so

[HELP] Calcite interpreting SQL to Druid DSL Question

2021-06-08 Thread Xu Chi
Hi team, I’m trying to integrate Druid with Calcite by using calcite-druid adapter. After following the tutorial, we could connect Calcite with Druid and fetching metadata back. But when trying to execute query with below SQL, the DSL generated by Calcite is translating the __time where clause

Re: Problem with Spool (de-)serialization

2021-06-08 Thread Julian Hyde
Including class names in serialized JSON makes me nervous. It is a common attack surface. Could we, say, include the name of the enum (without package name) and map it to a list of supported Enums? > On Jun 8, 2021, at 9:20 AM, Konstantin Orlov wrote: > > Hi, folks! > > We have a problem

Types.NULL not handled in AbstractCursor

2021-06-08 Thread Константин Новиков
Hi,   Is there any explanation for missing handling of Types.NULL in AbstractCursor.createAccessor()? I have a query which includes NULL in the projection (eg, select 1 as x, NULL, ...) and this is causing an exception. Thanks.  

Re: JIRA account as a contributor

2021-06-08 Thread Dmitry Sysolyatin
Thanks ! On Tue, Jun 8, 2021 at 6:28 PM Haisheng Yuan wrote: > Hi Dmitry, > > I have added you as contributor. > > Thanks, > Haisheng Yuan > > On 2021/06/08 13:55:58, Dmitry Sysolyatin > wrote: > > Hi ! > > I would like to join to calcite team. I already fixed a small bug > >

Problem with Spool (de-)serialization

2021-06-08 Thread Konstantin Orlov
Hi, folks! We have a problem with Spool node deserialisation. Currently it explains both readType and writeType fields as Enum, thus those fields being serialized as map: { "id":"2", "relOp”:"MyTableSpool", "readType":{

Re: JIRA account as a contributor

2021-06-08 Thread Haisheng Yuan
Hi Dmitry, I have added you as contributor. Thanks, Haisheng Yuan On 2021/06/08 13:55:58, Dmitry Sysolyatin wrote: > Hi ! > I would like to join to calcite team. I already fixed a small bug > https://issues.apache.org/jira/browse/CALCITE-4630. But I can not do > anything with JIRA ticket. My

Re: Serializing Relational Algebra to JSON

2021-06-08 Thread Alex Baden
Hi Lana, As Stamatis said, we use a custom RelWriter and the explain method on the rel nodes to dump the plan to JSON. It is the same few lines as here, but we've plucked them out of RelOptUtil into our own serializer class:

JIRA account as a contributor

2021-06-08 Thread Dmitry Sysolyatin
Hi ! I would like to join to calcite team. I already fixed a small bug https://issues.apache.org/jira/browse/CALCITE-4630. But I can not do anything with JIRA ticket. My JIRA username is dmsysolyatin

[jira] [Created] (CALCITE-4643) AssertionError for outerjoin query

2021-06-08 Thread TaiNing Wang (Jira)
TaiNing Wang created CALCITE-4643: - Summary: AssertionError for outerjoin query Key: CALCITE-4643 URL: https://issues.apache.org/jira/browse/CALCITE-4643 Project: Calcite Issue Type: Bug

[jira] [Created] (CALCITE-4642) PlannerImpl ignores TypeSystems provided by FrameworkConfig

2021-06-08 Thread Nick Riasanovsky (Jira)
Nick Riasanovsky created CALCITE-4642: - Summary: PlannerImpl ignores TypeSystems provided by FrameworkConfig Key: CALCITE-4642 URL: https://issues.apache.org/jira/browse/CALCITE-4642 Project: