From 5c57a59b2f61940179a45a7b1c79ee8ff7bd6d73 Mon Sep 17 00:00:00 2001 From: Will Jones Date: Fri, 11 Mar 2022 21:15:51 -0800 Subject: [PATCH] Fix docs --- python/deltalake/writer.py | 4 ++-- python/docs/source/api_reference.rst | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/python/deltalake/writer.py b/python/deltalake/writer.py index 460747e00a..b0204f3166 100644 --- a/python/deltalake/writer.py +++ b/python/deltalake/writer.py @@ -49,9 +49,9 @@ def write_deltalake( If the table does not already exist, it will be created. - This function only supports protocol version 2 currently. If an attempting + This function only supports protocol version 1 currently. If an attempting to write to an existing table with a higher min_writer_version, this - function will throw an error. + function will throw DeltaTableProtocolError. :param table_or_uri: URI of a table or a DeltaTable object. :param data: Data to write. If passing iterable, the schema must also be given. diff --git a/python/docs/source/api_reference.rst b/python/docs/source/api_reference.rst index 6ea31b4b44..09659ebc10 100644 --- a/python/docs/source/api_reference.rst +++ b/python/docs/source/api_reference.rst @@ -7,6 +7,9 @@ DeltaTable .. automodule:: deltalake.table :members: +Writing DeltaTables +------------------- + .. autofunction:: deltalake.write_deltalake DeltaSchema