Skip to content

feat: basic implement GetFieldByNameCaseInsensitive#145

Closed
mapleFU wants to merge 1 commit into
apache:mainfrom
mapleFU:ignore-case-find
Closed

feat: basic implement GetFieldByNameCaseInsensitive#145
mapleFU wants to merge 1 commit into
apache:mainfrom
mapleFU:ignore-case-find

Conversation

@mapleFU

@mapleFU mapleFU commented Jul 15, 2025

Copy link
Copy Markdown
Member

No description provided.

Comment thread src/iceberg/type.cc
Comment on lines +32 to +38
bool StringEqualsCaseInsensitive(std::string_view lhs, std::string_view rhs) {
if (lhs.size() != rhs.size()) {
return false;
}
return std::equal(lhs.begin(), lhs.end(), rhs.begin(),
[](char a, char b) { return std::tolower(a) == std::tolower(b); });
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

the bad thing is that this could only uses ascii, I suggest import icu or utf8 libs ( or even boost::locale?) for this scenerio

@wgtmac

wgtmac commented Aug 23, 2025

Copy link
Copy Markdown
Member

Close this in favor of #180

@wgtmac wgtmac closed this Aug 23, 2025
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.

2 participants