diff --git a/velox/functions/remote/if/RemoteFunction.thrift b/velox/functions/remote/if/RemoteFunction.thrift index c3134ff34001..edac31ef22e8 100644 --- a/velox/functions/remote/if/RemoteFunction.thrift +++ b/velox/functions/remote/if/RemoteFunction.thrift @@ -19,7 +19,10 @@ namespace java.swift com.facebook.spark.remotefunctionserver.api cpp_include "folly/io/IOBuf.h" -typedef binary (cpp2.type = "folly::IOBuf") IOBuf +include "thrift/annotation/cpp.thrift" + +@cpp.Type{name = "folly::IOBuf"} +typedef binary IOBuf /// The format used to serialize buffers/payloads. enum PageFormat {