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-506725: Add support for NUMBER #649

Closed
Bohdan-Bulavkov-Imprivata opened this issue Nov 19, 2021 · 4 comments
Closed

SNOW-506725: Add support for NUMBER #649

Bohdan-Bulavkov-Imprivata opened this issue Nov 19, 2021 · 4 comments
Assignees
Labels
Backlog feature status-triage_done Initial triage done, will be further handled by the driver team

Comments

@Bohdan-Bulavkov-Imprivata

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)

@github-actions github-actions bot changed the title Add support for NUMBER SNOW-506725: Add support for NUMBER Nov 19, 2021
@sfc-gh-mknister sfc-gh-mknister self-assigned this Dec 3, 2021
@sfc-gh-mknister
Copy link
Contributor

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

@Bohdan-Bulavkov-Imprivata
Copy link
Author

Bohdan-Bulavkov-Imprivata commented Dec 3, 2021

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.

@wesleyhillyext
Copy link

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

@sfc-gh-dszmolka sfc-gh-dszmolka added the status-triage_done Initial triage done, will be further handled by the driver team label Apr 26, 2024
@sfc-gh-dszmolka
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog feature status-triage_done Initial triage done, will be further handled by the driver team
Projects
None yet
Development

No branches or pull requests

6 participants