Hi,
I usually create an external Delta table with the command below, using
DataFrameWriter API:
df.write
.format("delta")
.option("path", "<my-table-path>")
.saveAsTable("<my-table>")
Now I would like to use the DataFrameWriterV2 API.
I have tried the following command:
df.writeTo("<my-table>")
.using("delta")
.option("path", "<my-table-path>")
.createOrReplace()
but it creates a managed table, not an external one.
Can you tell me the correct syntax for creating an external table with
DataFrameWriterV2 API?
Thanks,
Christophe.