Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

can we add UPSERT option in write options? #22

Closed
wangkailut opened this issue Jun 1, 2020 · 2 comments
Closed

can we add UPSERT option in write options? #22

wangkailut opened this issue Jun 1, 2020 · 2 comments
Assignees

Comments

@wangkailut
Copy link

No description provided.

@rashtao rashtao self-assigned this Jun 4, 2020
@rashtao
Copy link
Contributor

rashtao commented Jun 4, 2020

With the upcoming ArangoDB 3.7 we can support insert-update and insert-replace: https://github.com/arangodb/docs/blob/562b88a50d62a1ea0a16203cc2d755c6068509c1/3.7/release-notes-api-changes37.md#endpoints-augmented
I will implement support for such features once ArangoDB 3.7 will be released.
In the meantime you can explicitly set the WriteOptions.method to INSERT, UPDATE or REPLACE (https://github.com/arangodb/arangodb-spark-connector/blob/master/src/main/scala/com/arangodb/spark/WriteOptions.scala#L94-L119).

@rashtao
Copy link
Contributor

rashtao commented Mar 7, 2022

This library has been now deprecated in favor of the new ArangoDB Datasource for Apache Spark.
If this issue is still relevant please reopen it in the new connector's project.

@rashtao rashtao closed this as completed Mar 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants