Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: arrow: temporary workaround for 0.8.0+ build support
Use static RecordBatch constructor from Arrow >= 0.8.0 We internally need to support building with 0.7.x for a bit longer, so CMake will attempt to figure out which API to use and then #ifdef in the correct one. Official releases will continue to be built against 0.7.1 until we debug a few issues with 0.9.0+. This commit is a workaround so we can easily continue to build with 0.7.1 while testing 0.9.0+.
- Loading branch information
1 parent
981cbf6
commit 7251443
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "arrow/api.h" | ||
#include "arrow/io/memory.h" | ||
#include "arrow/ipc/api.h" | ||
|
||
int main(int argc, char** argv) { | ||
std::vector<std::shared_ptr<arrow::Array>> result_columns; | ||
std::shared_ptr<arrow::Schema> schema; | ||
auto record = arrow::RecordBatch::Make(schema, 0, result_columns); | ||
// auto record = std::make_shared<arrow::RecordBatch>(schema, 0, result_columns); | ||
} |