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

Oracle output does not support NUMBER datatype #246

Open
MichaelMih opened this issue Feb 20, 2019 · 4 comments
Open

Oracle output does not support NUMBER datatype #246

MichaelMih opened this issue Feb 20, 2019 · 4 comments

Comments

@MichaelMih
Copy link

When trying to load to oracle using any mode (default, direct or oci) then getting 👍 Caused by: java.sql.SQLException: Unsupported type : NUMBER
at org.embulk.output.oracle.DirectBatchInsert.prepare(DirectBatchInsert.java:138)

I guess that the way to solve it is to add NUMBER in the switch statement just above DECIMAL - they both should be treated the same way.

@hito4t
Copy link
Contributor

hito4t commented Feb 22, 2019

Thank you for the information!
I'll try to fix the issue.

@hito4t
Copy link
Contributor

hito4t commented Mar 8, 2019

@MichaelMih
First, I tried to reproduce the issue, but I couldn't.
My Oracle (12.1.0) returns java.sql.Types.DECIMAL for the Oracle NUMBER type.

Could you tell me Oracle version, JDBC driver version and DDL?

@MichaelMih
Copy link
Author

MichaelMih commented Mar 18, 2019 via email

@hito4t
Copy link
Contributor

hito4t commented Mar 22, 2019

@MichaelMih
Thank you for the information!

But I can't reproduce the problem yet.

As you wrote, embulk-input-jdbc uses ResultSetMetaData and it returns Types.NUMERIC.
But embulk-output-jdbc uses DatabaseMetaData, not ResultSetMetaData, and it doesn't return Types.NUMERIC in my environment.

Anyway, I've created the PR #247 to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants