ehds commented on code in PR #5298:
URL: https://github.com/apache/calcite/pull/5298#discussion_r4140660843


##########
core/src/main/java/org/apache/calcite/rel/metadata/RelMdTableReferences.java:
##########
@@ -270,4 +277,29 @@ public Set<RelTableRef> getTableReferences(TableScan rel, 
RelMetadataQuery mq) {
     return mq.getTableReferences(rel.getInput());
   }
 
+  /** Table references from Snapshot. */
+  public @Nullable Set<RelTableRef> getTableReferences(Snapshot rel, 
RelMetadataQuery mq) {
+    return mq.getTableReferences(rel.getInput());

Review Comment:
   Yes, the period expression should also be inspected. For example, [MariaDB 
allows a sub-query here](https://onecompiler.com/mariadb/454rjfxva). I've 
updated the handler accordingly.



-- 
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]

Reply via email to