Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-207] fix issues found in scala unit tests #356

Merged
merged 18 commits into from
Jun 23, 2021

Conversation

rui-mo
Copy link
Collaborator

@rui-mo rui-mo commented Jun 7, 2021

What changes were proposed in this pull request?

This pr fixed some issues found in scala unit tests, mainly including:

  • supported aggregate and grouping literal
  • fixed missing validity
  • fixed bool type in hash relation
  • fixed max for bool type
  • fallbacked unsupported cases
  • fixed compilation error

#207

How was this patch tested?

verified on TPC-DS v1, v2 is under test

@github-actions
Copy link

github-actions bot commented Jun 7, 2021

#207

@@ -459,7 +459,7 @@ class CountLiteralAction : public ActionBase {

// prepare evaluate lambda
*on_valid = [this](int dest_group_id) {
cache_[dest_group_id] += arg_;
cache_[dest_group_id] += 1;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For count_literal, why do we add the arg to final result?

<< tmp_name << ".array_id, " << tmp_name << ".id));" << std::endl;
valid_ss << output_validity << " = !" << is_outer_null_name << " && !(" << name
<< "_has_null && " << name << "->IsNull(" << tmp_name << ".array_id, "
<< tmp_name << ".id));" << std::endl;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

define them as global variables

}
}
return unique_defines;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

remove duplicated definitions

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.

2 participants