Skip to content

Conversation

@tanjialiang
Copy link
Contributor

== NO RELEASE NOTE ==

@tanjialiang tanjialiang requested review from a team as code owners October 21, 2025 19:11
@prestodb-ci prestodb-ci added the from:Meta PR from Meta label Oct 21, 2025
zacw7
zacw7 previously approved these changes Oct 21, 2025
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Oct 21, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR advances the Velox submodule to its latest commit and updates associated build definitions and compatibility tweaks in the Presto native execution module.

File-Level Changes

Change Details Files
Updated Velox submodule reference
  • Bumped the Velox SHA in .gitmodules
  • Ran submodule sync and updated git pointer
  • Committed the new Velox version
presto-native-execution/velox
Adjusted build and workspace configurations
  • Updated WORKSPACE to use the new Velox release
  • Modified BUILD rules to reflect API surface changes
  • Re-generated build artifacts for the updated submodule
presto-native-execution/velox/WORKSPACE
presto-native-execution/velox/BUILD
Resolved API compatibility changes
  • Refactored calls to renamed Velox methods
  • Updated import paths for moved modules
  • Suppressed or handled new deprecation warnings
presto-native-execution/velox/** (various source files)

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.

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.

@tanjialiang : Please fix build errors

/__w/presto/presto/presto-native-execution/presto_cpp/main/SessionProperties.cpp: In constructor 'facebook::presto::SessionProperties::SessionProperties()':
/__w/presto/presto/presto-native-execution/presto_cpp/main/SessionProperties.cpp:574:20: error: 'kRowSizeTrackingEnabled' is not a member of 'facebook::velox::core::QueryConfig'
  574 |       QueryConfig::kRowSizeTrackingEnabled,
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
/__w/presto/presto/presto-native-execution/presto_cpp/main/SessionProperties.cpp:575:24: error: 'class facebook::velox::core::QueryConfig' has no member named 'rowSizeTrackingEnabled'; did you mean 'rowSizeTrackingMode'?
  575 |       std::to_string(c.rowSizeTrackingEnabled()));
      |                        ^~~~~~~~~~~~~~~~~~~~~~
      |                        rowSizeTrackingMode
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-nullability-completeness' may have been intended to silence earlier diagnostics
[1142/1299] Building CXX object presto_cpp/main/CMakeFiles/presto_server_remote_function.dir/JsonSignatureParser.cpp.o
[1143/1299] Building CXX object presto_cpp/main/CMakeFiles/presto_server_remote_function.dir/RemoteFunctionRegisterer.cpp.o
[1144/1299] Building CXX object presto_cpp/main/operators/tests/CMakeFiles/presto_operators_plan_builder.dir/PlanBuilder.cpp.o

@unidevel
Copy link
Contributor

unidevel commented Oct 22, 2025

Due to the change in facebookincubator/velox@a52307a54, we have to update scripts related to github_checkout (it removed cd)

@czentgr
Copy link
Contributor

czentgr commented Oct 22, 2025

@unidevel @tanjialiang I'm making another PR to fix the setup scripts. We can either put all of this into a single PR or into two PRs (preferred) that goes after this one.

@czentgr
Copy link
Contributor

czentgr commented Oct 22, 2025

We can merge this as a companion PR to the advance of Velox PR: #26406

@simoneves
Copy link

simoneves commented Oct 22, 2025

Not sure if this is the right place to ask for this, but...

We hit an issue using latest Velox with Presto, because of the recent rowSizeTrackingEnabled/rowSizeTrackingMode change (facebookincubator/velox#15111) and although they provided the ability to set VELOX_ENABLE_BACKWARD_COMPATIBILITY to bridge the change, there is no option in the Presto build to invoke this.

I would like to propose you add this as a Presto build option and plumb it down to the Velox build, as it would help workaround situations like this. They have used that flag several times in the past to bridge changes, and I'm sure they will again in the future, so I was surprised to find that it wasn't exposed in the Presto build.

@mbasmanova
Copy link
Contributor

We intentionally do not want to make this flag available in Prestissimo repo to ensure that Prestissimo code is updated quickly to stop using deprecated APIs.

@simoneves
Copy link

We intentionally do not want to make this flag available in Prestissimo repo to ensure that Prestissimo code is updated quickly to stop using deprecated APIs.

Fair enough. Thank you. We have a workaround for now, so we look forward to the Presto-side fix.

@aditi-pandit
Copy link
Contributor

@tanjialiang : Am curious about the status of this PR. We haven't updated Velox in few days now.

@amitkdutta

@amitkdutta
Copy link
Contributor

@HuamengJiang @tanjialiang kRowSizeTrackingEnabled is now an enum. We need to update Prestissimo appropriately to move Velox version.

@tanjialiang
Copy link
Contributor Author

tanjialiang commented Oct 23, 2025

We can merge this as a companion PR to the advance of Velox PR: #26406

Do you want me to include the PR in this PR and update together? Or how do you want to do it? Let me know.

@czentgr
Copy link
Contributor

czentgr commented Oct 23, 2025

@tanjialiang my PR does not depend on the changes here but is required once this PR merges. Ahh but it turns out you need my PR to get the CI green here (I have thesetup-macos.sh changes).
My PR is about to be merged once its CI is green so we should be good to go here as well soon.

aditi-pandit pushed a commit that referenced this pull request Oct 24, 2025
## Description
    A recent change in Velox changed what the current
    directory is after github_checkout. This breaks
    building the PrestoC++ dependencies.

    The refactor removes github cloning and instead
    pulls released tar.gz images of the source code.
    This also increases the download speed.

This is a companion PR to #26385

```
== NO RELEASE NOTE ==
```
@tanjialiang tanjialiang force-pushed the adv_velox_1 branch 2 times, most recently from f2eb9a3 to a40c13b Compare October 24, 2025 04:57
amitkdutta
amitkdutta previously approved these changes Oct 24, 2025
Copy link
Contributor

@amitkdutta amitkdutta left a comment

Choose a reason for hiding this comment

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

Thanks @tanjialiang

aditi-pandit
aditi-pandit previously approved these changes Oct 24, 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 @tanjialiang

QueryConfig::kRowSizeTrackingEnabled,
std::to_string(c.rowSizeTrackingEnabled()));
QueryConfig::kRowSizeTrackingMode,
std::to_string(static_cast<int32_t>(c.rowSizeTrackingMode())));
Copy link
Contributor

Choose a reason for hiding this comment

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

@tanjialiang : This is just going to show 1, 2, 3 and not the string versions of the enums. We should ask Velox team to expose the string names of the enums (they have a macro for it) which we can use here.

facebookincubator/velox#15111 (review)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah we can do a followup on this

@aditi-pandit aditi-pandit changed the title misc: Advance Velox chore: Advance Velox Oct 24, 2025
@aditi-pandit
Copy link
Contributor

@tdcmeehan : Please can you review. Don't know why committers got tagged here.

@aditi-pandit
Copy link
Contributor

Tim and Christian are working on the Presto Native pre-commit hook. It will take an hour or two to resolve. We can submit after.

@amitkdutta @tanjialiang

@tanjialiang tanjialiang requested a review from zacw7 October 24, 2025 18:21
zacw7
zacw7 previously approved these changes Oct 24, 2025
@tdcmeehan tdcmeehan changed the title chore: Advance Velox chore(ci): Advance Velox Oct 24, 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 @tanjialiang

@aditi-pandit aditi-pandit merged commit 2070d2d into prestodb:master Oct 25, 2025
79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

from:Meta PR from Meta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants