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

Fix string split which should be on whole separator #9650

Merged
merged 2 commits into from Oct 25, 2022

Conversation

Jackie-Jiang
Copy link
Contributor

Fix split() and split_part() scalar function which should be split on whole separator. Currently split(col, 'ab') will split on both a and b which is incorrect.

@Jackie-Jiang Jackie-Jiang added release-notes Referenced by PRs that need attention when compiling the next release notes bugfix labels Oct 25, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #9650 (415ae8f) into master (b2da310) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #9650      +/-   ##
============================================
+ Coverage     62.83%   62.86%   +0.02%     
+ Complexity     5162     5161       -1     
============================================
  Files          1935     1935              
  Lines        103815   103815              
  Branches      15758    15758              
============================================
+ Hits          65236    65259      +23     
+ Misses        33708    33680      -28     
- Partials       4871     4876       +5     
Flag Coverage Δ
integration1 25.86% <0.00%> (+0.13%) ⬆️
integration2 24.63% <33.33%> (+0.02%) ⬆️
unittests1 67.33% <100.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
.../pinot/common/function/scalar/StringFunctions.java 73.14% <100.00%> (ø)
...ore/query/scheduler/resources/ResourceManager.java 84.00% <0.00%> (-12.00%) ⬇️
...or/transform/function/IsNullTransformFunction.java 75.86% <0.00%> (-6.90%) ⬇️
...mmon/request/context/predicate/NotInPredicate.java 87.50% <0.00%> (-6.25%) ⬇️
...tream/kafka20/server/KafkaDataServerStartable.java 72.91% <0.00%> (-6.25%) ⬇️
.../pinot/core/query/scheduler/PriorityScheduler.java 77.77% <0.00%> (-5.56%) ⬇️
...e/pinot/controller/helix/SegmentStatusChecker.java 72.15% <0.00%> (-4.55%) ⬇️
.../filter/predicate/InPredicateEvaluatorFactory.java 74.43% <0.00%> (-4.52%) ⬇️
...ller/validation/OfflineSegmentIntervalChecker.java 74.15% <0.00%> (-2.25%) ⬇️
...core/startree/operator/StarTreeFilterOperator.java 85.91% <0.00%> (-2.12%) ⬇️
... and 24 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

}

/**
* TODO: Revisit if index should be zero-based
Copy link
Contributor

@snleee snleee Oct 25, 2022

Choose a reason for hiding this comment

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

What do you mean by zero-based here? Can you elaborate the concern here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See the discussion under #9554. Added more comments to make it more clear

@Jackie-Jiang Jackie-Jiang merged commit 7518b3d into apache:master Oct 25, 2022
@Jackie-Jiang Jackie-Jiang deleted the fix_string_split branch October 25, 2022 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix release-notes Referenced by PRs that need attention when compiling the next release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants