Re: custom metadata logic

2020-07-21 Thread Tal Glanzman
hi Danny, I didn't mention, but I use calcite 1.21.0. have attempted to use the function already with no success; it didn't seem to actually change the provider. have used the RelMetadataQuery.THREAD_PROVIDERS directly and it worked perfectly. i assume it is because the function

Re: custom metadata logic

2020-07-21 Thread Danny Chan
The suggested way to set up the RelMetadataProvider is through RelOptCluster#setMetadataProvider [1]. If you want to customize the RelMetadataQuery, take the document in RelMetadataQueryBase [2] for a reference. [1] 

Re: custom metadata logic

2020-07-21 Thread Tal Glanzman
thank you it is working great! On Tue, Jul 21, 2020 at 12:45 AM Stamatis Zampetakis wrote: > Hi Taz, > > If you are relying on the RelMetadataQuery [1] API then you may need to set > your provided into THREAD_PROVIDERS in a similar way that it is done in > RelMetadataTest [2]. > > Best, >

Re: custom metadata logic

2020-07-20 Thread Stamatis Zampetakis
Hi Taz, If you are relying on the RelMetadataQuery [1] API then you may need to set your provided into THREAD_PROVIDERS in a similar way that it is done in RelMetadataTest [2]. Best, Stamatis [1]

custom metadata logic

2020-07-20 Thread Tal Glanzman
hi, I am trying to figure out how to add custom logic for providing metadata to nodes inside my adapter with no luck. I have an implementation of my own RelMetadataProvider, as described in the docs. After looking around, i still couldn't find a way to use this provider in the planning phase -