Skip to content
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

Window view functional test failed on platform s390x #45375

Merged
merged 4 commits into from
Feb 7, 2023

Conversation

SuzyWangIBMer
Copy link
Contributor

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

...
in the case key casted from uint64 to uint32, small impact for little endian platform but key value becomes zero in big endian case.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

@robot-ch-test-poll robot-ch-test-poll added the pr-improvement Pull request with some product improvements label Jan 17, 2023
@yakov-olkhovskiy yakov-olkhovskiy added the can be tested Allows running workflows for external contributors label Jan 18, 2023
@yakov-olkhovskiy yakov-olkhovskiy self-assigned this Jan 18, 2023
Comment on lines 212 to 215
FieldType casted_key = static_cast<FieldType>(key);
const auto * key_holder = reinterpret_cast<const char *>(&casted_key);
auto * column = static_cast<ColumnVectorHelper *>(key_columns[0]);
column->insertRawData<sizeof(FieldType)>(key_holder);
Copy link
Member

Choose a reason for hiding this comment

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

It's not a good solution - at least it should be under if constexpr or #ifdef for endianness, but I would consider option to add offset to key_holder if sizeof(FieldType) < sizeof(Key)
also, I'm not sure if there can't be a case sizeof(Key) < sizeof(FieldType) - it will be not good...

Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
@yakov-olkhovskiy
Copy link
Member

@Mergifyio update

@yakov-olkhovskiy
Copy link
Member

@SuzyWangIBMer could you please update your branch with master? we had some issues there which were fixed I hope...

@yakov-olkhovskiy yakov-olkhovskiy merged commit 909a772 into ClickHouse:master Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be tested Allows running workflows for external contributors pr-improvement Pull request with some product improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants