Skip to content

Commit 9c71d0e

Browse files
committed
Improving docs
1 parent 4f88065 commit 9c71d0e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/source/user-guide/common-operations/joins.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ Full Join
7878
A full join merges rows from two tables based on a related column, returning all rows from both tables, even if there
7979
is no match. Unmatched rows will have null values.
8080

81+
The drop_duplicate_keys option is not supported for FULL JOINs because left and right join key columns may contain
82+
non-equivalent values (including NULLs). For FULL JOINs, both key columns are always preserved and users should perform
83+
explicit post-processing if desired.
84+
8185
.. ipython:: python
8286
8387
left.join(right, left_on="customer_id", right_on="id", how="full")

python/datafusion/dataframe.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,10 @@ def join(
832832
drop_duplicate_keys: When True, the columns from the right DataFrame
833833
that have identical names in the ``on`` fields to the left DataFrame
834834
will be dropped.
835+
This option is not supported for FULL JOINs because left and right join
836+
key columns may contain non-equivalent values (including NULLs). For
837+
FULL JOINs, both key columns are always preserved and users should
838+
perform explicit post-processing if desired.
835839
join_keys: Tuple of two lists of column names to join on. [Deprecated]
836840
837841
Returns:

0 commit comments

Comments
 (0)