Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Add cardinality API to QueryBuilder. #591

Merged
merged 1 commit into from
Jul 24, 2023
Merged

Conversation

ienkovich
Copy link
Contributor

No description provided.

Verified

This commit was signed with the committer’s verified signature.
ienkovich Ilya Enkovich
Signed-off-by: ienkovich <ilya.enkovich@intel.com>
if (expr_->as<Constant>()->isNull()) {
return builder_->nullCst(builder_->ctx_.int32());
}
return builder_->cst(static_cast<int32_t>(expr_->as<Constant>()->valueList().size()),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the size casted to signed int here but not below (line 1606)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is because hdk::ir::Type::size returns int, not size_t.

@ienkovich ienkovich merged commit 0570a23 into main Jul 24, 2023
@ienkovich ienkovich deleted the ienkovich/cardinality branch July 24, 2023 17:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants