Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

OPIK-1010: Use better solution for case insensitive map #1271

Conversation

thiagohora
Copy link
Contributor

Details

Using a built-in solution for the case insensitive map

Issues

OPIK-1010

@thiagohora thiagohora requested a review from a team as a code owner February 13, 2025 09:43
@thiagohora thiagohora self-assigned this Feb 13, 2025
Copy link
Collaborator

@andrescrz andrescrz left a comment

Choose a reason for hiding this comment

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

Just a suggestion, but LGTM.

Project::name,
Function.identity(),
BinaryOperatorUtils.last(),
() -> new TreeMap<>(String.CASE_INSENSITIVE_ORDER)));
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could use CaseInsensitiveMap:

Probably nicer to read and without the sorting implications (performance) from TreeMap.

Anyway, this is fine too.

@thiagohora thiagohora merged commit 75d6f82 into main Feb 14, 2025
8 checks passed
@thiagohora thiagohora deleted the thiagohora/OPIK-1010_use_better_solution_for_case_insensitive_map branch February 14, 2025 09:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants