Skip to content

[2.10] MOD-7944: Support multi-byte char terms (#5391)#5646

Merged
oshadmi merged 1 commit into2.10from
nafraf_backport-5391-to-2.10
Feb 17, 2025
Merged

[2.10] MOD-7944: Support multi-byte char terms (#5391)#5646
oshadmi merged 1 commit into2.10from
nafraf_backport-5391-to-2.10

Conversation

@nafraf
Copy link
Collaborator

@nafraf nafraf commented Feb 12, 2025

Description

Manual backport of #5391 to 2.10.
(cherry picked from commit 43701d8)

  • Since Version 2.10 limits the normalization buffer to 128 bytes, #define MAX_NORMALIZE_SIZE 128, expected results in testLongTerms() were modified to respect that limitation.

  • In testMultibyteTag, for tests using DIALECT 4, the number of results was changed to ANY, because in this version a wrong count is returned.

  • In test_cpp_llapi.cpp, RediSearch_CreateTagLexRangeNode() receives only 5 arguments, in this version const char* fieldName is not part of the function signature

@nafraf nafraf marked this pull request as ready for review February 12, 2025 20:51
@codecov
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 98.58156% with 2 lines in your changes missing coverage. Please review.

Project coverage is 87.51%. Comparing base (27b49d4) to head (d3bad91).
Report is 3 commits behind head on 2.10.

Files with missing lines Patch % Lines
src/query_param.c 50.00% 1 Missing ⚠️
src/query_parser/v2/parser.c 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #5646      +/-   ##
==========================================
+ Coverage   87.48%   87.51%   +0.03%     
==========================================
  Files         196      196              
  Lines       34157    34229      +72     
==========================================
+ Hits        29883    29957      +74     
+ Misses       4274     4272       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nafraf nafraf requested review from oshadmi and raz-mon February 13, 2025 03:23
Comment on lines +1 to +6
/*
* Copyright Redis Ltd. 2016 - present
* Licensed under your choice of the Redis Source Available License 2.0 (RSALv2) or
* the Server Side Public License v1 (SSPLv1).
*/

Copy link
Collaborator

Choose a reason for hiding this comment

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

This has got to stop happening.. 🤦‍♂️

@oshadmi oshadmi added this pull request to the merge queue Feb 17, 2025
Merged via the queue into 2.10 with commit 3053af3 Feb 17, 2025
16 checks passed
@oshadmi oshadmi deleted the nafraf_backport-5391-to-2.10 branch February 17, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants