Re: Re: Re: Problem with converters and possibly rule matching

2019-11-22 Thread Danny Chan
Vladimir > > > > > > > > ср, 6 нояб. 2019 г. в 03:52, Haisheng Yuan : > > > > > > > >> Hi Vladimir, > > > >> > > > >> The code in PHYSICAL convention L44 looks weird, I think it always > > > >> returns true. > >

Re: Re: Re: Problem with converters and possibly rule matching

2019-11-19 Thread Vladimir Ozerov
te-optimizer/blob/master/src/main/java/devozerov/HazelcastConventions.java#L44 > > >> > > >> Try this: > > >> > > >> fromTraits.containsIfApplicable(Convention.PHYSICAL) > > >> && toTraits.containsIfApplicable(Convention.PHYSIC

Re: Re: Re: Problem with converters and possibly rule matching

2019-11-15 Thread Stamatis Zampetakis
ion.PHYSICAL) > >> && toTraits.containsIfApplicable(Convention.PHYSICAL); > >> > >> > >> Adding a AbstractConverter on logical operators is meaningless. Calcite > >> is mixing the concept of logical and physical together, which is sad. > >> >

Re: Re: Re: Problem with converters and possibly rule matching

2019-11-14 Thread Vladimir Ozerov
al operators is meaningless. Calcite >> is mixing the concept of logical and physical together, which is sad. >> >> BTW, using 2 conventions is not appropriate and wrong. >> >> - Haisheng >> >> --------------------------

Re: Re: Re: Problem with converters and possibly rule matching

2019-11-14 Thread Vladimir Ozerov
- > 发件人:Vladimir Ozerov > 日 期:2019年11月05日 18:02:15 > 收件人:Haisheng Yuan > 抄 送:dev@calcite.apache.org (dev@calcite.apache.org) > > 主 题:Re: Re: Problem with converters and possibly rule matching > > Hi Haisheng, > > think I already tried something very si

Re: Re: Re: Problem with converters and possibly rule matching

2019-11-05 Thread Haisheng Yuan
Haisheng -- 发件人:Vladimir Ozerov 日 期:2019年11月05日 18:02:15 收件人:Haisheng Yuan 抄 送:dev@calcite.apache.org (dev@calcite.apache.org) 主 题:Re: Re: Problem with converters and possibly rule matching Hi Haisheng, think I already tried something very similar to what you explained, but it gav

Re: Re: Problem with converters and possibly rule matching

2019-11-05 Thread Vladimir Ozerov
Hi Haisheng, think I already tried something very similar to what you explained, but it gave not an optimal plan. Please let me describe what I did. I would appreciate your feedback. 1) We start with a simple operator tree Root <- Project <- Scan, where the root is a final aggregator in the dist

Re: Re: Problem with converters and possibly rule matching

2019-11-03 Thread Haisheng Yuan
Hi Vladimir, This is still can be done through top-down request approach. PhysicalFilter operator should request ANY distribution from child operator, unless there is outer reference in the filter condition, in which case, PhysicalFilter should request SINGLETON or BROADCAST distribution. So in

Re: Re: Problem with converters and possibly rule matching

2019-10-28 Thread Haisheng Yuan
Why do you need 2 conventions? I think 1 "Hazelcast" is enough. Usually logical operators are ones with NONE convention. Regarding with physical->logical, you can modify the rule instance to match logical operators or NONE convention only. - Haisheng ---