Skip to content

[BUG] load data with bool value will convert to all true value; #3831

@yangzhg

Description

@yangzhg

Describe the bug
When importing bool data into doris, the result of the import is wrong, all will be converted to 1

To Reproduce
the table is

+-------+---------+------+-------+---------+-------+
| Field | Type    | Null | Key   | Default | Extra |
+-------+---------+------+-------+---------+-------+
| k1    | BOOLEAN | Yes  | true  | N/A     |       |
+-------+---------+------+-------+---------+-------+

the data file is

true
false
true
false

execute command

cat bool_data| curl --location-trusted -u root: -T - http://127.0.0.1:8030/api/test/tbl_bool/_stream_load

the result is

+------+
| k1   |
+------+
|    1 |
|    1 |
|    1 |
|    1 |
+------+

Expected behavior

+------+
| k1   |
+------+
|    1 |
|    0 |
|    1 |
|    0 |
+------+

Metadata

Metadata

Assignees

Labels

kind/fixCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions