Skip to content

Commit

Permalink
fix(array): Update to unit test due to release failure (facebookincub…
Browse files Browse the repository at this point in the history
…ator#12190)

Summary:
Pull Request resolved: facebookincubator#12190

Fix for gcc unit test failure ArrayHasDuplicatesTest.json

Differential Revision: D68734685
  • Loading branch information
peterenescu authored and facebook-github-bot committed Jan 29, 2025
1 parent c36d23a commit 052d6ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions velox/functions/prestosql/tests/ArrayHasDuplicatesTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ TEST_F(ArrayHasDuplicatesTest, json) {
result = evaluate(
"array_has_duplicates(C0)",
makeRowVector({makeNullableArrayVector<StringView>(
{{R"({"key":"value"})", R"({"key":"another_value"})"},
{R"({"key":"value"})"},
{{R"({"key":"value"})"},
{R"({"key":"same_value"})",
R"({"key":"another_value"})",
R"({"key":"same_value"})"},
{std::nullopt, std::nullopt},
{R"({"key":"value"})", R"({"key":"another_value"})"},
{R"({"key":"value"})",
R"({"key":"another_value"})",
R"({"another_key":"value"})"},
Expand All @@ -181,7 +181,7 @@ TEST_F(ArrayHasDuplicatesTest, json) {
std::nullopt}},
ARRAY(JSON()))}));
assertEqualVectors(
makeFlatVector<bool>(
{false, false, true, true, false, true, true, true, true, true}),
makeFlatVector<bool>(std::vector<bool>{
{false, true, true, false, false, true, true, true, true, true}}),
result);
}

0 comments on commit 052d6ce

Please sign in to comment.