Repository navigation
Conversation
Enable common warnings on Iceberg library targets built with GCC or Clang. The existing warnings-as-errors policy then catches unused helpers in architecture-specific builds. Fix the diagnostics in existing library sources, including destruction through the ResidualEvaluator base class.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The x86-64 CI builds for #1126 compiled the Mumbling SSE2 path with
-Werror, but the compiler had no reason to report the unused scalar helper. Enable-Wallalongside the existing warnings-as-errors policy for Iceberg's static and shared C++ libraries on GCC, Clang and AppleClang. The option is private to those targets.Clean up the warnings exposed by that change. In particular,
ResidualEvaluator::Unpartitioned()returns a derived object through aunique_ptr<ResidualEvaluator>, so the base destructor needs to be virtual. This changes the exported class's vtable. The remaining fixes remove unused code, preserve both inheritedApplyoverloads in cherry-pick operations, and keep metadata builder error propagation while discarding unused IDs.The first commit carries #1188 so x86-64 can build with the new policy. GCC also diagnosed mixed-sign comparisons and a validation loop whose body disappears under
NDEBUG. The comparisons now account for signed counts and limits, and the scan-task group validates its elements inside the debug assertion.Verification
mumbling_bitmap.ccwith AppleClang 17 and-Wall -Werror. The previous source fails on x86-64 with-Wunused-function, and the updated source passes on both x86-64 and arm64.-Wall -Werror, and the option does not propagate to the expression and utility test targets.mumbling_bitmap.ccandtable_scan.ccwith x86-64 Linux GCC 14.4 in Debug and with-O2 -DNDEBUG.scan_testandparquet_test, usestd::ranges::iota, which the local macOS 15.5 SDK does not provide. Both are part of the upstream Test workflow.pre-commit run --all-filespassed.Codex assisted with the implementation and verification.