Closed kashifzeeshan closed 2 years ago
The isuse is fixed.
SELECT d.deptno, t2.empno
FROM dept_fr_tbl d
LEFT OUTER JOIN LATERAL (
SELECT e.empno FROM emp_fr_tbl e WHERE d.deptno = e.deptno LIMIT 1
) t2 ON TRUE;
deptno | empno
--------+-------
10 | 7782
20 | 7369
30 | 7499
40 |
(4 rows)
The Join executed on the foreign table is not returning correct data whereas the same query executed on a normal table with the same data return correct data.
Join did not returning correct data on foreign table
Join did return correct data on normal table
Normal Table Setup
Foreign Table Setup