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

SNOW-1001015: Cannot convert value in the driver from type:FIXED(38,0) to type:int, value=5,738,342,984 #1598

Closed
sfc-gh-msingh opened this issue Jan 5, 2024 · 2 comments

Comments

@sfc-gh-msingh
Copy link

sfc-gh-msingh commented Jan 5, 2024

The customer has a Table in DBT(Source) where the source table is INT type and Snowflake table created is of number(38,0), while inserting the data it is showing an error[1], the same work via Snowflake UI .

as of now the workaround I have used to set "JDBC_TREAT_DECIMAL_AS_INT"" to false.

[1]
Cannot convert value in the driver from type:FIXED(38,0) to type:int, value=5,738,342,984. SQL Statement:select * from smcweene.azure_pasx_ebr_data where order_id = '907981' and activity_path_txt = 'BUFPREP#IPT#CONDTEST#EVALRES' and id = 'CONDRES' and process = 'Solution Preparation' and parameter = 'Conductivity' and material_class = 'Solution' and actual_measurement_numeric = 5.14

This is similar to issue type: #252

JDBC version: JDBC 3.13.28.

@github-actions github-actions bot changed the title Cannot convert value in the driver from type:FIXED(38,0) to type:int, value=5,738,342,984 SNOW-1001015: Cannot convert value in the driver from type:FIXED(38,0) to type:int, value=5,738,342,984 Jan 5, 2024
@sfc-gh-lfaganello
Copy link

I have a customer with the same issue - He's working on IBM Cognos and connecting to Snowflake through JDBC 3.13.6. The error message is very similar:

Error message: XQE-DAT-0001 Data source adapter error: net.snowflake.client.jdbc.SnowflakeSQLException: Cannot convert value in the driver from type:FIXED(null,null) to type:Long, value=11546877906662417390.

However, the workaround of setting the JDBC_TREAT_DECIMAL_AS_INT to false did not work in this case.

@sfc-gh-wfateem
Copy link
Collaborator

Closing this as a duplicate of #252. Please follow the progress of this issue in #252.

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

No branches or pull requests

3 participants