Skip to content

Commit e5b19ee

Browse files
authored
Merge pull request #3 from apache/master
12/30/18 Pulldown
2 parents 3b17c29 + 7074889 commit e5b19ee

File tree

427 files changed

+37314
-7561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

427 files changed

+37314
-7561
lines changed

.travis.yml

Lines changed: 49 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ matrix:
4848
fast_finish: true
4949
allow_failures:
5050
- jdk: oraclejdk9
51-
- language: r
5251
include:
5352
- name: "Lint C++, Python, R"
5453
os: linux
@@ -62,77 +61,67 @@ matrix:
6261
- $TRAVIS_BUILD_DIR/ci/travis_install_clang_tools.sh
6362
script:
6463
- $TRAVIS_BUILD_DIR/ci/travis_lint.sh
65-
- name: "C++ & Python w/ gcc 4.9"
64+
- name: "C++ unit tests, code coverage with gcc 4.8"
6665
compiler: gcc
6766
language: cpp
6867
os: linux
6968
jdk: openjdk8
7069
env:
71-
- ARROW_TRAVIS_USE_TOOLCHAIN=1
7270
- ARROW_TRAVIS_VALGRIND=1
71+
- ARROW_TRAVIS_USE_TOOLCHAIN=1
7372
- ARROW_TRAVIS_PLASMA=1
7473
- ARROW_TRAVIS_ORC=1
7574
- ARROW_TRAVIS_COVERAGE=1
7675
- ARROW_TRAVIS_PARQUET=1
77-
- ARROW_TRAVIS_PYTHON_DOCS=1
76+
- ARROW_TRAVIS_GANDIVA=1
77+
- ARROW_TRAVIS_GANDIVA_JAVA=1
7878
- ARROW_BUILD_WARNING_LEVEL=CHECKIN
79-
- ARROW_TRAVIS_PYTHON_JVM=1
80-
- ARROW_TRAVIS_JAVA_BUILD_ONLY=1
81-
- ARROW_TRAVIS_PYTHON_GANDIVA=1
82-
# ARROW-2999 Benchmarks are disabled in Travis CI for the time being
83-
# - ARROW_TRAVIS_PYTHON_BENCHMARKS=1
84-
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
8579
before_script:
86-
# (ARROW_CI_CPP_AFFECTED implies ARROW_CI_PYTHON_AFFECTED)
87-
- if [ $ARROW_CI_PYTHON_AFFECTED != "1" ]; then exit; fi
80+
- if [ $ARROW_CI_CPP_AFFECTED != "1" ] && [ $ARROW_CI_JAVA_AFFECTED != "1" ]; then exit; fi
8881
- $TRAVIS_BUILD_DIR/ci/travis_install_linux.sh
8982
- $TRAVIS_BUILD_DIR/ci/travis_install_clang_tools.sh
9083
# If either C++ or Python changed, we must install the C++ libraries
9184
- git submodule update --init
9285
- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh
9386
script:
94-
# All test steps are required for accurate C++ coverage info
95-
- $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh
96-
# Build Arrow Java to test the pyarrow<->JVM in-process bridge
97-
- $TRAVIS_BUILD_DIR/ci/travis_script_java.sh
98-
# Only run Plasma tests with valgrind in one of the Python builds because
99-
# they are slow
100-
- export PLASMA_VALGRIND=0
101-
- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 2.7
102-
- export PLASMA_VALGRIND=1
103-
- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 3.6
104-
- $TRAVIS_BUILD_DIR/ci/travis_upload_cpp_coverage.sh
105-
- name: "Gandiva C++ w/ gcc 4.9 and Java"
87+
- $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh || travis_terminate 1
88+
- $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_java.sh || travis_terminate 1
89+
- $TRAVIS_BUILD_DIR/ci/travis_upload_cpp_coverage.sh || travis_terminate 1
90+
- name: "Python 2.7 and 3.6 unit tests, coverage with gcc 4.8"
10691
compiler: gcc
10792
language: cpp
10893
os: linux
10994
jdk: openjdk8
11095
env:
111-
- ARROW_TRAVIS_GANDIVA=1
112-
- ARROW_TRAVIS_GANDIVA_JAVA=1
113-
- ARROW_TRAVIS_GANDIVA_TESTS=1
114-
- ARROW_TRAVIS_OPTIONAL_INSTALL=1
115-
- ARROW_CPP_BUILD_TARGETS="gandiva"
116-
# TODO(wesm): Remove this after ARROW-4026
117-
- ARROW_TRAVIS_CPP_TEST_INCLUDE_LABELS="gandiva"
96+
# Valgrind is needed for the Plasma store tests
97+
- ARROW_TRAVIS_VALGRIND=1
11898
- ARROW_TRAVIS_USE_TOOLCHAIN=1
119-
# ARROW-3979 temporarily disabled.
120-
- ARROW_TRAVIS_VALGRIND=0
99+
- ARROW_TRAVIS_COVERAGE=1
100+
- ARROW_TRAVIS_PYTHON_DOCS=1
121101
- ARROW_BUILD_WARNING_LEVEL=CHECKIN
122-
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
102+
- ARROW_TRAVIS_PYTHON_JVM=1
103+
- ARROW_TRAVIS_PYTHON_GANDIVA=1
104+
- ARROW_TRAVIS_OPTIONAL_INSTALL=1
105+
# TODO(wesm): Run the benchmarks outside of Travis
106+
# - ARROW_TRAVIS_PYTHON_BENCHMARKS=1
123107
before_script:
124-
# Run if something changed in CPP or Java.
125-
- if [ $ARROW_CI_CPP_AFFECTED != "1" ] && [ $ARROW_CI_JAVA_AFFECTED != "1" ]; then exit; fi
108+
- if [ $ARROW_CI_PYTHON_AFFECTED != "1" ] && [ $ARROW_CI_DOCS_AFFECTED != "1" ]; then exit; fi
126109
- $TRAVIS_BUILD_DIR/ci/travis_install_linux.sh
127110
- $TRAVIS_BUILD_DIR/ci/travis_install_clang_tools.sh
128-
- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh --only-library
111+
- $TRAVIS_BUILD_DIR/ci/travis_install_toolchain.sh
129112
script:
130-
- $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_cpp.sh
131-
- $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_java.sh
132-
- name: "[OS X] C++ & Python w/ XCode 6.4"
113+
- $TRAVIS_BUILD_DIR/ci/travis_script_java.sh || travis_terminate 1
114+
# Only run Plasma tests with valgrind in one of the Python builds because
115+
# they are slow
116+
- export PLASMA_VALGRIND=0
117+
- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 2.7 || travis_terminate 1
118+
- export PLASMA_VALGRIND=1
119+
- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 3.6 || travis_terminate 1
120+
- $TRAVIS_BUILD_DIR/ci/travis_upload_cpp_coverage.sh
121+
- name: "[OS X] C++ w/ XCode 8.3"
133122
compiler: clang
134123
language: cpp
135-
osx_image: xcode6.4
124+
osx_image: xcode8.3
136125
os: osx
137126
cache:
138127
addons:
@@ -141,41 +130,41 @@ matrix:
141130
- ARROW_TRAVIS_PLASMA=1
142131
- ARROW_TRAVIS_ORC=1
143132
- ARROW_TRAVIS_PARQUET=1
133+
- ARROW_TRAVIS_GANDIVA=1
134+
- ARROW_TRAVIS_GANDIVA_JAVA=1
135+
- ARROW_TRAVIS_OPTIONAL_INSTALL=1
144136
- ARROW_BUILD_WARNING_LEVEL=CHECKIN
137+
# ARROW-3803: The Xcode 8.3 image has Boost libraries in /usr/local/lib
138+
# which can get loaded before the toolchain Boost libraries. These seem to
139+
# get loaded even though we are modifying LD_LIBRARY_PATH. We build our own
140+
# Boost and statically link to get around the issue until this can be
141+
# investigated further
142+
- ARROW_TRAVIS_VENDORED_BOOST=1
145143
before_script:
146-
- if [ $ARROW_CI_PYTHON_AFFECTED != "1" ]; then exit; fi
144+
- if [ $ARROW_CI_CPP_AFFECTED != "1" ] && [ $ARROW_CI_JAVA_AFFECTED != "1" ]; then exit; fi
147145
# If either C++ or Python changed, we must install the C++ libraries
148146
- git submodule update --init
149147
- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh
150148
script:
151-
- if [ $ARROW_CI_CPP_AFFECTED == "1" ]; then $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh; fi
152-
- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 2.7
153-
- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 3.6
154-
- name: "[OS X] Gandiva C++ w/ XCode 8.3 & Java"
149+
- $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh || travis_terminate 1
150+
- $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_java.sh
151+
- name: "[OS X] Python w/ XCode 6.4"
155152
compiler: clang
156153
language: cpp
157-
# xcode 7.3 has a bug in strptime.
158-
osx_image: xcode8.3
154+
osx_image: xcode6.4
159155
os: osx
160156
cache:
161157
addons:
162158
env:
163-
- ARROW_TRAVIS_GANDIVA=1
164-
- ARROW_TRAVIS_GANDIVA_JAVA=1
165-
- ARROW_TRAVIS_GANDIVA_TESTS=1
166-
- ARROW_TRAVIS_OPTIONAL_INSTALL=1
167-
- ARROW_CPP_BUILD_TARGETS="gandiva"
168-
# TODO(wesm): Remove this after ARROW-4026
169-
- ARROW_TRAVIS_CPP_TEST_INCLUDE_LABELS="gandiva"
170159
- ARROW_TRAVIS_USE_TOOLCHAIN=1
171160
- ARROW_BUILD_WARNING_LEVEL=CHECKIN
161+
- ARROW_TRAVIS_OPTIONAL_INSTALL=1
172162
before_script:
173-
# Run if something changed in CPP or Java.
174-
- if [ $ARROW_CI_CPP_AFFECTED != "1" ] && [ $ARROW_CI_JAVA_AFFECTED != "1" ]; then exit; fi
175-
- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh --only-library
176163
script:
177-
- $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_cpp.sh
178-
- $TRAVIS_BUILD_DIR/ci/travis_script_gandiva_java.sh
164+
- if [ $ARROW_CI_PYTHON_AFFECTED != "1" ]; then exit; fi
165+
- $TRAVIS_BUILD_DIR/ci/travis_install_toolchain.sh || travis_terminate 1
166+
- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 2.7 || travis_terminate 1
167+
- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 3.6
179168
- name: "[manylinux1] Python"
180169
language: cpp
181170
before_script:
@@ -292,7 +281,6 @@ matrix:
292281
- if [ $ARROW_CI_RUST_AFFECTED != "1" ]; then exit; fi
293282
- $TRAVIS_BUILD_DIR/ci/travis_install_cargo.sh
294283
script:
295-
- RUSTUP_TOOLCHAIN=stable $TRAVIS_BUILD_DIR/ci/travis_script_rust.sh || true
296284
- RUSTUP_TOOLCHAIN=nightly $TRAVIS_BUILD_DIR/ci/travis_script_rust.sh
297285
after_success:
298286
- pushd ${TRAVIS_BUILD_DIR}/rust

