Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] copy on write plus merge #3

Open
wants to merge 1 commit into
base: copy-on-write-delete-v5
Choose a base branch
from

Conversation

dilipbiswal
Copy link

@dilipbiswal dilipbiswal commented Dec 2, 2020

  • Adds WIP support of MERGE INTO leveraging the work for DELETE
  • Implements copy-on-write

Plan:

== Optimized Logical Plan ==
ReplaceData RelationV2[key1#50, value1#51] file:///..., IcebergWrite(table=file:///..., format=PARQUET)
+- MergeInto org.apache.spark.sql.catalyst.plans.logical.MergeIntoProcessor@e1a150c, RelationV2[key1#50, value1#51] file:///...
   +- Join FullOuter, (key1#50 = key2#65)
      :- Project [key2#65, value2#66, true AS _source_row_present_#138]
      :  +- RelationV2[key2#65, value2#66] file:///...
      +- Project [key1#50, value1#51, true AS _target_row_present_#139]
         +- DynamicFileFilter
            :- RelationV2[key1#50, value1#51] file:///...
            +- Aggregate [_file_name_#137], [_file_name_#137]
               +- Project [_file_name_#137]
                  +- Join Inner, (key1#50 = key2#65)
                     :- Filter isnotnull(key2#65)
                     :  +- RelationV2[key2#65] file:///...
                     +- Project [key1#50, input_file_name() AS _file_name_#137]
                        +- Filter isnotnull(key1#50)
                           +- RelationV2[key1#50] file:///...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant