From 9a21a7a4562c6524d81c8398f0a8248d8a32a829 Mon Sep 17 00:00:00 2001
From: Jonathan Janetzki <jonathan.janetzki@student.hpi.de>
Date: Fri, 7 Jun 2019 21:16:30 +0200
Subject: [PATCH] :heavy_plus_sign: Add SQL queries as submodule (#1704)

 This PR adds the queries for verification against TPC-DS's standard answer set.
---
 .gitmodules                           | 3 +++
 DEPENDENCIES.md                       | 1 +
 src/CMakeLists.txt                    | 1 +
 third_party/tpcds-result-reproduction | 1 +
 4 files changed, 6 insertions(+)
 create mode 160000 third_party/tpcds-result-reproduction

diff --git a/.gitmodules b/.gitmodules
index c70e4f1ea4..e1cb6ebd29 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -37,3 +37,6 @@
 [submodule "third_party/jemalloc"]
 	path = third_party/jemalloc
 	url = https://github.com/jemalloc/jemalloc.git
+[submodule "third_party/tpcds-result-reproduction"]
+	path = third_party/tpcds-result-reproduction
+	url = https://github.com/cwida/tpcds-result-reproduction.git
diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md
index 773279d649..f8ea308c07 100644
--- a/DEPENDENCIES.md
+++ b/DEPENDENCIES.md
@@ -39,3 +39,4 @@
 - cqf (https://github.com/ArneMayer/cqf)
 - jemalloc (https://github.com/jemalloc/jemalloc)
 - zstd (https://github.com/facebook/zstd)
+- tpcds-result-reproduction (https://github.com/cwida/tpcds-result-reproduction.git)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1bd65575ae..a29482624b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -100,6 +100,7 @@ include_directories(
     ${PROJECT_SOURCE_DIR}/third_party/json
     ${PROJECT_SOURCE_DIR}/third_party/lz4
     ${PROJECT_SOURCE_DIR}/third_party/zstd
+    ${PROJECT_SOURCE_DIR}/third_party/tpcds-result-reproduction
 )
 
 if (${ENABLE_JIT_SUPPORT})
diff --git a/third_party/tpcds-result-reproduction b/third_party/tpcds-result-reproduction
new file mode 160000
index 0000000000..6f53a8228e
--- /dev/null
+++ b/third_party/tpcds-result-reproduction
@@ -0,0 +1 @@
+Subproject commit 6f53a8228e3b456ad7ab6b456a9a8089ca01f08c