Reply
New Contributor
Posts: 5
Registered: ‎12-27-2017

Not able to append records to table using df.write.saveAsTable()

I am not able to append records to a table using the follwing command :-

df.write.saveAsTable("table")

df.write.saveAsTable("table",mode="append")

 

error:- IllegalArgumentException: 'Expected only one path to be specified but got : '

Cloudera Employee
Posts: 479
Registered: ‎08-11-2014

Re: Not able to append records to table using df.write.saveAsTable()

I think you mean something like df.write.mode(SaveMode.Overwrite).saveAsTable(...) ? Depends on what language this is.

New Contributor
Posts: 5
Registered: ‎12-27-2017

Re: Not able to append records to table using df.write.saveAsTable()

I am using pyspark

df.write.saveAsTable(name="table",mode="append")
Announcements