sql server - spark dataframe not appending to the table -


i unable append table when writing table using dataframe write

here command using

 df1.write.mode("append").jdbc("jdbc:jtds:sqlserver://noi-nipuna-w81/sams","sams", props)  exception java.sql.sqlexception: there object named 'sams' in database.         @ net.sourceforge.jtds.jdbc.sqldiagnostic.adddiagnostic(sqldiagnostic.java:372) 

where making mistake using spark 1.4 version

urug , hafiz have answered. below code did job me.

    sqldf         .write()         .mode(savemode.append)         .jdbc(jdbcdburl, "dbname.schemaname.tablename", connproperties); 

Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -