Skip to content

Commit 8adbb78

Browse files
committed
[native] Update tests and advance Velox version
1 parent 0a2ae5e commit 8adbb78

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

presto-native-execution/presto_cpp/main/types/tests/PlanConverterTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ TEST_F(PlanConverterTest, partitionedOutput) {
139139
// Test fragment's partitioning scheme.
140140
ASSERT_EQ(
141141
partitionedOutput->partitionFunctionSpec().toString(),
142-
"HASH(\"1 elements starting at 0 {cluster_label_v2}\", expr_181)");
142+
"HASH(\"{cluster_label_v2}\", expr_181)");
143143
auto keys = partitionedOutput->keys();
144144
ASSERT_EQ(keys.size(), 2);
145-
ASSERT_EQ(keys[0]->toString(), "1 elements starting at 0 {cluster_label_v2}");
145+
ASSERT_EQ(keys[0]->toString(), "{cluster_label_v2}");
146146
ASSERT_EQ(keys[1]->toString(), "\"expr_181\"");
147147
ASSERT_EQ(partitionedOutput->serdeKind(), VectorSerde::Kind::kCompactRow);
148148
}

presto-native-execution/presto_cpp/main/types/tests/RowExpressionTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ TEST_F(RowExpressionTest, likeSimple) {
935935
ASSERT_NE(callExpr, nullptr);
936936

937937
auto callExprToString = callExpr->toString();
938-
ASSERT_EQ(callExprToString, "presto.default.like(\"type\",\"%BRASS\")");
938+
ASSERT_EQ(callExprToString, "presto.default.like(\"type\",%BRASS)");
939939
}
940940

941941
TEST_F(RowExpressionTest, likeWithEscape) {
@@ -999,7 +999,7 @@ TEST_F(RowExpressionTest, likeWithEscape) {
999999

10001000
auto callExprToString = callExpr->toString();
10011001
ASSERT_EQ(
1002-
callExpr->toString(), "presto.default.like(\"type\",\"%BRASS\",\"#\")");
1002+
callExpr->toString(), "presto.default.like(\"type\",%BRASS,#)");
10031003
}
10041004

10051005
TEST_F(RowExpressionTest, dereference) {

presto-native-execution/velox

Submodule velox updated 136 files

0 commit comments

Comments
 (0)