-
Notifications
You must be signed in to change notification settings - Fork 416
py3-tensorflow-data-validation/1.17.0 package update #55695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
octo-sts
bot
commented
Jun 9, 2025
Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
🛑 Build Failed: Compilation
Build Details
Root Cause Analysis 🔍The compilation fails because of a type error in the hash policy traits. The specific error is '(absl::lts_20240722::container_internal::TypeErasedApplyToSlotFn<absl::lts_20240722::hash_internal::Hashzetasql::functions::match_recognize::NFAState, zetasql::functions::match_recognize::NFAState> == 0)' is not a constant expression. This is likely due to incompatibilities between the NFAState class and the hash implementation in Abseil. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Suggested ChangesFile: 0001-fix-build.patch
Content:
Content:
Content: File: pipeline
Replacement: Content:
Replacement: Content:
Content: Click to expand fix analysisAnalysisThe build failure is related to a compilation error in the ZetaSQL component when building py3-tensorflow-data-validation. The error specifically occurs in the file zetasql/common/match_recognize/nfa.cc and involves a type error in the hash policy traits. The error message indicates an issue with the NFAState class and the hash implementation in Abseil. According to the upstream changelog, there was a recent update to ZetaSQL (v2024.11.1) and related dependencies. The error likely stems from incompatibilities between the updated ZetaSQL code and the Abseil library version being used. The changelog also mentions updating the GCC version to gcc-10, which suggests that newer C++ features or standards might be required. Click to expand fix explanationExplanationThe build failure is happening because of an incompatibility between the hash function implementation for the NFAState class in ZetaSQL and the newer version of Abseil library. The error message specifically mentions a problem with the type erasure in the hash policy traits, indicating that the hash function for NFAState is not properly defined for the current Abseil version. The suggested fix addresses this issue through several approaches:
The patch creates a compatibility layer that bridges the gap between the NFAState class implementation and the hashing requirements of the newer Abseil library. By providing a custom hasher, we avoid the internal type erasure mechanism of Abseil that's causing the current error. The toString() method is commonly available on such objects, making it a reliable way to generate a hash value, even though it might not be the most efficient approach. This solution should allow the code to compile successfully while maintaining compatibility with the updated ZetaSQL and Abseil libraries. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
|
Current failure is mostly released to abseil/abseil-cpp#1634
But changing the config to use clang by these change causes another set of error ERROR: And somehow everything is connected to setasql 😢 |
…ll-pointer-checks Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
Let's try with 128GiB. Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>