>  For a project I want to retrieve the Calcite RelNodes during the execution 
> of the queries (perhaps even before query optimisation if possible) and 
> perform some analysis on those RelNodes. 
...
> Is this also the preferred approach to get access to these calcite logical 
> plans?

Jesus added an "explain CBO" in master which I'm using - this isn't exactly 
what you need, but it allowed me to write something like this.

https://github.com/apache/hive/blob/master/ql/src/test/results/clientpositive/perf/tez/cbo_query4.q.out
+
https://github.com/t3rmin4t0r/lipwig/blob/master/calcite2tree.py

I'm not entirely happy with that format - but it exists.

I'm going to take a guess about your question and say that you need to take a 
look at this feature-in-progress.

https://issues.apache.org/jira/browse/HIVE-21133

Cheers,
Gopal
 


Reply via email to