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

a boolean value can be set to a int property successfully #3640

Closed
cooper-lzy opened this issue Jan 5, 2022 · 2 comments
Closed

a boolean value can be set to a int property successfully #3640

cooper-lzy opened this issue Jan 5, 2022 · 2 comments
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@cooper-lzy
Copy link
Contributor

Expected return error:
[ERROR (-1005)]: Storage Error: The data type does not meet the requirements. Use the correct type of data.

image

@cooper-lzy cooper-lzy added the type/bug Type: something is unexpected label Jan 5, 2022
@sworduo
Copy link
Contributor

sworduo commented Jan 5, 2022

It seems that it's a feature. Boolean type value can be transformed as INT8/16/32/64. See RowWriterV2.cpp. If it's a bug, it's confusing why they use switch instead of if-else.

@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Jan 5, 2022
@CPWstatic CPWstatic changed the title a boole value can be set to a int property successfully a boolean value can be set to a int property successfully Jan 6, 2022
@critical27
Copy link
Contributor

It is transformed indeed, think of a up cast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

5 participants