Apache DataFusion SQL Query Engine
ARROW-4080: [Rust] Improving lengthy build times in Appveyor
Chao Sun9b8ac8d57ab6
diff --git a/.travis.yml b/.travis.ymlindex 99ff24aaac..b37194f8f2 100644--- a/.travis.yml+++ b/.travis.yml@@ -282,7 +282,6 @@ matrix:- if [ $ARROW_CI_RUST_AFFECTED != "1" ]; then exit; fi- $TRAVIS_BUILD_DIR/ci/travis_install_cargo.shscript:- - RUSTUP_TOOLCHAIN=stable $TRAVIS_BUILD_DIR/ci/travis_script_rust.sh || true- RUSTUP_TOOLCHAIN=nightly $TRAVIS_BUILD_DIR/ci/travis_script_rust.shafter_success:- pushd ${TRAVIS_BUILD_DIR}/rustdiff --git a/ci/rust-build-main.bat b/ci/rust-build-main.batindex e338f7e172..6ef451204d 100644--- a/ci/rust-build-main.bat+++ b/ci/rust-build-main.bat@@ -22,33 +22,13 @@ git submodule update --init || exit /Bset PARQUET_TEST_DATA=%CD%\cpp\submodules\parquet-testing\datapushd rust-@echo ===================================-@echo Build with stable toolchain-@echo ===================================--rustup default stable-rustup show-cargo build --target %TARGET%-cargo build --target %TARGET% --release-@echo Test (debug)-@echo -------------cargo test --target %TARGET%-@echo-@echo Test (release)-@echo ---------------cargo test --target %TARGET% --release-@echo ===================================@echo Build with nightly toolchain@echo ===================================rustup default nightlyrustup show-cargo build --target %TARGET% || exit /Bcargo build --target %TARGET% --release || exit /B-@echo Test (debug)-@echo -------------cargo test --target %TARGET% || exit /B@echo@echo Test (release)@echo --------------diff --git a/ci/travis_script_rust.sh b/ci/travis_script_rust.shindex 4b09bc22e4..af61dd3944 100755--- a/ci/travis_script_rust.sh+++ b/ci/travis_script_rust.sh@@ -36,7 +36,6 @@ cargo rustc -- -D warningscargo buildcargo test-cargo benchcargo run --example builderscargo run --example dynamic_typescargo run --example read_csvdiff --git a/rust/src/parquet/column/mod.rs b/rust/src/parquet/column/mod.rsindex 09c4bde51f..4ced32e28c 100644--- a/rust/src/parquet/column/mod.rs+++ b/rust/src/parquet/column/mod.rs@@ -35,7 +35,7 @@//! The example uses column writer and reader APIs to write raw values, definition and//! repetition levels and read them to verify write/read correctness.//!-//! ```rust+//! ```rust,no_run//! use std::{fs, path::Path, rc::Rc};//!//! use arrow::parquet::{@@ -48,7 +48,7 @@//! schema::parser::parse_message_type,//! };//!-//! let path = Path::new("target/debug/examples/column_sample.parquet");+//! let path = Path::new("/path/to/column_sample.parquet");//!//! // Writing data using column writer API.//!diff --git a/rust/src/parquet/file/mod.rs b/rust/src/parquet/file/mod.rsindex ebaebbad0b..38fe8fa9b1 100644--- a/rust/src/parquet/file/mod.rs+++ b/rust/src/parquet/file/mod.rs@@ -26,7 +26,7 @@//!//! # Example of writing a new file//!-//! ```rust+//! ```rust,no_run//! use std::{fs, path::Path, rc::Rc};//!//! use arrow::parquet::{@@ -37,7 +37,7 @@//! schema::parser::parse_message_type,//! };//!-//! let path = Path::new("target/debug/examples/sample.parquet");+//! let path = Path::new("/path/to/sample.parquet");//!//! let message_type = "//! message schema {@@ -61,11 +61,11 @@//! ```//! # Example of reading an existing file//!-//! ```rust+//! ```rust,no_run//! use arrow::parquet::file::reader::{FileReader, SerializedFileReader};//! use std::{fs::File, path::Path};//!-//! let path = Path::new("target/debug/examples/sample.parquet");+//! let path = Path::new("/path/to/sample.parquet");//! if let Ok(file) = File::open(&path) {//! let file = File::open(&path).unwrap();//! let reader = SerializedFileReader::new(file).unwrap();