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

Source IBM Db2: Connector provides wrong values for a datatype #4291

Closed
Tracked by #6994
irynakruk opened this issue Jun 23, 2021 · 0 comments · Fixed by #7670
Closed
Tracked by #6994

Source IBM Db2: Connector provides wrong values for a datatype #4291

irynakruk opened this issue Jun 23, 2021 · 0 comments · Fixed by #7670
Assignees

Comments

@irynakruk
Copy link
Contributor

Expected Behavior

A connector should transform source data into an Airbyte datatype without value/meaning losses.

Current Behavior

General source implementation:

Logs

Caused by: com.ibm.db2.jcc.am.SqlException: [jcc][t4][6011][10987][4.28.11] An error occurred during the conversion of column 2 of type DECFLOAT(34) with a Infinity value to a value of type java.math.BigDecimal. ERRORCODE=-4231, SQLSTATE=null

Caused by: com.ibm.db2.jcc.am.SqlException: [jcc][t4][6011][10987][4.28.11] An error occurred during the conversion of column 2 of type DECFLOAT(34) with a NaN value to a value of type java.math.BigDecimal. ERRORCODE=-4231, SQLSTATE=null

Steps to Reproduce

Short way:

  1. Checkout master branch
  2. Go to Db2SourceComprehensiveTest.java and find a test with appropriate type. Uncomment the test.
  3. Run the test.

NOTES: To REMEMBER while fixing this bug: Most of the cases would need to be corrected at JdbcUtils, but this is based class that is used by all others JDBC DBs, i.e. all other JDBC DBs will be affected

Severity of the bug for you

High

Airbyte Version

0.26.1-alpha

Connector Version (if applicable)

0.1.0

Additional context

Origin ticket: #2975

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants