JingDas commented on code in PR #3264:
URL: https://github.com/apache/calcite/pull/3264#discussion_r1230775481
##########
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:
As the
[discussion](https://github.com/apache/calcite/pull/3264#discussion_r1230251674)
above, maybe we don't need to add a test where `ignoreNulls` equals `true`.
What do you think?
--
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]