Skip to content

[Bug] core problem when load json data, when the jsonpaths not inappropriate with table column #4452

@HappenLee

Description

@HappenLee

Describe the bug
There have a table:

CREATE TABLE `json_table` (
  `k1` tinyint(4) NULL COMMENT "",
  `k2` smallint(6) NULL COMMENT "",
  `k3` int(11) NULL COMMENT "",
  `k4` bigint(20) NULL COMMENT "",
  `k5` datetime NULL COMMENT "",
  `v6` decimal(20, 7) SUM NULL COMMENT ""
) ENGINE=OLAP
AGGREGATE KEY(`k1`, `k2`, `k3`, `k4`, `k5`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`k1`) BUCKETS 15
PROPERTIES (
"replication_num" = "1",
"in_memory" = "false",
"storage_format" = "V2"
);

if we load the data do not include v6, will core sometime

curl --location-trusted -u test:test_passwd -H "format: json" -H "jsonpaths:[\"$.k1\", \"$.k2\", \"$.k3\", \"$.k4\", \"$.k5\"]" -T json_object_basic.json http://localhost:8086/api/test/json_table/_stream_load

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions