asolimando commented on code in PR #3264:
URL: https://github.com/apache/calcite/pull/3264#discussion_r1229969431
##########
testkit/src/main/java/org/apache/calcite/test/catalog/MockCatalogReaderSimple.java:
##########
@@ -86,6 +89,12 @@ private void registerTableEmp(MockTable empTable, Fixture
fixture) {
empTable.addColumn("COMM", fixture.intType);
empTable.addColumn("DEPTNO", fixture.intType);
empTable.addColumn("SLACKER", fixture.booleanType);
+ empTable.setReferentialConstraints(
+ Lists.newArrayList(
+ RelReferentialConstraintImpl.of(
+ Lists.newArrayList(DEFAULT_CATALOG, DEFAULT_SCHEMA, "EMP"),
+ Lists.newArrayList(DEFAULT_CATALOG, DEFAULT_SCHEMA, "DEPT"),
+ Lists.newArrayList(IntPair.of(7, 0)))));
Review Comment:
Might help to state what columns are linked for clarity (in a comment)
--
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]