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 not handled #14

Open
bmoreau8 opened this issue Sep 25, 2024 · 0 comments
Open

decimal type not handled #14

bmoreau8 opened this issue Sep 25, 2024 · 0 comments

Comments

@bmoreau8
Copy link

Hey folks,

I'm currently running duckdb 1.1.1 and tried to use a table which contains decimal columns.
Creating it on UC generate following type_text "decimal" not "decimal(" because scale and precision are handled separatly with the type_precision and type_scale.

How to reproduce:
Create a table with following schema parameters :
bin/uc table create --full_name unity.default.local_sales --column 'gmv_recorded_at date, item_code string, country_code string, gmv_item_quantity long, gmv_amount decimal(32,6), gmv_amount_euros decimal(32,6)' --format PARQUET --storage_location 's3://whateverBucket/myDataset'

result should be something like this for the decimal columns :
image

on duckdb perform the following :
install uc_catalog from core_nightly;
load uc_catalog;
CREATE SECRET (
TYPE UC,
TOKEN 'not-used',
ENDPOINT 'http://127.0.0.1:8080',
AWS_REGION 'us-east-2'
);
ATTACH 'unity' AS unity (TYPE UC_CATALOG);
show all tables;

Where issue could be :
https://github.com/duckdb/uc_catalog/blob/e416fd95465b6d6137492b18db4421bf232fb1fe/src/uc_utils.cpp#L58C13-L58C22

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

1 participant