Re: Is there a mechanism for constant folding in Calcite?

2021-10-27 Thread Stamatis Zampetakis
Hi Ian, As Alessandro correctly said, the engine relies on scalar subqueries being unnested. Rules are not applied to RexSubquery expressions. In a relatively recent discussion [1] somebody else also expressed the need to retain nesting in scalar subqueries. I think that if somebody pushes this fo

Re: Review request: CALCITE-4818 (AggregateExpandDistinctAggregatesRule must infer correct data type for top aggregate calls)

2021-10-27 Thread Taras Ledkov
Hi Calcite team, Gently reminder about review / merge the patch for  CALCITE-4818 [1] [1]. https://issues.apache.org/jira/browse/CALCITE-4818 On 15.10.2021 15:16, Taras Ledkov wrote: Hi, Gently reminder about review. On 04.10.2021 20:30, Taras Ledkov wrote: Hi, Please review the patch for

Proposal: Better abstraction/encapsulation for RelMetadataQuery

2021-10-27 Thread Jacques Nadeau
Hey all, I've been working on AOT compilation with Graal (Janino not usable) and I'm struggling with the hierarchy of classes related to RelMetadataQuery. Right now it feels like there is tight coupling between how the JaninoRelMetadataProvider works and RelMetdataQuery. In a perfect world, it see

[jira] [Created] (CALCITE-4868) ES adapter doesn't support sort aggregation result

2021-10-27 Thread ZheHu (Jira)
ZheHu created CALCITE-4868: -- Summary: ES adapter doesn't support sort aggregation result Key: CALCITE-4868 URL: https://issues.apache.org/jira/browse/CALCITE-4868 Project: Calcite Issue Type: Bug

Re: Proposal: Better abstraction/encapsulation for RelMetadataQuery

2021-10-27 Thread James Starr
Hi Jacques, I have a PR[1] for decoupling the JaninoRelMetadataProvider from the RelMetadataQuery. Instead of using inheritance and requiring downstream projects to update their code, composition was used for the creation of the initial handler stub, handler creation, and creation of a cache. Th

Re: [ANNOUNCE] New committer: Xiong Duan

2021-10-27 Thread JiaTao Tao
Congratulations Regards! Aron Tao XING JIN 于2021年10月26日周二 下午1:17写道: > Congratulations ! > > Best, > Jin > > Chunwei Lei 于2021年10月25日周一 下午4:58写道: > > > Congratulations, Xiong! > > > > > > Best, > > Chunwei > > > > > > On Sun, Oct 24, 2021 at 6:34 AM Haisheng Yuan wrote: > > > > > Congrats, X