Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit fb5b146

Browse files
authored
Merge branch 'master' into tbb
2 parents d20431c + da74d36 commit fb5b146

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

script/installation/packages.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
## * OSX
1818
## =================================================================
1919

20+
set -o errexit
2021

2122
# Determine OS platform
2223
UNAME=$(uname | tr "[:upper:]" "[:lower:]")
@@ -104,14 +105,12 @@ if [ "$DISTRO" = "UBUNTU" ]; then
104105
echo -e "\n# Added by Peloton 'packages.sh' script on $(date)\ndeb $LLVM_PKG_URL $LLVM_PKG_TARGET" | sudo tee -a /etc/apt/sources.list > /dev/null
105106
fi
106107
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
107-
sudo apt-get update -qq
108108
CMAKE_NAME="cmake3"
109-
FORCE_Y="--force-yes"
110109
else
111110
CMAKE_NAME="cmake"
112-
FORCE_Y=""
113111
fi
114112

113+
sudo apt-get update
115114
FORCE_Y=""
116115
PKG_CMAKE="cmake"
117116
PKG_LLVM="llvm-3.7"
@@ -134,7 +133,7 @@ if [ "$DISTRO" = "UBUNTU" ]; then
134133
fi
135134
TFCApiFile="libtensorflow-${TF_TYPE}-linux-x86_64-${TF_VERSION}.tar.gz"
136135
LinkerConfigCmd="sudo ldconfig"
137-
sudo apt-get -qq $FORCE_Y --ignore-missing -y install \
136+
sudo apt-get -q $FORCE_Y --ignore-missing -y install \
138137
$PKG_CMAKE \
139138
$PKG_LLVM \
140139
$PKG_CLANG \
@@ -172,7 +171,7 @@ if [ "$DISTRO" = "UBUNTU" ]; then
172171
## DEBIAN
173172
## ------------------------------------------------
174173
elif [ "$DISTRO" = "DEBIAN OS" ]; then
175-
sudo apt-get -qq --ignore-missing -y install \
174+
sudo apt-get -q --ignore-missing -y install \
176175
git \
177176
g++ \
178177
clang \
@@ -316,6 +315,7 @@ elif [[ "$DISTRO" == *"REDHAT"* ]] && [[ "${DISTRO_VER%.*}" == "7" ]]; then
316315
## DARWIN (OSX)
317316
## ------------------------------------------------
318317
elif [ "$DISTRO" = "DARWIN" ]; then
318+
set +o errexit
319319
if test ! $(which brew); then
320320
echo "Installing homebrew..."
321321
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

src/include/optimizer/optimizer.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ namespace concurrency {
3737
class TransactionContext;
3838
}
3939

40+
namespace test {
41+
class OptimizerRuleTests_SimpleAssociativeRuleTest_Test;
42+
class OptimizerRuleTests_SimpleAssociativeRuleTest2_Test;
43+
}
44+
4045
namespace optimizer {
4146

4247
struct QueryInfo {
@@ -55,6 +60,9 @@ class Optimizer : public AbstractOptimizer {
5560
friend class BindingIterator;
5661
friend class GroupBindingIterator;
5762

63+
friend class ::peloton::test::OptimizerRuleTests_SimpleAssociativeRuleTest_Test;
64+
friend class ::peloton::test::OptimizerRuleTests_SimpleAssociativeRuleTest2_Test;
65+
5866
public:
5967
Optimizer(const Optimizer &) = delete;
6068
Optimizer &operator=(const Optimizer &) = delete;

test/optimizer/optimizer_rule_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#define private public
14-
1513
#include "binder/bind_node_visitor.h"
1614
#include "catalog/catalog.h"
1715
#include "common/harness.h"

0 commit comments

Comments
 (0)