8000 Transform equivalent json comparison expression · Issue #57184 · StarRocks/starrocks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Transform equivalent json comparison expression #57184
Open
@murphyatwork

Description

@murphyatwork

Enhancement

While these expressions share the same semantics, their current implementations and performances vary.

-- 0.096s
select count(*) from bluesky where get_json_string(data, 'commit.operation') = 'create';

-- 0.097s
select count(*) from bluesky where cast(data-> 'commit.operation' as varchar) = 'create';

-- 0.621s
select count(*) from bluesky where (data-> 'commit.operation') = 'create';

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementMake an enhancement to StarRocks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0