LICENSE.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ See the License for the specific language governing permissions and
681681
limitations under the License.
682682

683683
--------------------------------------------------------------------------------
684-
The file cpp/src/arrow/util/date.h has the following license (MIT)
684+
The file cpp/src/arrow/vendored/date.h has the following license (MIT)
685685

686686
The MIT License (MIT)
687687
Copyright (c) 2015, 2016, 2017 Howard Hinnant
@@ -736,7 +736,7 @@ SOFTWARE.
736736

737737
--------------------------------------------------------------------------------
738738

739-
The file cpp/src/util/string_view/string_view.hpp has the following license
739+
The file cpp/src/arrow/vendored/string_view.hpp has the following license
740740

741741
Boost Software License - Version 1.0 - August 17th, 2003
742742

@@ -764,7 +764,7 @@ DEALINGS IN THE SOFTWARE.
764764

765765
--------------------------------------------------------------------------------
766766

767-
The files in cpp/src/arrow/util/xxhash/ have the following license
767+
The files in cpp/src/arrow/vendored/xxhash/ have the following license
768768
(BSD 2-Clause License)
769769

770770
xxHash Library

c_glib/Makefile.am

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ SUBDIRS = \
2424
parquet-glib \
2525
plasma-glib \
2626
doc \
27-
example \
28-
tool
27+
example
2928

