Skip to content

fix deprecated-enum-enum-conversion warning in ColumnLowCardinality::SaveBody#493

Open
Maoyao233 wants to merge 1 commit intoClickHouse:masterfrom
Maoyao233:fix-deprecated-enum-enum-conversion
Open

fix deprecated-enum-enum-conversion warning in ColumnLowCardinality::SaveBody#493
Maoyao233 wants to merge 1 commit intoClickHouse:masterfrom
Maoyao233:fix-deprecated-enum-enum-conversion

Conversation

@Maoyao233
Copy link
Copy Markdown

A trivial static_cast to make compiler happy. It solves #452 .

enum-conversion warning in ColumnLowCardinality::SaveBody
@Maoyao233 Maoyao233 requested review from mzitnik and slabko as code owners May 1, 2026 08:04
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 1, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a GCC 11/C++20 build failure in ColumnLowCardinality::SaveBody by avoiding a deprecated enum-to-enum bitwise operation during low-cardinality index serialization. It is a narrowly scoped compatibility fix in the native protocol serialization path for low-cardinality columns.

Changes:

  • Cast the IndexType result to uint64_t before combining it with the serialization flag bit.
  • Preserve the serialized wire-format value while avoiding the compiler warning that becomes an error under -Werror.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants