-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Like title says, I want to be able to overwrite existing sheet with data.
I tried add SaveMode, but no effect:
df
.write
.mode(SaveMode.Overwrite)
.format("com.github.potix2.spark.google.spreadsheets")
.option("serviceAccountId", gserviceAccount)
.option("credentialPath", pathToP12)
.save(spreadsheetsId + "/newWorksheet")I'm getting permission error:
Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
"code" : 400,
"errors" : [ {
"domain" : "global",
"message" : "Invalid requests[0].addSheet: A sheet with the name \"newWorksheet\" already exists. Please enter another name.",
"reason" : "badRequest"
} ],
"message" : "Invalid requests[0].addSheet: A sheet with the name \"newWorksheet\" already exists. Please enter another name.",
"status" : "INVALID_ARGUMENT"
}
How can I overcome this? I'm using version 0.4.0.
larsskaug and robertobechara
Metadata
Metadata
Assignees
Labels
No labels