Skip to content

Commit

Permalink
Cleanup Includes (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored Jan 19, 2024
1 parent 0000f23 commit 1c5cd0e
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions pantab/src/pantab.cpp
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
#include <chrono>
#include <cstddef>
#include <hyperapi/SqlType.hpp>
#include <memory>
#include <stdexcept>
#include <string>
#include <string_view>
#include <tuple>
#include <vector>

#include <hyperapi/hyperapi.hpp>
#include <hyperapi/impl/Inserter.impl.hpp>
#include <nanoarrow/nanoarrow.hpp>
#include <nanobind/nanobind.h>
#include <nanobind/stl/chrono.h>
#include <nanobind/stl/map.h>
#include <nanobind/stl/optional.h>
#include <nanobind/stl/string.h>
#include <nanobind/stl/tuple.h>
#include <nanobind/stl/vector.h>

#include "nanoarrow/nanoarrow.h"
#include "nanoarrow/nanoarrow_types.h"
#include "datetime.h"
#include "numpy_datetime.h"

namespace nb = nanobind;
Expand Down Expand Up @@ -511,10 +502,10 @@ class StringReadHelper : public ReadHelper {
}

const auto strval = value.get<std::string>();
const ArrowStringView string_view{strval.c_str(),
static_cast<int64_t>(strval.size())};
const ArrowStringView arrow_string_view{
strval.c_str(), static_cast<int64_t>(strval.size())};

if (ArrowArrayAppendString(array_, string_view)) {
if (ArrowArrayAppendString(array_, arrow_string_view)) {
throw std::runtime_error("ArrowAppendString failed");
};
}
Expand Down

0 comments on commit 1c5cd0e

Please sign in to comment.