Skip to content

Commit

Permalink
[BugFix][C++] Remove arrow header from GraphAr's header (#229)
Browse files Browse the repository at this point in the history

Signed-off-by: acezen <qiaozi.zwb@alibaba-inc.com>
  • Loading branch information
acezen authored Aug 29, 2023
1 parent dacd613 commit eb0f3d9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cpp/include/gar/util/filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ limitations under the License.
#include "gar/util/status.h"
#include "gar/util/util.h"

#include "arrow/dataset/api.h"
#include "gar/util/reader_util.h"

// forward declarations
Expand All @@ -39,6 +38,9 @@ class FileSystem;
namespace io {
class RandomAccessFile;
}
namespace dataset {
class FileFormat;
}
} // namespace arrow

namespace GAR_NAMESPACE_INTERNAL {
Expand Down
3 changes: 2 additions & 1 deletion cpp/include/gar/util/reader_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ limitations under the License.
#include <vector>

#include "gar/graph_info.h"
#include "gar/util/expression.h"

namespace GAR_NAMESPACE_INTERNAL {

class Expression;

namespace util {

using Filter = std::shared_ptr<Expression>;
Expand Down
2 changes: 2 additions & 0 deletions cpp/src/filesystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ limitations under the License.
#include "arrow/adapters/orc/adapter.h"
#include "arrow/api.h"
#include "arrow/csv/api.h"
#include "arrow/dataset/api.h"
#include "arrow/filesystem/api.h"
#include "arrow/ipc/writer.h"
#include "parquet/arrow/writer.h"

#include "gar/util/expression.h"
#include "gar/util/filesystem.h"

namespace GAR_NAMESPACE_INTERNAL {
Expand Down
1 change: 1 addition & 0 deletions cpp/src/reader_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ limitations under the License.
#include "parquet/arrow/reader.h"

#include "gar/graph_info.h"
#include "gar/util/expression.h"
#include "gar/util/filesystem.h"
#include "gar/util/reader_util.h"

Expand Down
1 change: 1 addition & 0 deletions cpp/test/test_arrow_chunk_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ limitations under the License.

#include "./util.h"
#include "gar/reader/arrow_chunk_reader.h"
#include "gar/util/expression.h"

#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
Expand Down

0 comments on commit eb0f3d9

Please sign in to comment.