Re: Bit(N) on create Table with MSSQLServer

2016-05-04 Thread Mich Talebzadeh
Hang on Are you talking about target database in MSSQL created and dropped? Is your Spark JDBC credential in MSSQL a DBO or sa? Dr Mich Talebzadeh LinkedIn * https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw

Re: Bit(N) on create Table with MSSQLServer

2016-05-04 Thread Andrés Ivaldi
Ok, so I did that, create a database and then insert data, but spark drop database and try to create it again, I'm using Dataframe.write(SaveMode.Overwrite), documentation said : "when performing a Overwrite, the data will be deleted before writing out the new data." why is dropping the table?

Re: Bit(N) on create Table with MSSQLServer

2016-05-04 Thread Andrés Ivaldi
Yes, I can do that, it's what we are doing now, but I think the best approach would be delegate the create table action to spark. On Tue, May 3, 2016 at 8:17 PM, Mich Talebzadeh wrote: > Can you create the MSSQL (target) table first with the correct column > setting

Re: Bit(N) on create Table with MSSQLServer

2016-05-03 Thread Mich Talebzadeh
Can you create the MSSQL (target) table first with the correct column setting and insert data from Spark to it with JDBC as opposed to JDBC creating target table itself? Dr Mich Talebzadeh LinkedIn * https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw

Re: Bit(N) on create Table with MSSQLServer

2016-05-01 Thread Mich Talebzadeh
Well if MSSQL cannot create that column then it is more like compatibility between Spark and RDBMS. What value that column has in MSSQL. Can you create table the table in MSSQL database or map it in Spark to a valid column before opening JDBC connection? HTH Dr Mich Talebzadeh LinkedIn *

Bit(N) on create Table with MSSQLServer

2016-04-29 Thread Andrés Ivaldi
Hello, Spark is executing a create table sentence (using JDBC) to MSSQLServer with a mapping column type like ColName Bit(1) for boolean types, This create table cannot be executed on MSSQLServer. In class JdbcDialect the mapping for Boolean type is Bit(1), so the question is, this is a problem