3029
EXTRA_DIST = \
3130
Gemfile \

c_glib/arrow-glib/composite-array.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ GArrowStructArray *garrow_struct_array_new(GArrowDataType *data_type,
130130
GArrowArray *garrow_struct_array_get_field(GArrowStructArray *array,
131131
gint i);
132132

133+
#ifndef GARROW_DISABLE_DEPRECATED
133134
GARROW_DEPRECATED_IN_0_10_FOR(garrow_struct_array_flatten)
134135
GList *garrow_struct_array_get_fields(GArrowStructArray *array);
136+
#endif
135137

136138
GARROW_AVAILABLE_IN_0_10
137139
GList *garrow_struct_array_flatten(GArrowStructArray *array, GError **error);

c_glib/arrow-glib/composite-data-type.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ garrow_struct_data_type_get_field_by_name(GArrowStructDataType *data_type,
230230
auto arrow_struct_data_type =
231231
std::static_pointer_cast<arrow::StructType>(arrow_data_type);
232232

233-
auto arrow_field = arrow_struct_data_type->GetChildByName(name);
233+
auto arrow_field = arrow_struct_data_type->GetFieldByName(name);
234234
if (arrow_field) {
235235
return garrow_field_new_raw(&arrow_field);
236236
} else {
@@ -256,7 +256,7 @@ garrow_struct_data_type_get_field_index(GArrowStructDataType *data_type,
256256
auto arrow_struct_data_type =
257257
std::static_pointer_cast<arrow::StructType>(arrow_data_type);
258258

259-
return arrow_struct_data_type->GetChildIndex(name);
259+
return arrow_struct_data_type->GetFieldIndex(name);
260260
}
261261

262262

c_glib/arrow-glib/orc-file-reader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ garrow_orc_file_reader_new(GArrowSeekableInputStream *file,
3939
GError **error);
4040

4141
#ifndef GARROW_DISABLE_DEPRECATED
42-
G_GNUC_DEPRECATED_FOR(garrow_orc_file_reader_set_field_indices)
42+
GARROW_DEPRECATED_IN_0_12_FOR(garrow_orc_file_reader_set_field_indices)
4343
void
4444
garrow_orc_file_reader_set_field_indexes(GArrowORCFileReader *reader,
4545
const gint *field_indexes,
@@ -50,7 +50,7 @@ garrow_orc_file_reader_set_field_indices(GArrowORCFileReader *reader,
5050
const gint *field_indices,
5151
guint n_field_indices);
5252
#ifndef GARROW_DISABLE_DEPRECATED
53-
G_GNUC_DEPRECATED_FOR(garrow_orc_file_reader_get_field_indices)
53+
GARROW_DEPRECATED_IN_0_12_FOR(garrow_orc_file_reader_get_field_indices)
5454
const gint *
5555
garrow_orc_file_reader_get_field_indexes(GArrowORCFileReader *reader,
5656
guint *n_field_indexes);

0 commit comments

Comments
 (0)