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

decimal type does not supported #104

Open
okayakdeniz opened this issue Oct 18, 2023 · 1 comment
Open

decimal type does not supported #104

okayakdeniz opened this issue Oct 18, 2023 · 1 comment

Comments

@okayakdeniz
Copy link

we have created a table which is contains decimal(28,2) data type. when we select a query from this table, R application has been crashed immediatelly. We have converted our data type from decimal to float.

@inkrement
Copy link
Member

Thank you for reaching out. This is a known issue, and there is no easy solution for it. AFAIK there is no native data type in R for decimals, and R-decimal is a floating-point number and not a fixed-point decimal as the Clickhouse-decimal (e.g., https://stackoverflow.com/q/16960167). We want to avoid hacks, third-party types, and implicit conversion, and that's why it has not been done yet. If you are OK with the properties of a double-type, then cast it in SQL or create a view. There are some plans to use the arrow-datatypes (e.g., decimal128), but it would require a significant rewrite of our package.

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

No branches or pull requests

2 participants