Uh oh!
There was an error while loading. Please reload this page.
Support import true or false as boolean value - #3898
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@yangzhg Hi, I think the result of processing bool value for stream load and insert stmt should keep consistent. |
@chaoyli Insert into xx values("0") and stream load import file 0 is not consistent in the current code. Insert into xx values("0") result=true, stream load 0 result=false, and now cast_to_bool Only occurs when the type of the column is bool, so it is not contradictory to the current insert |
I think the meaning of caiconghui is to make consistent of stream load and insert in any situation. |
@caiconghui I will change the insert statement and stream load to keep consistent with mysql |
d3ad424 to
2a15dffCompare…write execution (apache#48673) (apache#3898) pick: apache#48673
Fixes#3831
After this PR
insert into:
1/"1" -> 1, 0/"0"->0, true/"true"->1, false/"false" -> 0, "10"->null, "xxxx" -> nullload:
1/true -> 1, 0/false -> 0, other -> null