Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 7066b8c

Browse files
committed
Fix test cases to correctly construct TVE in having clause
1 parent 265cb45 commit 7066b8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/codegen/group_by_translator_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ TEST_F(GroupByTranslatorTest, AggregationWithOutputPredicate) {
236236

237237
// 5) The predicate on the average aggregate
238238
auto *x_exp =
239-
new expression::TupleValueExpression(type::TypeId::DECIMAL, 1, 0);
239+
new expression::TupleValueExpression(type::TypeId::DECIMAL, 0, 1);
240240
auto *const_50 = new expression::ConstantValueExpression(
241241
type::ValueFactory::GetDecimalValue(50.0));
242242
ExpressionPtr x_gt_50{

test/codegen/query_cache_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class QueryCacheTest : public PelotonCodeGenTest {
145145

146146
// 5) The predicate on the average aggregate
147147
auto *x_exp =
148-
new expression::TupleValueExpression(type::TypeId::DECIMAL, 1, 0);
148+
new expression::TupleValueExpression(type::TypeId::DECIMAL, 0, 1);
149149
auto *const_50 = new expression::ConstantValueExpression(
150150
type::ValueFactory::GetDecimalValue(50.0));
151151
std::unique_ptr<expression::AbstractExpression> x_gt_50{

0 commit comments

Comments
 (0)