Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cpp/src/arrow/flight/internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ namespace arrow {
namespace flight {
namespace internal {

const char* kGrpcAuthHeader = "auth-token-bin";

Status FromGrpcStatus(const grpc::Status& grpc_status) {
if (grpc_status.ok()) {
return Status::OK();
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/arrow/flight/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ namespace flight {
namespace internal {

/// The name of the header used to pass authentication tokens.
static const char* kGrpcAuthHeader = "auth-token-bin";
ARROW_FLIGHT_EXPORT
extern const char* kGrpcAuthHeader;

ARROW_FLIGHT_EXPORT
Status SchemaToString(const Schema& schema, std::string* out);
Expand Down
5 changes: 5 additions & 0 deletions cpp/src/arrow/flight/types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
namespace arrow {
namespace flight {

const char* kSchemeGrpc = "grpc";
const char* kSchemeGrpcTcp = "grpc+tcp";
const char* kSchemeGrpcUnix = "grpc+unix";
const char* kSchemeGrpcTls = "grpc+tls";

bool FlightDescriptor::Equals(const FlightDescriptor& other) const {
if (type != other.type) {
return false;
Expand Down
12 changes: 8 additions & 4 deletions cpp/src/arrow/flight/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,14 @@ struct ARROW_FLIGHT_EXPORT Ticket {
class FlightClient;
class FlightServerBase;

static const char* kSchemeGrpc = "grpc";
static const char* kSchemeGrpcTcp = "grpc+tcp";
static const char* kSchemeGrpcUnix = "grpc+unix";
static const char* kSchemeGrpcTls = "grpc+tls";
ARROW_FLIGHT_EXPORT
extern const char* kSchemeGrpc;
ARROW_FLIGHT_EXPORT
extern const char* kSchemeGrpcTcp;
ARROW_FLIGHT_EXPORT
extern const char* kSchemeGrpcUnix;
ARROW_FLIGHT_EXPORT
extern const char* kSchemeGrpcTls;

/// \brief A host location (a URI)
struct ARROW_FLIGHT_EXPORT Location {
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/util/compression-benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include "arrow/testing/gtest_util.h"
#include "arrow/util/compression.h"
#include "arrow/util/logging.h"

namespace arrow {
namespace util {
Expand Down