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 PrimitiveArray change datatype after try_unary #4644

Closed
jackwener opened this issue Aug 4, 2023 · 2 comments
Closed

Decimal PrimitiveArray change datatype after try_unary #4644

jackwener opened this issue Aug 4, 2023 · 2 comments
Labels

Comments

@jackwener
Copy link
Member

Describe the bug

To Reproduce

        let a = Decimal128Array::from(vec![1, 3, -44, 2, 4])
            .with_precision_and_scale(9, 6)
            .unwrap();

        let f: PrimitiveArray<Decimal128Type> = a.unary(|i| i.add(1));

datatype from (9, 6) -> (38, 10)

Expected behavior

Additional context

@jackwener jackwener added the bug label Aug 4, 2023
@tustvold
Copy link
Contributor

tustvold commented Aug 4, 2023

Possibly related to #3307

@viirya
Copy link
Member

viirya commented Aug 4, 2023

That is default datatype. In unary, it doesn't keep parameter of datatype e.g. precision/scale and timezone, I think.

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

No branches or pull requests

3 participants