Skip to content

Comments

fix: Update custom_functions xsimd library#26320

Closed
mohsaka wants to merge 1 commit intoprestodb:masterfrom
mohsaka:xsimd_library
Closed

fix: Update custom_functions xsimd library#26320
mohsaka wants to merge 1 commit intoprestodb:masterfrom
mohsaka:xsimd_library

Conversation

@mohsaka
Copy link
Contributor

@mohsaka mohsaka commented Oct 15, 2025

Description

Update xsimd usage in custom_functions library.

Motivation and Context

Impact

Test Plan

Contributor checklist

  • Please make sure your submission complies with our contributing guide, in particular code style and commit standards.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.
  • If adding new dependencies, verified they have an OpenSSF Scorecard score of 5.0 or higher (or obtained explicit TSC approval for lower scores).

Release Notes

Please follow release notes guidelines and fill in the release notes below.

If release note is NOT required, use:

== NO RELEASE NOTE ==

@mohsaka mohsaka requested review from a team as code owners October 15, 2025 18:37
@prestodb-ci prestodb-ci added the from:IBM PR from IBM label Oct 15, 2025
@prestodb-ci prestodb-ci requested review from a team, anandamideShakyan and pratyakshsharma and removed request for a team October 15, 2025 18:37
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Oct 15, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Refactors CMake integration for xsimd in the custom_functions library by replacing direct target references with the ${XSIMD} variable and updating include/link settings for compatibility.

File-Level Changes

Change Details Files
Switch xsimd link target to use ${XSIMD} variable in CMake build
  • Replaced hard-coded xsimd target in test library linking with ${XSIMD}
  • Updated include directory references to align with the XSIMD variable
  • Ensured XSIMD is correctly propagated from find_package for both custom_functions and tests
presto-native-tests/presto_cpp/tests/custom_functions/CMakeLists.txt
presto-native-execution/velox/CMakeLists.txt

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@mohsaka mohsaka changed the title bug-fix: Update custom_functions xsimd library fix: Update custom_functions xsimd library Oct 15, 2025
aditi-pandit
aditi-pandit previously approved these changes Oct 15, 2025
Copy link
Contributor

@aditi-pandit aditi-pandit left a comment

Choose a reason for hiding this comment

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

Thanks @mohsaka.

Does this help with the compilation issues we saw with custom functions earlier ?

@mohsaka
Copy link
Contributor Author

mohsaka commented Oct 15, 2025

Thanks @mohsaka.

Does this help with the compilation issues we saw with custom functions earlier ?

Hi @aditi-pandit There are a few issues that came up afterwards. 1 was that BUNDLED was required. @minhancao and @pramodsatya both pointed this out to me.

@minhancao Has a different fix where we use find_package(xsimd) instead of ${XSIMD}

We are not sure which one is better to use or which one is more universal. I'm also trying to fix the issue with the const expr since I'm waiting for reviews for TVF.

Co-authored-by: minhancao <minhan.duc.cao@gmail.com>
Co-authored-by: czentgr <82243552+czentgr@users.noreply.github.com>
@mohsaka
Copy link
Contributor Author

mohsaka commented Oct 16, 2025

Replaced by #26324

@mohsaka mohsaka closed this Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

from:IBM PR from IBM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants