Skip to content

Commit

Permalink
Fix RowExpressionTest to be forward compatible with variant.toJson ch…
Browse files Browse the repository at this point in the history
…anges.
  • Loading branch information
kgpai committed Oct 11, 2023
1 parent b8c2241 commit 627da72
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ TEST_F(RowExpressionTest, call) {
{
auto cexpr = std::static_pointer_cast<const ConstantTypedExpr>(iexpr[1]);
ASSERT_EQ(cexpr->type()->toString(), "VARCHAR");
ASSERT_EQ(cexpr->value().toJson(), "\"foo\"");
ASSERT_EQ(cexpr->value().toJson(cexpr->type()), "\"foo\"");
}
}
}
Expand Down Expand Up @@ -585,7 +585,7 @@ TEST_F(RowExpressionTest, special) {
auto cexpr = std::static_pointer_cast<const ConstantTypedExpr>(
arg0expr->inputs()[1]);
ASSERT_EQ(cexpr->type()->toString(), "BIGINT");
ASSERT_EQ(cexpr->value().toJson(), "10");
ASSERT_EQ(cexpr->value().toJson(cexpr->type()), "10");
}
}

Expand All @@ -605,7 +605,7 @@ TEST_F(RowExpressionTest, special) {
auto cexpr = std::static_pointer_cast<const ConstantTypedExpr>(
arg1expr->inputs()[1]);
ASSERT_EQ(cexpr->type()->toString(), "VARCHAR");
ASSERT_EQ(cexpr->value().toJson(), "\"foo\"");
ASSERT_EQ(cexpr->value().toJson(cexpr->type()), "\"foo\"");
}
}
}
Expand Down

0 comments on commit 627da72

Please sign in to comment.