pandeysambhi opened a new pull request, #8744:
URL: https://github.com/apache/gravitino/pull/8744
<!--
1. Title: [#<issue>] <type>(<scope>): <subject>
Examples:
- "[#123] feat(operator): support xxx"
- "[#233] fix: check null before access result in xxx"
- "[MINOR] refactor: fix typo in variable name"
- "[MINOR] docs: fix typo in README"
- "[#255] test: fix flaky test NameOfTheTest"
Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->
### What changes were proposed in this pull request?
updated the Regex Pattern to capture the bucket details.
- Ensure the regex matches both with and without BUCKETS.
- If the regex matches but BUCKETS is missing, default to 1.
### Why are the changes needed?
To fix the bucket count parsing in DorisUtils. The current regex expects
BUCKETS to always be present, but in the absence of BUCKETS, the code should
default to 1.
The code already defaults to 1 if [matcher.group(5)] is null, but the regex
may not always match if BUCKETS is missing, causing the method to throw an
exception.
Fix: (#8006)
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
unit testing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]