Skip to content

Commit 09ff103

Browse files
committed
Fix conflicts.
2 parents ebae611 + b951d8d commit 09ff103

File tree

165 files changed

+4939
-2995
lines changed

Some content is hidden

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

165 files changed

+4939
-2995
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ MANIFEST
2727

2828
cpp/.idea/
2929
python/.eggs/
30-
.vscode
30+
.vscode
31+
.idea/

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,27 @@ matrix:
120120
- $TRAVIS_BUILD_DIR/ci/travis_before_script_c_glib.sh
121121
script:
122122
- $TRAVIS_BUILD_DIR/ci/travis_script_c_glib.sh
123+
- compiler: gcc
124+
language: cpp
125+
os: linux
126+
group: deprecated
127+
before_script:
128+
- export CC="gcc-4.9"
129+
- export CXX="g++-4.9"
130+
- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh
131+
script:
132+
- $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh
133+
- $TRAVIS_BUILD_DIR/ci/travis_script_plasma.sh
134+
- compiler: clang
135+
osx_image: xcode6.4
136+
os: osx
137+
cache:
138+
addons:
139+
before_script:
140+
- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh
141+
script:
142+
- $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh
143+
- $TRAVIS_BUILD_DIR/ci/travis_script_plasma.sh
123144

124145
before_install:
125146
- ulimit -c unlimited -S

appveyor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ environment:
4545
PYTHON: "3.5"
4646
ARCH: "64"
4747
CONFIGURATION: "Release"
48+
- JOB: "Build"
49+
GENERATOR: Visual Studio 15 2017 Win64
50+
PYTHON: "3.5"
51+
ARCH: "64"
52+
CONFIGURATION: "Release"
53+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
54+
BOOST_ROOT: C:\Libraries\boost_1_64_0
4855

4956
MSVC_DEFAULT_OPTIONS: ON
5057
BOOST_ROOT: C:\Libraries\boost_1_63_0

ci/travis_script_manylinux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ set -ex
1818
pushd python/manylinux1
1919
git clone ../../ arrow
2020
docker build -t arrow-base-x86_64 -f Dockerfile-x86_64 .
21-
docker run --rm -e PYARROW_PARALLEL=3 -v $PWD:/io arrow-base-x86_64 /io/build_arrow.sh
21+
docker run --shm-size=2g --rm -e PYARROW_PARALLEL=3 -v $PWD:/io arrow-base-x86_64 /io/build_arrow.sh

ci/travis_script_plasma.sh

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
#!/usr/bin/env bash
2+
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License. See accompanying LICENSE file.
14+
15+
set -e
16+
17+
source $TRAVIS_BUILD_DIR/ci/travis_env_common.sh
18+
19+
export ARROW_HOME=$ARROW_CPP_INSTALL
20+
export PYARROW_WITH_PLASMA=1
21+
22+
pushd $ARROW_PYTHON_DIR
23+
24+
function build_arrow_libraries() {
25+
CPP_BUILD_DIR=$1
26+
CPP_DIR=$TRAVIS_BUILD_DIR/cpp
27+
28+
mkdir $CPP_BUILD_DIR
29+
pushd $CPP_BUILD_DIR
30+
31+
cmake -DARROW_BUILD_TESTS=off \
32+
-DARROW_PYTHON=on \
33+
-DARROW_PLASMA=on \
34+
-DCMAKE_INSTALL_PREFIX=$2 \
35+
$CPP_DIR
36+
37+
make -j4
38+
make install
39+
40+
popd
41+
}
42+
43+
python_version_tests() {
44+
PYTHON_VERSION=$1
45+
CONDA_ENV_DIR=$TRAVIS_BUILD_DIR/pyarrow-test-$PYTHON_VERSION
46+
47+
export ARROW_HOME=$TRAVIS_BUILD_DIR/arrow-install-$PYTHON_VERSION
48+
export LD_LIBRARY_PATH=$ARROW_HOME/lib:$PARQUET_HOME/lib
49+
50+
conda create -y -q -p $CONDA_ENV_DIR python=$PYTHON_VERSION cmake curl
51+
source activate $CONDA_ENV_DIR
52+
53+
python --version
54+
which python
55+
56+
# faster builds, please
57+
conda install -y -q nomkl
58+
59+
# Expensive dependencies install from Continuum package repo
60+
conda install -y -q pip numpy pandas cython
61+
62+
# Build C++ libraries
63+
build_arrow_libraries arrow-build-$PYTHON_VERSION $ARROW_HOME
64+
65+
# Other stuff pip install
66+
pip install -r requirements.txt
67+
68+
python setup.py build_ext --inplace
69+
70+
python -m pytest -vv -r sxX pyarrow
71+
72+
# Build documentation once
73+
if [[ "$PYTHON_VERSION" == "3.6" ]]
74+
then
75+
conda install -y -q --file=doc/requirements.txt
76+
python setup.py build_sphinx -s doc/source
77+
fi
78+
79+
# Build and install pyarrow
80+
pushd $TRAVIS_BUILD_DIR/python
81+
python setup.py install
82+
popd
83+
84+
# Run Plasma tests
85+
pushd $TRAVIS_BUILD_DIR/python
86+
python -m pytest pyarrow/tests/test_plasma.py
87+
if [ $TRAVIS_OS_NAME == "linux" ]; then
88+
PLASMA_VALGRIND=1 python -m pytest pyarrow/tests/test_plasma.py
89+
fi
90+
popd
91+
}
92+
93+
# run tests for python 2.7 and 3.6
94+
python_version_tests 2.7
95+
python_version_tests 3.6
96+
97+
popd

