Calcite-Master - Build # 1312 - Failure

2019-08-22 Thread Apache Jenkins Server
The Apache Jenkins build system has built Calcite-Master (build #1312) Status: Failure Check console output at https://builds.apache.org/job/Calcite-Master/1312/ to view the results.

[jira] [Created] (CALCITE-3286) In LatticeSuggester, allow join conditions that use expressions

2019-08-22 Thread Julian Hyde (Jira)
Julian Hyde created CALCITE-3286: Summary: In LatticeSuggester, allow join conditions that use expressions Key: CALCITE-3286 URL: https://issues.apache.org/jira/browse/CALCITE-3286 Project: Calcite

Re: Match Converter Rule based on Child Nodes

2019-08-22 Thread rahul patwari
Hi Jin, We wanted to transform LogicalJoin to different Join Types in the external system depending on the LogicalJoin Child Properties(which are in external convention). As LogicalJoin can be a child of LogicalJoin, because of VolcanoPlanner's top-down approach, the child LogicalJoin is not

Re: Match Converter Rule based on Child Nodes

2019-08-22 Thread XING JIN
If I understand correctly, you can try below steps: 1. Create a rule of Converter to convert child nodes to append external Convention; 2. Create a rule of RelOptRule to convert the parent node -- check the Convention of child node when matching Is it applicable ? rahul patwari 于2019年8月22日周四

[jira] [Created] (CALCITE-3285) EnumerableMergeJoin should support non-equi join conditions

2019-08-22 Thread Haisheng Yuan (Jira)
Haisheng Yuan created CALCITE-3285: -- Summary: EnumerableMergeJoin should support non-equi join conditions Key: CALCITE-3285 URL: https://issues.apache.org/jira/browse/CALCITE-3285 Project: Calcite

[jira] [Created] (CALCITE-3284) Enumerable hash semijoin support non-equi join conditions

2019-08-22 Thread Haisheng Yuan (Jira)
Haisheng Yuan created CALCITE-3284: -- Summary: Enumerable hash semijoin support non-equi join conditions Key: CALCITE-3284 URL: https://issues.apache.org/jira/browse/CALCITE-3284 Project: Calcite

Re: Applying to be contributor

2019-08-22 Thread Rui Wang
Big thanks! -Rui On Wed, Aug 21, 2019 at 2:53 PM Francis Chuang wrote: > Hi Rui, > > I've added your jira account to the contributor role. > > Francis > > On 22/08/2019 3:04 am, Rui Wang wrote: > > Hi, > > > > Can I have contributor permission such that I can take some JIRA? Here is > > my

Re: Apply for contributor

2019-08-22 Thread Francis Chuang
Hi Xiening, I've added you to the contributor role in jira. Francis On 23/08/2019 7:47 am, Xiening Dai wrote: My user name on jira is xndai. Thanks. On Aug 22, 2019, at 2:36 PM, Xiening Dai wrote: Hi all, May I have the contributor permission for Calcite project? I’d like to work on

Re: Apply for contributor

2019-08-22 Thread Xiening Dai
My user name on jira is xndai. Thanks. > On Aug 22, 2019, at 2:36 PM, Xiening Dai wrote: > > Hi all, > > May I have the contributor permission for Calcite project? I’d like to work > on some issue related to VolcanoPlanner. Thanks.

Apply for contributor

2019-08-22 Thread Xiening Dai
Hi all, May I have the contributor permission for Calcite project? I’d like to work on some issue related to VolcanoPlanner. Thanks.

[jira] [Created] (CALCITE-3283) RelSubSet's best is not existed in the set

2019-08-22 Thread Xiening Dai (Jira)
Xiening Dai created CALCITE-3283: Summary: RelSubSet's best is not existed in the set Key: CALCITE-3283 URL: https://issues.apache.org/jira/browse/CALCITE-3283 Project: Calcite Issue Type:

Re: [DISCUSS] ANTLR4 parse template for Calcite ?

2019-08-22 Thread Julian Feinauer
Hi, there are some SQL dialect grammars online here (for ANTLR4) https://github.com/antlr/grammars-v4/tree/master/mysql https://github.com/antlr/grammars-v4/tree/master/plsql https://github.com/antlr/grammars-v4/tree/master/sqlite https://github.com/antlr/grammars-v4/tree/master/tsql They could

Re: [DISCUSS] ANTLR4 parse template for Calcite ?

2019-08-22 Thread Julian Hyde
If you are going to do all that work to translate to ANTLR, one thing that may help is to re-use SqlParserTest.java. (Shouldn’t be hard to translate that into javascript, or your could use a harness that calls the javascript code from java.) Your code may be entirely different, but the tests

Re: Match Converter Rule based on Child Nodes

2019-08-22 Thread rahul patwari
Hi, The properties of the child nodes correspond to the external Convention. So, the child nodes have to be converted before the parent can be transformed. If the property doesn't match (or) if the property cannot be determined(child node not converted), the rule cannot be applied. So, we end up

Re: [DISCUSS] ANTLR4 parse template for Calcite ?

2019-08-22 Thread Michael Franzkowiak
It is not using ANTLR. Since our goal is specifically to support parsing and manipulation of SQL in the frontend, we use https://sap.github.io/chevrotain/docs/ . We're quite happy with that. We have some pretty big ANTLR grammars for other (non-SQL) use cases and this approach definitely feels

[jira] [Created] (CALCITE-3282) make every SqlDialect parse their own data type

2019-08-22 Thread feng huang (Jira)
feng huang created CALCITE-3282: --- Summary: make every SqlDialect parse their own data type Key: CALCITE-3282 URL: https://issues.apache.org/jira/browse/CALCITE-3282 Project: Calcite Issue

Re: [DISCUSS] ANTLR4 parse template for Calcite ?

2019-08-22 Thread Danny Chan
Create ! Do you have the ANTLR.g4 file that can be shared ? Best, Danny Chan 在 2019年8月22日 +0800 PM5:45,Michael Franzkowiak ,写道: > Danny, what is your web / frontend use case exactly? > We've started to create some frontend helpers which you can find at > https://github.com/contiamo/rhombic . It's

Re: Match Converter Rule based on Child Nodes

2019-08-22 Thread XING JIN
I guess in Rahul's case, the child node of join should be converted first, thus physical properties will be appended. But RelNode doesn't have a reference to parent, thus an independent RelOptRule is needed to convert LogicalJoin. Just as Michael said, you need to override the method of

Re: [DISCUSS] ANTLR4 parse template for Calcite ?

2019-08-22 Thread Michael Franzkowiak
Danny, what is your web / frontend use case exactly? We've started to create some frontend helpers which you can find at https://github.com/contiamo/rhombic . It's all in a very early state but we'll likely spend some more time on it in the next months. Parsing is here

Re: [DISCUSS] ANTLR4 parse template for Calcite ?

2019-08-22 Thread Muhammad Gelbana
I once needed to fix this issue [1] but the fix was rejected because it introduced worse performance than it ideally should. As mentioned in the comments, the current approach followed in the current parser is the reason for that. I mean if we designed the grammar differently, we could've had

Re: [DISCUSS] ANTLR4 parse template for Calcite ?

2019-08-22 Thread Danny Chan
Thanks, Julian. I agree this would be a huge work, but I have to do this, I’m just wondering if any fellows here have the similar requests. Best, Danny Chan 在 2019年8月22日 +0800 PM2:15,Julian Hyde ,写道: > ANTLR isn’t significantly better than, or worse than, JavaCC, but it’s > different. So