Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing datetime2/date via ISQLServerBulkRecord is throwing exception #556

Open
SubashRoul opened this issue Nov 20, 2017 · 13 comments
Open
Labels
Backlog The topic in question has been recognized and added to development backlog

Comments

@SubashRoul
Copy link

SubashRoul commented Nov 20, 2017

Driver version or jar name

mssql-jdbc-6.2.1.jre8.jar

Java/JVM version

java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)

Problem description

For Azure SQL Data Warehouse, passing datetime2 via ISQLServerBulkRecord throws Received an invalid column length from the bcp client for colid modify_time. Same error for date type columns.

I have tried the example codes given in issue #161 with datetime2 and date columns.

For datetime2, I am passing the following parameters.
columnType : java.sql.Types.TIMESTAMP
precision : 0
scale : 0

For date,
columnType : java.sql.Types.DATE
precision : 0
scale : 0

@peterbae
Copy link
Contributor

peterbae commented Dec 7, 2017

Hi @SubashRoul, to implement a solution for this issue, I need to implement #161 as well, and it seems like it's going to take more time than i originally thought. I've left a comment in my PR (closed now) regarding my progress, and I will return to this issue at a later time.

@cheenamalhotra cheenamalhotra added this to the Next Tasks milestone Jan 9, 2018
@cheenamalhotra cheenamalhotra added the Work in Progress The pull request is a work in progress label Jan 9, 2018
@abhijeethp
Copy link

Hello @peterbae @cheenamalhotra ,
is this still a work in progress?
cc @saksham1711 @tgorthi

@peterbae
Copy link
Contributor

peterbae commented Nov 6, 2019

It's in our backlog for now, but we don't have a timeline for this issue yet.

@lilgreenbird lilgreenbird removed the Work in Progress The pull request is a work in progress label Nov 24, 2021
@FelipeBR2
Copy link

Hi, as #161 is now closed, do you have a timeline for this topic?

@Jeffery-Wasty
Copy link
Contributor

While this has been in the backlog for a while, there is no current timeline. We'll take a look at it during out next planning and provide updates as necessary.

@FelipeBR2
Copy link

Hello @Jeffery-Wasty , could you please prioritize this issue as it has a very high business impact for the Robert Bosch GmbH? We use the azure data warehouse as part of an analytical procedure to optimize our blocked inventory on a global level at Bosch. We require this bulk upload because thousands of records needs to be update simultaneously which also includes the Datetime data type which is currently not working with the JDBC driver.

If you have further questions, please contact me at [email protected]

@Jeffery-Wasty
Copy link
Contributor

Hi @FelipeBR2,

Thank you for your patience, we have a team member looking into the issue at the moment.

@lilgreenbird
Copy link
Contributor

hi @FelipeBR2

Could you please try this again using the latest 12.1.0 release? 6.2.1 is quite old we've had some fixes in this area and I rem specifically there was a fix for an issue which resulted in this error message. If you still see this issue in the latest release please provide a standalone java app and schema that reproduces the issue.

Thanks.

@lilgreenbird lilgreenbird removed this from the Next Tasks milestone Nov 28, 2022
@FelipeBR2
Copy link

Hi @lilgreenbird. Thanks for the quick response.

As I`m currently out of office for today, tomorrow I will try to get the latest version and see if the issue has been fixed.

@FelipeBR2
Copy link

Hi, sorry for the delayed response, got quite some work regarding end of the year. I was able to test the new version 12.1.0, but unfortunally, I still got the error
image

@lilgreenbird
Copy link
Contributor

Could please provide a standalone java app and schema that reproduces the issue? Thanks.

@lilgreenbird lilgreenbird added the Waiting for Response Waiting for a reply from the original poster, or affiliated party label Dec 7, 2022
@FelipeBR2
Copy link

I'm utilizing KNIME in this specific case. I have been talking to their team as well regarding this issue.
I only have the workflow, but as it contains sensitive information I cannot send it

@tkyc
Copy link
Member

tkyc commented Dec 13, 2022

Just to clarify, this issue is still backlogged and isn't implemented at the moment as the initial implementation #568 did not fully solve the problem. #161 was not a PR but a tangent issue.

We'll revisit this during triage for the new semester.

@Jeffery-Wasty Jeffery-Wasty removed the Waiting for Response Waiting for a reply from the original poster, or affiliated party label Mar 14, 2023
@Jeffery-Wasty Jeffery-Wasty added the Backlog The topic in question has been recognized and added to development backlog label Mar 14, 2023
@github-project-automation github-project-automation bot moved this to To be triaged in MSSQL JDBC Aug 28, 2024
@Jeffery-Wasty Jeffery-Wasty moved this from To be triaged to Backlog in MSSQL JDBC Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog The topic in question has been recognized and added to development backlog
Projects
Status: Backlog
Development

No branches or pull requests

8 participants