From f99fcd8d89784a6530c39a8907059ea61f8a2df5 Mon Sep 17 00:00:00 2001 From: Avril Aysha <68642378+avriiil@users.noreply.github.com> Date: Thu, 13 Jun 2024 20:57:01 +0100 Subject: [PATCH] [DOCS] add Delta writer functionality (#2372) this adds Delta writer functionality to the integration page --- docs/source/user_guide/integrations/delta_lake.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/source/user_guide/integrations/delta_lake.rst b/docs/source/user_guide/integrations/delta_lake.rst index 7bfb97d5d1..2a2f7a0ce4 100644 --- a/docs/source/user_guide/integrations/delta_lake.rst +++ b/docs/source/user_guide/integrations/delta_lake.rst @@ -68,6 +68,17 @@ Filters on non-partition columns will still benefit from automatic file pruning df3 = df.where(df["num"] < 2) df3.show() +Write to Delta Lake +******************* + +You can use `write_deltalake` to write a Daft DataFrame to a Delta table: + +.. code:: python + df.write_deltalake("tmp/daft-table", mode="overwrite") + + +Daft supports multiple write modes. See the API docs for :func:`daft.DataFrame.write_deltalake` for more details. + Type System ***********