Skip to content

Commit

Permalink
Fix clang warnings, test does not compile on Windows yet
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Jun 12, 2019
1 parent ceec07b commit 68712f8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
16 changes: 9 additions & 7 deletions cpp/src/arrow/dataset/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ foreach(LIB_TARGET ${ARROW_DATASET_LIBRARIES})
target_compile_definitions(${LIB_TARGET} PRIVATE ARROW_DS_EXPORTING)
endforeach()

add_arrow_test(file_test
EXTRA_LINK_LIBS
${ARROW_DATASET_TEST_LINK_LIBS}
PREFIX
"arrow-dataset"
LABELS
"arrow_dataset")
if(NOT WIN32)
add_arrow_test(file_test
EXTRA_LINK_LIBS
${ARROW_DATASET_TEST_LINK_LIBS}
PREFIX
"arrow-dataset"
LABELS
"arrow_dataset")
endif()
4 changes: 3 additions & 1 deletion cpp/src/arrow/dataset/dataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ namespace dataset {
/// which can be read/scanned separately from other fragments
class ARROW_DS_EXPORT DataFragment {
public:
virtual ~DataFragment() = default;

/// \brief Return true if the fragment can benefit from parallel
/// scanning
virtual bool splittable() const = 0;
Expand Down Expand Up @@ -85,7 +87,7 @@ class ARROW_DS_EXPORT Dataset : public std::enable_shared_from_this<Dataset> {
explicit Dataset(std::shared_ptr<DataSource> source,
std::shared_ptr<Schema> schema = NULLPTR);

/// \param[in] source one or more input data sources
/// \param[in] sources one or more input data sources
/// \param[in] schema a known schema to conform to, may be nullptr
explicit Dataset(const std::vector<std::shared_ptr<DataSource>>& sources,
std::shared_ptr<Schema> schema = NULLPTR);
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/dataset/file_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
namespace arrow {
namespace dataset {

/// \brief
/// \brief Contains the location of a file to be read
class ARROW_DS_EXPORT FileSource {
public:
enum SourceType { PATH, BUFFER };
Expand Down

0 comments on commit 68712f8

Please sign in to comment.