@@ -61,3 +61,74 @@ http_archive(
6161 strip_prefix = "aws-sdk-cpp-1.3.15" ,
6262 build_file = "//third_party:aws.BUILD" ,
6363)
64+
65+ http_archive (
66+ name = "snappy" ,
67+ urls = [
68+ "https://mirror.bazel.build/github.com/google/snappy/archive/1.1.7.tar.gz" ,
69+ "https://github.com/google/snappy/archive/1.1.7.tar.gz" ,
70+ ],
71+ sha256 = "3dfa02e873ff51a11ee02b9ca391807f0c8ea0529a4924afa645fbf97163f9d4" ,
72+ strip_prefix = "snappy-1.1.7" ,
73+ build_file = "//third_party:snappy.BUILD" ,
74+ )
75+
76+ http_archive (
77+ name = "arrow" ,
78+ urls = [
79+ "https://mirror.bazel.build/github.com/apache/arrow/archive/apache-arrow-0.9.0.tar.gz" ,
80+ "https://github.com/apache/arrow/archive/apache-arrow-0.9.0.tar.gz" ,
81+ ],
82+ sha256 = "65f89a3910b6df02ac71e4d4283db9b02c5b3f1e627346c7b6a5982ae994af91" ,
83+ strip_prefix = "arrow-apache-arrow-0.9.0" ,
84+ build_file = "//third_party:arrow.BUILD" ,
85+ )
86+
87+ http_archive (
88+ name = "boost" ,
89+ urls = [
90+ "https://mirror.bazel.build/dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz" ,
91+ "https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz"
92+ ],
93+ sha256 = "8aa4e330c870ef50a896634c931adf468b21f8a69b77007e45c444151229f665" ,
94+ strip_prefix = "boost_1_67_0" ,
95+ build_file = "//third_party:boost.BUILD" ,
96+ )
97+
98+ http_archive (
99+ name = "thrift" ,
100+ urls = [
101+ "https://mirror.bazel.build/github.com/apache/thrift/archive/0.11.0.tar.gz" ,
102+ "https://github.com/apache/thrift/archive/0.11.0.tar.gz" ,
103+ ],
104+ sha256 = "0e324569321a1b626381baabbb98000c8dd3a59697292dbcc71e67135af0fefd" ,
105+ strip_prefix = "thrift-0.11.0" ,
106+ build_file = "//third_party:thrift.BUILD" ,
107+ )
108+
109+ # Parquet needs generated parquet_types.h and parquet_types.cpp which are generated
110+ # from src/parquet/parquet.thrift in apache-parquet-cpp-1.4.0.tar.gz.
111+ #
112+ # Generating parquet_types.h and parquet_types.cpp, however, needs both bison and flex
113+ # installed, which is really an unnecessary step.
114+ #
115+ # We use the following step to generate the parquet_types.h and parquet_types.cpp files:
116+ # - In third_party directory, run `docker run -i -t --rm -v $PWD:/v -w /v ubuntu:16.04 bash -x /v/parquet.type`
117+ # - Once complete, a parquet.patch file will be generated which could be used as a patch in bazel
118+ #
119+ # $ cd third_party
120+ # $ docker run -i -t --rm -v $PWD:/v -w /v ubuntu:16.04 bash -x /v/parquet.type
121+ http_archive (
122+ name = "parquet" ,
123+ urls = [
124+ "https://mirror.bazel.build/github.com/apache/parquet-cpp/archive/apache-parquet-cpp-1.4.0.tar.gz" ,
125+ "https://github.com/apache/parquet-cpp/archive/apache-parquet-cpp-1.4.0.tar.gz" ,
126+ ],
127+ sha256 = "52899be6c9dc49a14976d4ad84597243696c3fa2882e5c802b56e912bfbcc7ce" ,
128+ strip_prefix = "parquet-cpp-apache-parquet-cpp-1.4.0" ,
129+ build_file = "//third_party:parquet.BUILD" ,
130+ patches = [
131+ "//third_party:parquet.patch" ,
132+ ],
133+ patch_args = ["-p1" ],
134+ )
0 commit comments