asolimando commented on code in PR #3264:
URL: https://github.com/apache/calcite/pull/3264#discussion_r1229992734
##########
testkit/src/main/java/org/apache/calcite/test/RelMetadataFixture.java:
##########
@@ -264,6 +265,24 @@ public RelMetadataFixture
assertPercentageOriginalRows(Matcher<Double> matcher)
return this;
}
+ public RelMetadataFixture assertForeignKeys(
+ Matcher<ImmutableBitSet> constraintMatcher) {
+ RelNode rel = toRel();
+ RelMetadataQuery mq = rel.getCluster().getMetadataQuery();
+ ImmutableBitSet foreignKeys = mq.getForeignKeys(rel, false);
Review Comment:
It seems that we are not covering cases with `ignoreNulls` to `true`, can we
add such tests?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]