lakeshen
lakeshen
Another point,Do you need add a class GeneratedMetadata_ForeignXXX like GeneratedMetadata_CollationHandler.java? 
Maybe we could close this PR,because we would add the functional dependency,the jira is https://issues.apache.org/jira/browse/CALCITE-5913
IMO,a foreign key is one of the table constraints, the current in Calcite, we could use Statistic# getReferentialConstraints method to get the table's foreign key. So in an SQL plan(RelNode...
Could you add the unit test for you logic?
Hi @JiajunBernoulli It looks like the title and commit's description is not clear.
Hi @kgyrtkirk ,I find some information in PR's title and commits are omitted, I don't know whether this is normal.