Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

0.0/0 return 0.0 #1212

Open
jackylee-ch opened this issue Jan 13, 2023 · 3 comments
Open

0.0/0 return 0.0 #1212

jackylee-ch opened this issue Jan 13, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@jackylee-ch
Copy link
Contributor

No description provided.

@jackylee-ch jackylee-ch added the bug Something isn't working label Jan 13, 2023
@zhouyuan
Copy link
Collaborator

@jackylee-ch I thought your patch (oap-project/arrow#186) should fix this issue?

@jackylee-ch
Copy link
Contributor Author

Hm, it is another problem. Here is the reproduce code.

create table test_int(a int) using parquet;
insert overwrite test_int values(0);
-- this returns null as expected.
select a / 0 from test_int;
-- this returns 0.0, which is the actual problem.
select a * 1.0 / 0 from test_int;

@jackylee-ch
Copy link
Contributor Author

Hm, it is the problem for divide/mod with decimal, I didn't fix it in (oap-project/arrow#186)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants