diff --git a/kernel/sql-federation/optimizer/src/main/java/org/apache/shardingsphere/sqlfederation/optimizer/converter/segment/from/impl/SimpleTableConverter.java b/kernel/sql-federation/optimizer/src/main/java/org/apache/shardingsphere/sqlfederation/optimizer/converter/segment/from/impl/SimpleTableConverter.java index a7e29139b076e..b79481c0e802a 100644 --- a/kernel/sql-federation/optimizer/src/main/java/org/apache/shardingsphere/sqlfederation/optimizer/converter/segment/from/impl/SimpleTableConverter.java +++ b/kernel/sql-federation/optimizer/src/main/java/org/apache/shardingsphere/sqlfederation/optimizer/converter/segment/from/impl/SimpleTableConverter.java @@ -55,7 +55,7 @@ public static Optional convert(final SimpleTableSegment segment) { addOwnerNames(names, segment.getOwner().get()); } names.add(tableName.getIdentifier().getValue()); - if (segment.getDbLink().isPresent()) { + if (segment.getDbLink().isPresent() && segment.getAt().isPresent()) { names.add(segment.getAt().get().getValue()); names.add(segment.getDbLink().get().getValue()); }