Skip to content

Commit

Permalink
Format and compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatia committed Nov 14, 2023
1 parent 45daebd commit 39e1a84
Show file tree
Hide file tree
Showing 6 changed files with 20,491 additions and 11,771 deletions.
8 changes: 1 addition & 7 deletions test/src/unit-request-handlers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ ArraySchema HandleLoadArraySchemaRequestFx::call_handler(
}

shared_ptr<ArraySchema> HandleQueryPlanRequestFx::create_schema() {
// Create a schema to serialize
auto schema = make_shared<ArraySchema>(HERE(), ArrayType::DENSE);
schema->set_capacity(10000);
throw_if_not_ok(schema->set_cell_order(Layout::ROW_MAJOR));
Expand Down Expand Up @@ -409,16 +408,11 @@ std::string HandleQueryPlanRequestFx::call_handler(
SerializationType stype, Query& query) {
auto ctx = tiledb::Context();
auto array = tiledb::Array(ctx, uri_.to_string(), TILEDB_READ);
// auto query = tiledb::Query(ctx, array);
auto req_buf = tiledb_buffer_handle_t::make_handle();
auto resp_buf = tiledb_buffer_handle_t::make_handle();

serialization::serialize_query_plan_request(
// cfg_, *query.ptr().get()->query_, stype, req_buf->buffer());
cfg_,
query,
stype,
req_buf->buffer());
cfg_, query, stype, req_buf->buffer());
auto rval = tiledb_handle_query_plan_request(
ctx.ptr().get(),
array.ptr().get(),
Expand Down
1 change: 1 addition & 0 deletions tiledb/sm/c_api/tiledb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4363,6 +4363,7 @@ capi_return_t tiledb_handle_query_plan_request(
plan.dump_json(),
static_cast<tiledb::sm::SerializationType>(serialization_type),
response->buffer());

return TILEDB_OK;
}

Expand Down
1 change: 1 addition & 0 deletions tiledb/sm/query_plan/query_plan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ QueryPlan::QueryPlan(Query& query) {
if (query.is_dense()) {
dimensions_ = query.array()->array_schema_latest().dim_names();
}

std::sort(attributes_.begin(), attributes_.end());
std::sort(dimensions_.begin(), dimensions_.end());
}
Expand Down
4 changes: 3 additions & 1 deletion tiledb/sm/serialization/enumeration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
// clang-format on

#include "tiledb/sm/array_schema/enumeration.h"
#include "tiledb/sm/config/config.h"
#include "tiledb/sm/enums/serialization_type.h"
#include "tiledb/sm/serialization/enumeration.h"

using namespace tiledb::common;

Expand Down Expand Up @@ -361,7 +363,7 @@ std::vector<std::string> deserialize_load_enumerations_request(
}

void serialize_load_enumerations_response(
const std::vector<shared_ptr<const Enumeration>>,
const std::vector<shared_ptr<const Enumeration>>&,
SerializationType,
Buffer&) {
throw Status_SerializationError(
Expand Down
5 changes: 4 additions & 1 deletion tiledb/sm/serialization/query_plan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@
#include <capnp/message.h>
#include <capnp/serialize.h>
#include "tiledb/sm/serialization/capnp_utils.h"
#include "tiledb/sm/serialization/query.h"
#endif
// clang-format on

#include "tiledb/sm/query_plan/query_plan.h"
#include "tiledb/common/thread_pool.h"
#include "tiledb/sm/config/config.h"
#include "tiledb/sm/enums/serialization_type.h"
#include "tiledb/sm/serialization/query.h"
#include "tiledb/sm/serialization/query_plan.h"

using namespace tiledb::common;

Expand Down
Loading

0 comments on commit 39e1a84

Please sign in to comment.