ci/travis_script_python.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set -e
1717
source $TRAVIS_BUILD_DIR/ci/travis_env_common.sh
1818

1919
export ARROW_HOME=$ARROW_CPP_INSTALL
20+
export PYARROW_WITH_PLASMA=1
2021

2122
pushd $ARROW_PYTHON_DIR
2223
export PARQUET_HOME=$TRAVIS_BUILD_DIR/parquet-env
@@ -71,9 +72,8 @@ function build_arrow_libraries() {
7172
pushd $CPP_BUILD_DIR
7273

7374
cmake -DARROW_BUILD_TESTS=off \
74-
-DARROW_PYTHON=on \
75-
-DPLASMA_PYTHON=on \
7675
-DARROW_PLASMA=on \
76+
-DARROW_PYTHON=on \
7777
-DCMAKE_INSTALL_PREFIX=$2 \
7878
$CPP_DIR
7979

cpp/.clang-format

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -15,67 +15,6 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
---
18-
Language: Cpp
19-
# BasedOnStyle: Google
20-
AccessModifierOffset: -1
21-
AlignAfterOpenBracket: false
22-
AlignConsecutiveAssignments: false
23-
AlignEscapedNewlinesLeft: true
24-
AlignOperands: true
25-
AlignTrailingComments: true
26-
AllowAllParametersOfDeclarationOnNextLine: true
27-
AllowShortBlocksOnASingleLine: true
28-
AllowShortCaseLabelsOnASingleLine: false
29-
AllowShortFunctionsOnASingleLine: Inline
30-
AllowShortIfStatementsOnASingleLine: true
31-
AllowShortLoopsOnASingleLine: false
32-
AlwaysBreakAfterDefinitionReturnType: None
33-
AlwaysBreakBeforeMultilineStrings: true
34-
AlwaysBreakTemplateDeclarations: true
35-
BinPackArguments: true
36-
BinPackParameters: true
37-
BreakBeforeBinaryOperators: None
38-
BreakBeforeBraces: Attach
39-
BreakBeforeTernaryOperators: true
40-
BreakConstructorInitializersBeforeComma: false
41-
ColumnLimit: 90
42-
CommentPragmas: '^ IWYU pragma:'
43-
ConstructorInitializerAllOnOneLineOrOnePerLine: true
44-
ConstructorInitializerIndentWidth: 4
45-
ContinuationIndentWidth: 4
46-
Cpp11BracedListStyle: true
18+
BasedOnStyle: Google
4719
DerivePointerAlignment: false
48-
DisableFormat: false
49-
ExperimentalAutoDetectBinPacking: false
50-
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
51-
IndentCaseLabels: true
52-
IndentWidth: 2
53-
IndentWrappedFunctionNames: false
54-
KeepEmptyLinesAtTheStartOfBlocks: false
55-
MacroBlockBegin: ''
56-
MacroBlockEnd: ''
57-
MaxEmptyLinesToKeep: 1
58-
NamespaceIndentation: None
59-
ObjCBlockIndentWidth: 2
60-
ObjCSpaceAfterProperty: false
61-
ObjCSpaceBeforeProtocolList: false
62-
PenaltyBreakBeforeFirstCallParameter: 1000
63-
PenaltyBreakComment: 300
64-
PenaltyBreakFirstLessLess: 120
65-
PenaltyBreakString: 1000
66-
PenaltyExcessCharacter: 1000000
67-
PenaltyReturnTypeOnItsOwnLine: 200
68-
PointerAlignment: Left
69-
SpaceAfterCStyleCast: false
70-
SpaceBeforeAssignmentOperators: true
71-
SpaceBeforeParens: ControlStatements
72-
SpaceInEmptyParentheses: false
73-
SpacesBeforeTrailingComments: 2
74-
SpacesInAngles: false
75-
SpacesInContainerLiterals: true
76-
SpacesInCStyleCastParentheses: false
77-
SpacesInParentheses: false
78-
SpacesInSquareBrackets: false
79-
Standard: Cpp11
80-
TabWidth: 8
81-
UseTab: Never
20+
ColumnLimit: 90

cpp/cmake_modules/SnappyConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#ifndef SNAPPY_CONFIG_H
3030
#define SNAPPY_CONFIG_H 1
3131

32-
#if defined(_MSC_VER) && (_MSC_VER <= 1900)
32+
#if defined(_MSC_VER) && (_MSC_VER <= 1910)
3333
typedef __int64 ssize_t;
3434
#endif
3535

cpp/src/arrow/allocator-test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ TEST(stl_allocator, FreeLargeMemory) {
4848

4949
#ifndef NDEBUG
5050
EXPECT_EXIT(alloc.deallocate(data, 120), ::testing::ExitedWithCode(1),
51-
".*Check failed: \\(bytes_allocated_\\) >= \\(size\\)");
51+
".*Check failed: \\(bytes_allocated_\\) >= \\(size\\)");
5252
#endif
5353

5454
alloc.deallocate(data, 100);

0 commit comments

Comments
 (0)