Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yma11 committed Feb 28, 2024
1 parent 2506b0a commit f6b5b40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
21 changes: 4 additions & 17 deletions velox/functions/lib/Re2Functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ void re2SplitAll(
resultWriter.commit();
}

class Re2SplitAllConstantPattern final : public VectorFunction {
class Re2SplitAllConstantPattern final : public exec::VectorFunction {
public:
explicit Re2SplitAllConstantPattern(StringView pattern)
: re_(toStringPiece(pattern), RE2::Quiet) {}
Expand All @@ -1231,7 +1231,7 @@ class Re2SplitAllConstantPattern final : public VectorFunction {
const SelectivityVector& rows,
std::vector<VectorPtr>& args,
const TypePtr& /* outputType */,
EvalCtx& context,
exec::EvalCtx& context,
VectorPtr& resultRef) const final {
VELOX_CHECK(args.size() == 2);
try {
Expand Down Expand Up @@ -2016,9 +2016,9 @@ re2ExtractAllSignatures() {
};
}

std::shared_ptr<VectorFunction> makeRe2SplitAll(
std::shared_ptr<exec::VectorFunction> makeRe2SplitAll(
const std::string& name,
const std::vector<VectorFunctionArg>& inputArgs,
const std::vector<exec::VectorFunctionArg>& inputArgs,
const core::QueryConfig& /*config*/) {
auto numArgs = inputArgs.size();
VELOX_USER_CHECK_EQ(
Expand All @@ -2045,19 +2045,6 @@ std::shared_ptr<VectorFunction> makeRe2SplitAll(

auto pattern = constantPattern->as<ConstantVector<StringView>>()->valueAt(0);

// void apply(
// const SelectivityVector& rows,
// std::vector<VectorPtr>& args,
// const TypePtr& /* outputType */,
// EvalCtx& context,
// VectorPtr& resultRef) const final {
// try {
// checkForBadPattern(re_);
// } catch (const std::exception& e) {
// context.setErrors(rows, std::current_exception());
// return;
// }

return std::make_shared<Re2SplitAllConstantPattern>(pattern);
}

Expand Down
4 changes: 0 additions & 4 deletions velox/vector/arrow/Bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,6 @@ const char* exportArrowFormatStr(
return "+m"; // map
case TypeKind::ROW:
return "+s"; // struct
case TypeKind::UNKNOWN:
return "n";

default:
VELOX_NYI("Unable to map type '{}' to ArrowSchema.", type->kind());
}
Expand Down Expand Up @@ -631,7 +628,6 @@ void exportFlat(
case TypeKind::HUGEINT:
case TypeKind::REAL:
case TypeKind::DOUBLE:
case TypeKind::UNKNOWN:
case TypeKind::TIMESTAMP:
case TypeKind::UNKNOWN:
exportValues(vec, rows, options, out, pool, holder);
Expand Down
2 changes: 0 additions & 2 deletions velox/vector/arrow/tests/ArrowBridgeSchemaTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ TEST_F(ArrowBridgeSchemaExportTest, constant) {
testConstant(ROW({UNKNOWN(), UNKNOWN()}), "+s");
}

}

class ArrowBridgeSchemaImportTest : public ArrowBridgeSchemaExportTest {
protected:
TypePtr testSchemaImport(const char* format) {
Expand Down

0 comments on commit f6b5b40

Please sign in to comment.