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

HIVE-26713: StringExpr ArrayIndexOutOfBoundsException with LIKE '%xxx%' #4999

Merged
merged 9 commits into from Jan 23, 2024

Conversation

ryukobayashi
Copy link
Contributor

What changes were proposed in this pull request?

When LIKE(%xxx%) search is performed, if the character string contains control characters, overflow occurs.

Why are the changes needed?

ArrayIndexOutOfBoundsException will occur if the input data contains a control code, etc.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added testcase as part of PR.

Copy link
Contributor

@zhangbutao zhangbutao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1. Pending a green test.
Would like to keep this PR open for a few days, so that let others who may be interested in this take a look.

@zhangbutao
Copy link
Contributor

@ryukobayashi You can rebase this PR to get a green CI.

@zhangbutao
Copy link
Contributor

Can you rebase your PR ?

Copy link

sonarcloud bot commented Jan 22, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@ryukobayashi
Copy link
Contributor Author

@zhangbutao Sorry for the late reply. The latest master is now green, so I merged it and this PR test also became green.

@zhangbutao zhangbutao merged commit 36d32ec into apache:master Jan 23, 2024
6 checks passed
@ryukobayashi
Copy link
Contributor Author

Thanks.

tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Feb 9, 2024
…%' (apache#4999)(Ryu Kobayashi, reviewed by Attila Turoczy, Butao Zhang)
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Mar 7, 2024
…%' (apache#4999)(Ryu Kobayashi, reviewed by Attila Turoczy, Butao Zhang)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants