Skip to content

Commit

Permalink
GH-37308: [C++][Doc] Change name for CPP tutorial and minor fixes to …
Browse files Browse the repository at this point in the history
…the job
  • Loading branch information
raulcd committed Aug 22, 2023
1 parent 9ddd8d5 commit 53366ef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cpp/examples/tutorial_examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ find_package(Arrow REQUIRED)

get_filename_component(ARROW_CONFIG_PATH ${Arrow_CONFIG} DIRECTORY)
find_package(Parquet REQUIRED HINTS ${ARROW_CONFIG_PATH})
find_package(ArrowAcero REQUIRED HINTS ${ARROW_CONFIG_PATH})
find_package(ArrowDataset REQUIRED HINTS ${ARROW_CONFIG_PATH})

set(CMAKE_CXX_STANDARD 17)
Expand All @@ -45,4 +46,5 @@ target_link_libraries(compute_example PRIVATE Arrow::arrow_shared)

add_executable(dataset_example dataset_example.cc)
target_link_libraries(dataset_example PRIVATE Arrow::arrow_shared Parquet::parquet_shared
ArrowAcero::arrow_acero_shared
ArrowDataset::arrow_dataset_shared)
1 change: 1 addition & 0 deletions cpp/examples/tutorial_examples/dataset_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <parquet/arrow/writer.h>

#include <iostream>
#include <unistd.h>
// (Doc section: Includes)

// (Doc section: Helper Functions)
Expand Down
2 changes: 2 additions & 0 deletions cpp/examples/tutorial_examples/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ echo "== Running example project"
echo "=="
echo

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

${EXAMPLE_BUILD_DIR}/arrow_example
${EXAMPLE_BUILD_DIR}/compute_example
${EXAMPLE_BUILD_DIR}/file_access_example
Expand Down
2 changes: 1 addition & 1 deletion dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ tasks:
run: {{ kind }}
{% endfor %}

cpp-tutorial-example:
example-cpp-tutorial:
ci: github
template: cpp-examples/github.linux.yml
params:
Expand Down

0 comments on commit 53366ef

Please sign in to comment.