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

json, expr: json_search should return NULL when the search path is NULL | tidb-test=pr/2486 #59714

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

YangKeao
Copy link
Member

What problem does this PR solve?

Issue Number: close #59463

Problem Summary:

The json_search should return NULL when the search path is NULL. It's not the same with the situation when the search path is omitted.

This issue only affects the vectorized execution. The non-vectorized logic is correct.

What changed and how does it work?

Return NULL when it found the search path is NULL.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/needs-triage-completed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 24, 2025
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.3664%. Comparing base (87f6c7b) to head (00a3084).
Report is 2 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #59714        +/-   ##
================================================
+ Coverage   72.9458%   73.3664%   +0.4206%     
================================================
  Files          1699       1699                
  Lines        469236     469281        +45     
================================================
+ Hits         342288     344295      +2007     
+ Misses       105854     103891      -1963     
- Partials      21094      21095         +1     
Flag Coverage Δ
integration 42.7769% <100.0000%> (?)
unit 72.1609% <20.0000%> (+0.0161%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.6910% <ø> (ø)
parser ∅ <ø> (∅)
br 45.0225% <ø> (ø)

@YangKeao YangKeao changed the title json, expr: json_search should return NULL when the search path is NULL json, expr: json_search should return NULL when the search path is NULL | tidb-test=pr/2486 Feb 24, 2025
@YangKeao
Copy link
Member Author

/retest

@YangKeao YangKeao requested review from xhebox and XuHuaiyu February 24, 2025 11:32
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Feb 25, 2025
Copy link

ti-chi-bot bot commented Feb 25, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xhebox, XuHuaiyu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added approved lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Feb 25, 2025
Copy link

ti-chi-bot bot commented Feb 25, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-02-25 01:17:18.470113439 +0000 UTC m=+318586.423271722: ☑️ agreed by xhebox.
  • 2025-02-25 07:16:31.834185167 +0000 UTC m=+340139.787343433: ☑️ agreed by XuHuaiyu.

@YangKeao
Copy link
Member Author

/retest

Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
@ti-chi-bot ti-chi-bot bot merged commit 8b30027 into pingcap:master Feb 26, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON_SEARCH returns incorrect result for some special value
3 participants