Skip to content

[native] Update to use C++20#25636

Merged
aditi-pandit merged 1 commit intoprestodb:masterfrom
czentgr:cz_cpp20_support
Jul 31, 2025
Merged

[native] Update to use C++20#25636
aditi-pandit merged 1 commit intoprestodb:masterfrom
czentgr:cz_cpp20_support

Conversation

@czentgr
Copy link
Copy Markdown
Contributor

@czentgr czentgr commented Jul 28, 2025

This updates the C++ standard to C++20 to match
the Velox C++ standard.

Resolves #25634

Description

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.

Release Notes

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

== NO RELEASE NOTE ==

@prestodb-ci prestodb-ci added the from:IBM PR from IBM label Jul 28, 2025
@czentgr czentgr force-pushed the cz_cpp20_support branch from 7c1c7a4 to f2fbcc7 Compare July 28, 2025 21:30
@czentgr czentgr marked this pull request as ready for review July 29, 2025 20:13
@czentgr czentgr requested review from a team and steveburnett as code owners July 29, 2025 20:13
@prestodb-ci prestodb-ci requested review from a team, ShahimSharafudeen and anandamideShakyan and removed request for a team July 29, 2025 20:13
@czentgr czentgr requested review from aditi-pandit and pdabre12 July 29, 2025 20:13
pdabre12
pdabre12 previously approved these changes Jul 29, 2025
Copy link
Copy Markdown
Contributor

@pdabre12 pdabre12 left a comment

Choose a reason for hiding this comment

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

Thanks @czentgr

aditi-pandit
aditi-pandit previously approved these changes Jul 30, 2025
Copy link
Copy Markdown
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 @czentgr

steveburnett
steveburnett previously approved these changes Jul 30, 2025
Copy link
Copy Markdown
Contributor

@steveburnett steveburnett left a comment

Choose a reason for hiding this comment

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

LGTM! (docs)

"View file" to review the README.md as it will be displayed. Thanks!

# Set all Velox options below
# Make sure that if we include folly headers or other dependency headers
# that include folly headers we turn off the coroutines and turn on int128.
# Set all Velox options below Make sure that if we include folly headers or
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you want to add a comma here below Make. Or change Make to make?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that was the formatting change and it rearranged the text.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I made a change - causes re-review.

EXPECT_EQ(metadataList.size(), expectedSize);
std::string expectedStr = slurp(test::utils::getDataPath(expectedFile));
auto expected = json::parse(expectedStr);
auto comparator = [](const json& a, const json& b) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this relate to C++ 20 compiler upgrade?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. The comparator behaved differently.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks.

PingLiuPing
PingLiuPing previously approved these changes Jul 31, 2025
This updates the C++ standard to C++20 to match
the Velox C++ standard.
Copy link
Copy Markdown
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 @czentgr

@aditi-pandit aditi-pandit merged commit c862ca4 into prestodb:master Jul 31, 2025
111 checks passed
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.

Add C++20 options to Prestissimo build

6 participants