Skip to content

Add patches from tea/vendor - #1

Merged
leborchuk merged 1 commit into
maint-15.0.2from
ApplyPatches
Jul 20, 2026
Merged

Add patches from tea/vendor#1
leborchuk merged 1 commit into
maint-15.0.2from
ApplyPatches

Conversation

@leborchuk

Copy link
Copy Markdown
Collaborator

I moved patches from https://github.com/lithium-tech/tea/tree/main/vendor/arrow to this this branch in order to to improve transparency and make it easier to migrate to other versions of arrow

Copilot AI review requested due to automatic review settings July 20, 2026 10:58

@gmusya gmusya left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR incorporates a set of downstream patch changes (previously carried in tea/vendor) directly into this branch to make the Arrow patchset more transparent and easier to migrate across Arrow versions.

Changes:

  • Update the c-ares thirdparty download URL to use the GitHub release asset location.
  • Adjust Gandiva LIKE/ILIKE handling to use RE2 dotall mode (and register a holder maker for ilike), with corresponding test updates.
  • Add a Snappy decompression fast-path for zero-length input.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
cpp/thirdparty/versions.txt Switches c-ares source URL to GitHub releases.
cpp/src/gandiva/regex_functions_holder.h Extends LIKE holder factory API to accept RE2 options for escape-char form.
cpp/src/gandiva/regex_functions_holder.cc Enables dotall in LIKE/ILIKE holder creation; wires ilike behavior through options.
cpp/src/gandiva/regex_functions_holder_test.cc Adds newline-related LIKE coverage and updates calls to pass RE2 options.
cpp/src/gandiva/function_holder_maker_registry.cc Registers a function holder maker for ilike.
cpp/src/arrow/util/compression_snappy.cc Adds early return for input_len == 0 in Snappy decompression.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 40 to 47
static Result<std::shared_ptr<LikeHolder>> Make(const std::string& sql_pattern);

static Result<std::shared_ptr<LikeHolder>> Make(const std::string& sql_pattern,
const std::string& escape_char);
const std::string& escape_char,
RE2::Options regex_op);

static Result<std::shared_ptr<LikeHolder>> Make(const std::string& sql_pattern,
RE2::Options regex_op);
Comment on lines 101 to 105
RE2::Options regex_op;
regex_op.set_dot_nl(true); // set dotall mode for the regex.
if (node.descriptor()->name() == "ilike") {
regex_op.set_case_sensitive(false); // set case-insensitive for ilike function.

Comment on lines 119 to 123
Status::Invalid(
"'like' function requires a string literal as the third parameter"));
return Make(std::get<std::string>(literal->holder()),
std::get<std::string>(escape_char->holder()));
std::get<std::string>(escape_char->holder()), regex_op);
}
Comment on lines 44 to +48
Result<int64_t> Decompress(int64_t input_len, const uint8_t* input,
int64_t output_buffer_len, uint8_t* output_buffer) override {
if (input_len == 0) {
return 0;
}
@leborchuk
leborchuk merged commit 0effab2 into maint-15.0.2 Jul 20, 2026
1 check passed
@leborchuk
leborchuk deleted the ApplyPatches branch July 20, 2026 11:07
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