snowflake-jdbc icon indicating copy to clipboard operation
snowflake-jdbc copied to clipboard

SNOW-506725: Add support for NUMBER

Open Bohdan-Bulavkov-Imprivata opened this issue 3 years ago • 3 comments

No enum constant net.snowflake.client.jdbc.SnowflakeType.NUMBER java.lang.IllegalArgumentException: No enum constant net.snowflake.client.jdbc.SnowflakeType.NUMBER at java.base/java.lang.Enum.valueOf(Enum.java:273) at net.snowflake.client.jdbc.SnowflakeType.valueOf(SnowflakeType.java:18)

Hi @Bohdan-Bulavkov-Imprivata , what is the context behind this? Why is support for NUMBER needed? Can you give an example?

sfc-gh-mknister avatar Dec 03 '21 00:12 sfc-gh-mknister

Hi @sfc-gh-mknister I have a view where I use function array_size(event_data:steps) AS number_of_factors. The type of this field is NUMBER(9,0) which I can see from UI. When I try to execute SnowflakeType.valueOf() I get the error above. I would expect SnowflakeType to have each field that Snowflake supports.

I suspect that nowflakeType.FIXED is meant to represent the NUMBER type. (As in fixed-point arithmetic).

wesleyhillyext avatar Dec 05 '22 16:12 wesleyhillyext

closing this issue per above comment, but please do comment if there are still open concerns and can reopen

sfc-gh-dszmolka avatar Apr 26 '24 11:04 sfc-gh-dszmolka