Re: When will the exchange node(Distribution) be added to the execution plan

2020-02-03 Thread JiaTao Tao
Thank you very much, now I can see distribution in RelTrait, and I still have some doubts: 1. It seems in Calcite's main query process(via Prepare#prepareSql) there's no code to `addRelTraitDef(RelDistributionTraitDef.INSTANCE)`, and even no config, anyone know why? 2. I enable `useAbstractConverte

Re: When will the exchange node(Distribution) be added to the execution plan

2020-02-03 Thread JiaTao Tao
The detail message is as follows, and I can see LogicalSort and LogicalExchange has been generated though ExpandConversionRule. Missing conversions are EnumerableTableScan[sort: [] -> [0]] (2 cases) There are 2 empty subsets: Empty subset 0: rel#47:Subset#0.ENUMERABLE.[0].hash[0], the relevant par

Question about HASH_DISTRIBUTED

2020-02-03 Thread JiaTao Tao
Hi When I see the example of HASH_DISTRIBUTED, e.g. RelDistributions.hash(ImmutableList.of(0)), or in RelDistributionImpl#satisfies I can't find the info about "hash partition num" of "hash func", if we don't know these message, how can we perform a Bucket Join (Collocated Join)? Or do I miss some

Suitability of Avatica for Apache Arrow Flight JDBC Driver

2020-02-03 Thread Andy Grove
Hi, I have started building a JDBC driver for Apache Arrow Flight [1] and it has been suggested that I use Avatica instead of building from scratch. However, I'm not sure if Avatica is really designed for this use case since I would not require the Avatica wire protocol or server process. The Flig

Re: Suitability of Avatica for Apache Arrow Flight JDBC Driver

2020-02-03 Thread Jacques Nadeau
Hey Andy, I totally forgot that Avatica added all that extra stuff. I didn't originally have it back in the day :) Drill and Dremio both use Avatica without using the protocol/server/etc. On Mon, Feb 3, 2020 at 2:45 PM Andy Grove wrote: > Hi, > > I have started building a JDBC driver for Apach

Calcite-Master - Build # 1590 - Failure

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

[jira] [Created] (CALCITE-3766) Add a Builder to RelHint

2020-02-03 Thread Danny Chen (Jira)
Danny Chen created CALCITE-3766: --- Summary: Add a Builder to RelHint Key: CALCITE-3766 URL: https://issues.apache.org/jira/browse/CALCITE-3766 Project: Calcite Issue Type: Sub-task Com