├── DBManager.cpp ├── cmake └── build │ ├── result_hj │ ├── CMakeFiles │ ├── progress.marks │ ├── cmake.check_cache │ ├── 3.25.3 │ │ ├── CompilerIdC │ │ │ └── a.out │ │ ├── CompilerIdCXX │ │ │ └── a.out │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ └── CMakeSystem.cmake │ ├── KETI_Validator.dir │ │ ├── depend.make │ │ ├── main.cpp.o │ │ ├── CSDValidator.cpp.o │ │ ├── QEMUHandler.cpp.o │ │ ├── QueryParser.cpp.o │ │ ├── RestHandler.cpp.o │ │ ├── SSDValidator.cpp.o │ │ ├── HistogramTable.cpp.o │ │ ├── StorageValidator.cpp.o │ │ ├── compiler_depend.ts │ │ ├── flags.make │ │ ├── progress.make │ │ ├── link.txt │ │ ├── cmake_clean.cmake │ │ └── DependInfo.cmake │ ├── TargetDirectories.txt │ └── CMakeDirectoryInformation.cmake │ ├── KETI_Validator │ └── cmake_install.cmake ├── CMakeFiles ├── progress.marks ├── cmake.check_cache ├── 3.25.3 │ ├── CompilerIdC │ │ └── a.out │ ├── CompilerIdCXX │ │ └── a.out │ ├── CMakeDetermineCompilerABI_C.bin │ ├── CMakeDetermineCompilerABI_CXX.bin │ └── CMakeSystem.cmake ├── KETI_Validator.dir │ ├── depend.make │ ├── compiler_depend.make │ ├── compiler_depend.ts │ ├── progress.make │ ├── flags.make │ ├── link.txt │ ├── cmake_clean.cmake │ └── DependInfo.cmake ├── TargetDirectories.txt └── CMakeDirectoryInformation.cmake ├── image.png ├── libstdc++.so.6 ├── StorageValidator.hpp ├── QueryParser.hpp ├── snippet ├── tpch22 │ ├── tpch22-1.json │ ├── tpch22-6.json │ ├── tpch22-5.json │ ├── tpch22-2.json │ ├── tpch22-4.json │ ├── tpch22-0.json │ └── tpch22-3.json ├── tpch14 │ ├── tpch14-3.json │ ├── tpch14-2.json │ └── tpch14-1.json ├── tpch06 │ └── tpch06-1.json ├── tpch15 │ ├── tpch15-3.json │ ├── tpch15-1.json │ ├── tpch15-4.json │ └── tpch15-2.json ├── tpch19 │ ├── tpch19-10.json │ ├── tpch19-9.json │ ├── tpch19-2.json │ ├── tpch19-5.json │ └── tpch19-8.json ├── tpch13 │ ├── tpch13-3.json │ ├── tpch13-1.json │ ├── tpch13-2.json │ └── tpch13-0.json ├── tpch08 │ ├── tpch08-16.json │ ├── tpch08-15.json │ ├── tpch08-6.json │ ├── tpch08-5.json │ ├── tpch08-14.json │ ├── tpch08-8.json │ ├── tpch08-13.json │ ├── tpch08-1.json │ ├── tpch08-4.json │ ├── tpch08-7.json │ ├── tpch08-10.json │ ├── tpch08-11.json │ ├── tpch08-9.json │ ├── tpch08-12.json │ └── tpch08-0.json ├── tpch10 │ └── tpch10-3.json ├── tpch05 │ ├── tpch05-6.json │ ├── tpch05-11.json │ ├── tpch05-5.json │ ├── tpch05-9.json │ ├── tpch05-7.json │ ├── tpch05-4.json │ ├── tpch05-10.json │ ├── tpch05-3.json │ ├── tpch05-0.json │ └── tpch05-8.json ├── tpch02 │ ├── tpch02-3.json │ ├── tpch02-2.json │ ├── tpch02-0.json │ ├── tpch02-5.json │ ├── tpch02-8.json │ ├── tpch02-4.json │ ├── tpch02-1.json │ └── tpch02-7.json ├── tpch07 │ ├── tpch07-13.json │ ├── tpch07-14.json │ ├── tpch07-0.json │ ├── tpch07-10.json │ ├── tpch07-7.json │ ├── tpch07-9.json │ ├── tpch07-6.json │ ├── tpch07-8.json │ ├── tpch07-3.json │ ├── tpch07-2.json │ ├── tpch07-11.json │ ├── tpch07-12.json │ ├── tpch07-4.json │ └── tpch07-5.json ├── tpch09 │ ├── tpch09-5.json │ ├── tpch09-11.json │ ├── tpch09-10.json │ ├── tpch09-8.json │ ├── tpch09-9.json │ ├── tpch09-1.json │ ├── tpch09-3.json │ ├── tpch09-4.json │ └── tpch09-0.json ├── tpch11 │ ├── tpch11-4.json │ ├── tpch11-3.json │ ├── tpch11-2.json │ ├── tpch11-6.json │ ├── tpch11-1.json │ ├── tpch11-7.json │ ├── tpch11-0.json │ └── tpch11-5.json ├── tpch20 │ ├── tpch20-8.json │ ├── tpch20-6.json │ ├── tpch20-3.json │ ├── tpch20-7.json │ ├── tpch20-1.json │ ├── tpch20-2.json │ ├── tpch20-5.json │ └── tpch20-4.json ├── tpch21 │ ├── tpch21-5.json │ ├── tpch21-8.json │ ├── tpch21-6.json │ ├── tpch21-7.json │ ├── tpch21-3.json │ ├── tpch21-4.json │ ├── tpch21-9.json │ ├── tpch21-10.json │ └── tpch21-1.json ├── tpch16 │ ├── tpch16-3.json │ ├── tpch16-1.json │ ├── tpch16-4.json │ └── tpch16-0.json ├── tpch03 │ ├── tpch03-3.json │ ├── tpch03-5.json │ ├── tpch03-4.json │ ├── tpch03-0.json │ └── tpch03-1.json ├── tpch18 │ ├── tpch18-1.json │ ├── tpch18-4.json │ ├── tpch18-2.json │ ├── tpch18-5.json │ ├── tpch18-6.json │ ├── tpch18-7.json │ ├── tpch18-3.json │ └── tpch18-0.json ├── tpch04 │ ├── tpch04-2.json │ └── tpch04-1.json ├── tpch17 │ ├── tpch17-3.json │ ├── tpch17-2.json │ └── tpch17-1.json └── tpch12 │ ├── tpch12-2.json │ └── tpch12-0.json ├── SSDValidator.hpp ├── CMakeLists.txt ├── stdafx.hpp ├── RestHandler.hpp ├── HistogramTable.hpp ├── internal_queue.hpp ├── CSDValidator.hpp ├── DBManager.hpp └── cmake_install.cmake /DBManager.cpp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmake/build/result_hj: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/image.png -------------------------------------------------------------------------------- /libstdc++.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/libstdc++.so.6 -------------------------------------------------------------------------------- /cmake/build/KETI_Validator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/KETI_Validator -------------------------------------------------------------------------------- /CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /CMakeFiles/3.25.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/CMakeFiles/3.25.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /CMakeFiles/3.25.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/CMakeFiles/3.25.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /CMakeFiles/KETI_Validator.dir/depend.make: -------------------------------------------------------------------------------- 1 | # Empty dependencies file for KETI_Validator. 2 | # This may be replaced when dependencies are built. 3 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/3.25.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/3.25.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/3.25.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/3.25.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/depend.make: -------------------------------------------------------------------------------- 1 | # Empty dependencies file for KETI_Validator. 2 | # This may be replaced when dependencies are built. 3 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/main.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/KETI_Validator.dir/main.cpp.o -------------------------------------------------------------------------------- /CMakeFiles/KETI_Validator.dir/compiler_depend.make: -------------------------------------------------------------------------------- 1 | # Empty compiler generated dependencies file for KETI_Validator. 2 | # This may be replaced when dependencies are built. 3 | -------------------------------------------------------------------------------- /CMakeFiles/KETI_Validator.dir/compiler_depend.ts: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Timestamp file for compiler generated dependencies management for KETI_Validator. 3 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/HEAD/cmake/build/CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/compiler_depend.ts: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Timestamp file for compiler generated dependencies management for KETI_Validator. 3 | -------------------------------------------------------------------------------- /CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /root/workspace/Simulator-Instance/CMakeFiles/KETI_Validator.dir 2 | /root/workspace/Simulator-Instance/CMakeFiles/edit_cache.dir 3 | /root/workspace/Simulator-Instance/CMakeFiles/rebuild_cache.dir 4 | -------------------------------------------------------------------------------- /CMakeFiles/KETI_Validator.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | 10 | -------------------------------------------------------------------------------- /CMakeFiles/KETI_Validator.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.25 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_DEFINES = 6 | 7 | CXX_INCLUDES = 8 | 9 | CXX_FLAGS = -std=gnu++17 10 | 11 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.25 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_DEFINES = 6 | 7 | CXX_INCLUDES = 8 | 9 | CXX_FLAGS = -std=gnu++17 10 | 11 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | CMAKE_PROGRESS_9 = 9 10 | 11 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /root/workspace/keti/Validator-Instance/cmake/build/CMakeFiles/KETI_Validator.dir 2 | /root/workspace/keti/Validator-Instance/cmake/build/CMakeFiles/edit_cache.dir 3 | /root/workspace/keti/Validator-Instance/cmake/build/CMakeFiles/rebuild_cache.dir 4 | -------------------------------------------------------------------------------- /CMakeFiles/KETI_Validator.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o CMakeFiles/KETI_Validator.dir/main.cpp.o -o KETI_Validator -lmysqlcppconn -lboost_system -lcrypto -lssl -lcpprest -lpthread 2 | -------------------------------------------------------------------------------- /CMakeFiles/3.25.3/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-5.4.0-150-generic") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "5.4.0-150-generic") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-5.4.0-150-generic") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "5.4.0-150-generic") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /StorageValidator.hpp: -------------------------------------------------------------------------------- 1 | #include "TypeDef.hpp" 2 | #include 3 | #include 4 | #include "DBManager.hpp" 5 | #include "keti_log.h" 6 | #include 7 | #include 8 | std::string StorageValidatorMain(validationLog csdLog, std::vector snippetInfo, int queryNum, optionInfo option, int optionID, std::string userID, int simulationNnm, std::string returnJson); 9 | std::string getTimestampp(); 10 | std::string convertTPCH2(std::string tpch); 11 | float applyWeight2(float value); -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/3.25.3/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-5.4.0-150-generic") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "5.4.0-150-generic") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-5.4.0-150-generic") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "5.4.0-150-generic") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o CMakeFiles/KETI_Validator.dir/main.cpp.o -o KETI_Validator -lmysqlcppconn -lboost_system -lcrypto -lssl -lcpprest -lpthread 2 | -------------------------------------------------------------------------------- /QueryParser.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "DBManager.hpp" 3 | #include 4 | #include "SSDValidator.hpp" 5 | #include "CSDValidator.hpp" 6 | 7 | 8 | void InitQueryParser(); 9 | querySnippetInfo parseSnippet(std::string filename); 10 | std::string QueryParserMain(std::string queryStatement, int optionID, std::string userID); 11 | optionInfo getOptionInfo(int optionID, std::string userID); 12 | std::vector getSnippetInfo(std::string queryStatement); 13 | void InsertSnippetDB(std::vector snippetVector); -------------------------------------------------------------------------------- /snippet/tpch22/tpch22-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 1, 3 | "snippet": 4 | { 5 | "queryID":21, 6 | "workID":1, 7 | "tableName": ["ProcessTable21-0"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "tableOffset":[], 11 | "tableOfflen":[], 12 | "tableDatatype":[], 13 | "tableAlias": "ProcessTable21-1", 14 | "columnAlias": [ 15 | "ProcessTable21-1.c1" 16 | ], 17 | "columnProjection": [ 18 | { 19 | "selectType": 2, 20 | "value": ["c_acctbal"], 21 | "valueType": [10] 22 | } 23 | ] 24 | } 25 | } -------------------------------------------------------------------------------- /snippet/tpch14/tpch14-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 1, 3 | "snippet": 4 | { 5 | "queryID":13, 6 | "workID":3, 7 | "tableName": ["ProcessTable13-2"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "tableOffset":[], 11 | "tableOfflen":[], 12 | "tableDatatype":[], 13 | "tableAlias": "ResultTable13", 14 | "columnAlias": [ 15 | "promo_revenue" 16 | ], 17 | "columnProjection": [ 18 | { 19 | "selectType": 0, 20 | "value": ["100.00","ProcessTable13-2-c1","*","ProcessTable13-2-c2","/"], 21 | "valueType": [5,10,11,10,11] 22 | } 23 | ] 24 | } 25 | 26 | } -------------------------------------------------------------------------------- /snippet/tpch06/tpch06-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 1, 3 | "snippet": { 4 | "queryID":5, 5 | "workID": 1, 6 | "tableName": ["ProcessTable5-0"], 7 | "tableCol":[], 8 | "tableFilter": [], 9 | "tableOffset":[], 10 | "tableOfflen":[], 11 | "tableDatatype":[], 12 | "tableAlias": "ResultTable5", 13 | "columnAlias": [ 14 | "revenue" 15 | ], 16 | "columnProjection": [ 17 | { 18 | "selectType": 1, 19 | "value": [ 20 | "revenue" 21 | ], 22 | "valueType": [ 23 | 10 24 | ] 25 | } 26 | ] 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /SSDValidator.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "TypeDef.hpp" 4 | #include 5 | #include 6 | #include 7 | #include "HistogramTable.hpp" 8 | #include "DBManager.hpp" 9 | 10 | std::string SSDValidatorTemp(std::string queryStatement,std::vector snippetInfo,int queryNum, optionInfo option, int optionID, std::string userID, int simulationNnm, std::string returnJson); 11 | std::string getTimestamp(); 12 | storageValidation executeSSDValidate(std::vector snippetInfo, int queryNum); 13 | std::string convertTPCH1(std::string tpch); 14 | 15 | float applyWeight1(float value); -------------------------------------------------------------------------------- /snippet/tpch15/tpch15-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 1, 3 | "snippet": { 4 | "queryID": 14, 5 | "workID": 3, 6 | "tableName": [ 7 | "revenue0" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [], 11 | "tableOffset": [], 12 | "tableOfflen": [], 13 | "tableDatatype": [], 14 | "tableAlias": "ProcessTable14-3", 15 | "columnAlias": [ 16 | "ProcessTable14-3-c1" 17 | ], 18 | "columnProjection": [ 19 | { 20 | "selectType": 8, 21 | "value": [ 22 | "total_revenue" 23 | ], 24 | "valueType": [ 25 | 10 26 | ] 27 | } 28 | ] 29 | } 30 | } -------------------------------------------------------------------------------- /snippet/tpch19/tpch19-10.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 7, 3 | "snippet": { 4 | "queryID": 18, 5 | "workID": 10, 6 | "tableName": [ 7 | "ProcessTable19-8", "ProcessTable19-9" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [ 11 | { 12 | "Operator": 15 13 | } 14 | ], 15 | "tableOffset": [], 16 | "tableOfflen": [], 17 | "tableDatatype": [], 18 | "tableAlias": "ResultTable18", 19 | "columnAlias": [ 20 | "revenue" 21 | ], 22 | "columnProjection": [ 23 | { 24 | "selectType": 1, 25 | "value": ["revenue"], 26 | "valueType": [10] 27 | } 28 | ] 29 | } 30 | } -------------------------------------------------------------------------------- /snippet/tpch19/tpch19-9.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 7, 3 | "snippet": { 4 | "queryID": 18, 5 | "workID": 9, 6 | "tableName": [ 7 | "ProcessTable19-2", "ProcessTable19-5" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [ 11 | { 12 | "Operator": 15 13 | } 14 | ], 15 | "tableOffset": [], 16 | "tableOfflen": [], 17 | "tableDatatype": [], 18 | "tableAlias": "ProcessTable19-9", 19 | "columnAlias": [ 20 | "revenue" 21 | ], 22 | "columnProjection": [ 23 | { 24 | "selectType": 0, 25 | "value": ["revenue"], 26 | "valueType": [10] 27 | } 28 | ] 29 | } 30 | } -------------------------------------------------------------------------------- /CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.25 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/root/workspace/Simulator-Instance") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/root/workspace/Simulator-Instance") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.25 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/root/workspace/keti/Validator-Instance") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/root/workspace/keti/Validator-Instance/cmake/build") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.12) 2 | 3 | include(./common.cmake) 4 | 5 | add_executable(KETI_Validator "QueryParser.cpp" "RestHandler.cpp" "SSDValidator.cpp" "CSDValidator.cpp" "HistogramTable.cpp" "StorageValidator.cpp" "QEMUHandler.cpp" "main.cpp") 6 | 7 | set(Casablanca_LIBRARIES "-lboost_system -lcrypto -lssl -lcpprest -pthread") 8 | set(LINKING_LIBRARIES ${Casablanca_LIBRARIES}) 9 | set(CMAKE_C_COMPILER ${GCC}) 10 | set(CMAKE_CXX_COMPILER ${GPP}) 11 | target_compile_features(KETI_Validator PRIVATE cxx_std_17) 12 | 13 | 14 | if (UNIX) 15 | # Linking POSIX threads 16 | find_package(Threads REQUIRED) 17 | set(LINKING_LIBRARIES ${LINKING_LIBRARIES} Threads::Threads) 18 | endif (UNIX) 19 | 20 | target_link_libraries(KETI_Validator 21 | mysqlcppconn 22 | ${LINKING_LIBRARIES}) -------------------------------------------------------------------------------- /stdafx.hpp: -------------------------------------------------------------------------------- 1 | #ifndef STDAFX_H_INCLUDED 2 | #define STDAFX_H_INCLUDED 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | #ifdef _WIN32 15 | #define NOMINMAX 16 | #include 17 | #else 18 | # include 19 | #endif 20 | 21 | #include "cpprest/json.h" 22 | #include "cpprest/http_listener.h" 23 | #include "cpprest/uri.h" 24 | #include "cpprest/asyncrt_utils.h" 25 | #include "cpprest/json.h" 26 | #include "cpprest/filestream.h" 27 | #include "cpprest/containerstream.h" 28 | #include "cpprest/producerconsumerstream.h" 29 | 30 | #pragma warning ( push ) 31 | #pragma warning ( disable : 4457 ) 32 | #pragma warning ( pop ) 33 | #include 34 | #include 35 | #endif // STDAFX_H_INCLUDED 36 | -------------------------------------------------------------------------------- /RestHandler.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include "stdafx.hpp" 8 | #include "QueryParser.hpp" 9 | 10 | 11 | class Rest_Handler_Instance{ 12 | public: 13 | Rest_Handler_Instance(utility::string_t url); 14 | pplx::task open(){return m_listener.open();} 15 | pplx::task close(){return m_listener.close();} 16 | 17 | private: 18 | void handle_get(web::http::http_request message); 19 | void handle_put(web::http::http_request message); 20 | void handle_post(web::http::http_request message); 21 | void handle_delete(web::http::http_request message); 22 | void handle_error(pplx::task& t); 23 | web::http::experimental::listener::http_listener m_listener; 24 | }; -------------------------------------------------------------------------------- /HistogramTable.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include "TypeDef.hpp" 8 | #include // std::this_thread, std::this_thread::sleep_for 9 | #include 10 | struct histogram{ 11 | std::string columnName; 12 | std::string dataType; 13 | float minValue; 14 | float maxValue; 15 | float bucketNum; 16 | long count; 17 | bool identifier = false; 18 | std::map dataMap; 19 | }; 20 | 21 | void InitHistogram(); 22 | std::map makeDataMap(std::string input); 23 | std::map makeDataMapFloat(std::string input); 24 | std::map makeDataMapDate(std::string input); 25 | float getFilteredRow(querySnippetInfo snippet); 26 | histogram Stringtohisto(std::string str); 27 | int dateToInt(std::string date); 28 | -------------------------------------------------------------------------------- /snippet/tpch13/tpch13-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 1, 3 | "snippet": { 4 | "queryID": 12, 5 | "workID": 3, 6 | "tableName": [ 7 | "c_orders" 8 | ], 9 | "tableCol": [ ], 10 | "tableFilter": [ ], 11 | "tableOffset": [ ], 12 | "tableOfflen": [ ], 13 | "tableDatatype": [ ], 14 | "tableAlias": "ResultTable12", 15 | "columnAlias": [ 16 | "c_count", 17 | "custdist" 18 | ], 19 | "columnProjection": [ 20 | { 21 | "selectType": 0, 22 | "value": ["c_count"], 23 | "valueType": [10] 24 | }, 25 | { 26 | "selectType": 4, 27 | "value": [ ], 28 | "valueType": [ ] 29 | } 30 | ], 31 | "groupBy": [ 32 | "c_count" 33 | ], 34 | "orderBy": { 35 | "ascending" : [1,1], 36 | "columnName" : ["custdist","c_count"] 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /internal_queue.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | using namespace std; 6 | 7 | template 8 | class kQueue{ 9 | condition_variable work_available; 10 | mutex work_mutex; 11 | queue work; 12 | 13 | public: 14 | void push_work(T item){ 15 | unique_lock lock(work_mutex); 16 | 17 | bool was_empty = work.empty(); 18 | work.push(item); 19 | 20 | lock.unlock(); 21 | 22 | if (was_empty){ 23 | work_available.notify_one(); 24 | } 25 | } 26 | 27 | T wait_and_pop(){ 28 | unique_lock lock(work_mutex); 29 | while (work.empty()){ 30 | work_available.wait(lock); 31 | } 32 | 33 | T tmp = work.front(); 34 | 35 | work.pop(); 36 | return tmp; 37 | } 38 | 39 | bool is_empty(){ 40 | return work.empty(); 41 | } 42 | 43 | void qclear(){ 44 | work = queue(); 45 | } 46 | 47 | int get_size(){ 48 | return work.size(); 49 | } 50 | }; -------------------------------------------------------------------------------- /snippet/tpch15/tpch15-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 1, 3 | "snippet": { 4 | "queryID": 14, 5 | "workID": 1, 6 | "tableName": [ 7 | "ProcessTable14-0" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [], 11 | "tableOffset": [], 12 | "tableOfflen": [], 13 | "tableDatatype": [], 14 | "tableAlias": "revenue0", 15 | "columnAlias": [ 16 | "supplier_no", 17 | "total_revenue" 18 | ], 19 | "columnProjection": [ 20 | { 21 | "selectType": 0, 22 | "value": [ 23 | "l_suppkey" 24 | ], 25 | "valueType": [ 26 | 10 27 | ] 28 | }, 29 | { 30 | "selectType": 1, 31 | "value": [ 32 | "ProcessTable14-0-c1" 33 | ], 34 | "valueType": [ 35 | 10 36 | ] 37 | } 38 | ], 39 | "groupBy": [ 40 | "l_suppkey" 41 | ] 42 | } 43 | } -------------------------------------------------------------------------------- /snippet/tpch19/tpch19-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 18, 5 | "workID": 2, 6 | "tableName": [ 7 | "ProcessTable19-1", "ProcessTable19-0" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [ 11 | { 12 | "LV": { 13 | "type": [10], 14 | "value": [ 15 | "p_partkey" 16 | ] 17 | }, 18 | "Operator": 5, 19 | "RV": { 20 | "type": [10], 21 | "value": [ 22 | "l_partkey" 23 | ] 24 | } 25 | } 26 | ], 27 | "tableOffset": [], 28 | "tableOfflen": [], 29 | "tableDatatype": [], 30 | "tableAlias": "ProcessTable19-2", 31 | "columnAlias": [ 32 | "revenue" 33 | ], 34 | "columnProjection": [ 35 | { 36 | "selectType": 0, 37 | "value": ["revenue"], 38 | "valueType": [10] 39 | } 40 | ] 41 | } 42 | } -------------------------------------------------------------------------------- /snippet/tpch19/tpch19-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 18, 5 | "workID": 5, 6 | "tableName": [ 7 | "ProcessTable19-4", "ProcessTable19-3" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [ 11 | { 12 | "LV": { 13 | "type": [10], 14 | "value": [ 15 | "p_partkey" 16 | ] 17 | }, 18 | "Operator": 5, 19 | "RV": { 20 | "type": [10], 21 | "value": [ 22 | "l_partkey" 23 | ] 24 | } 25 | } 26 | ], 27 | "tableOffset": [], 28 | "tableOfflen": [], 29 | "tableDatatype": [], 30 | "tableAlias": "ProcessTable19-5", 31 | "columnAlias": [ 32 | "revenue" 33 | ], 34 | "columnProjection": [ 35 | { 36 | "selectType": 0, 37 | "value": ["revenue"], 38 | "valueType": [10] 39 | } 40 | ] 41 | } 42 | } -------------------------------------------------------------------------------- /snippet/tpch19/tpch19-8.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 18, 5 | "workID": 8, 6 | "tableName": [ 7 | "ProcessTable19-7", "ProcessTable19-6" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [ 11 | { 12 | "LV": { 13 | "type": [10], 14 | "value": [ 15 | "p_partkey" 16 | ] 17 | }, 18 | "Operator": 5, 19 | "RV": { 20 | "type": [10], 21 | "value": [ 22 | "l_partkey" 23 | ] 24 | } 25 | } 26 | ], 27 | "tableOffset": [], 28 | "tableOfflen": [], 29 | "tableDatatype": [], 30 | "tableAlias": "ProcessTable19-8", 31 | "columnAlias": [ 32 | "revenue" 33 | ], 34 | "columnProjection": [ 35 | { 36 | "selectType": 0, 37 | "value": ["revenue"], 38 | "valueType": [10] 39 | } 40 | ] 41 | } 42 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-16.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 1, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":16, 7 | "tableName": ["ProcessTable7-15"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "tableOffset":[], 11 | "tableOfflen":[], 12 | "tableDatatype":[], 13 | "tableAlias": "ResultTable7", 14 | "columnAlias": [ 15 | "o_year", 16 | "mkt_share" 17 | ], 18 | "columnProjection": [ 19 | { 20 | "selectType": 0, 21 | "value": [ 22 | "o_year" 23 | ], 24 | "valueType": [ 25 | 10 26 | ] 27 | }, 28 | { 29 | "selectType": 0, 30 | "value": [ 31 | "ProcessTable7-15-c1", 32 | "ProcessTable7-15-c2", 33 | "/" 34 | ], 35 | "valueType": [ 36 | 10, 37 | 10, 38 | 11 39 | ] 40 | } 41 | ], 42 | "orderBy": 43 | { 44 | "ascending" : [0], 45 | "columnName" : ["o_year"] 46 | } 47 | } 48 | } -------------------------------------------------------------------------------- /snippet/tpch10/tpch10-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":9, 6 | "workID":3, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[], 15 | "tableOffset":[ 16 | 0, 17 | 4, 18 | 29, 19 | 33 20 | ], 21 | "tableOfflen":[ 22 | 4, 23 | 25, 24 | 4, 25 | 152 26 | ], 27 | "tableDatatype":[ 28 | 3, 29 | 254, 30 | 3, 31 | 15 32 | ], 33 | "tableAlias": "ProcessTable9-3", 34 | "columnAlias": [ 35 | "n_name", 36 | "n_nationkey" 37 | ], 38 | "columnProjection": [ 39 | { 40 | "selectType": 0, 41 | "value": ["n_name"], 42 | "valueType": [10] 43 | }, 44 | { 45 | "selectType": 0, 46 | "value": ["n_nationkey"], 47 | "valueType": [10] 48 | } 49 | ], 50 | "pkNum" : 0 51 | } 52 | 53 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-15.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 1, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":15, 7 | "tableName": ["all_nations"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "tableOffset":[], 11 | "tableOfflen":[], 12 | "tableDatatype":[], 13 | "tableAlias": "ProcessTable7-15", 14 | "columnAlias": [ 15 | "o_year", 16 | "ProcessTable7-15-c1", 17 | "ProcessTable7-15-c2" 18 | ], 19 | "columnProjection": [ 20 | { 21 | "selectType": 0, 22 | "value": [ 23 | "o_year" 24 | ], 25 | "valueType": [ 26 | 10 27 | ] 28 | }, 29 | { 30 | "selectType": 1, 31 | "value": ["CASE", "WHEN", "nation", "INDIA", "LIKE", "THEN", "volume", "ELSE", "0", "END"], 32 | "valueType": [11, 11, 10, 9, 11, 11, 10, 11, 4, 11] 33 | }, 34 | { 35 | "selectType": 1, 36 | "value": ["volume"], 37 | "valueType": [10] 38 | } 39 | ], 40 | "groupBy": ["o_year"] 41 | } 42 | } -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":6, 7 | "tableName": ["ProcessTable4-0", "ProcessTable4-1"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | 12 | "LV": { 13 | "type": [10], 14 | "value": ["c_custkey"] 15 | }, 16 | "Operator" : 5, 17 | "RV" : { 18 | "type": [10], 19 | "value": ["o_custkey"] 20 | } 21 | } 22 | ], 23 | "tableOffset":[], 24 | "tableOfflen":[], 25 | "tableDatatype":[], 26 | "tableAlias": "ProcessTable4-6", 27 | "columnAlias": [ 28 | "c_nationkey", 29 | "o_orderkey" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": ["c_nationkey"], 35 | "valueType": [10] 36 | }, 37 | { 38 | "selectType": 0, 39 | "value": ["o_orderkey"], 40 | "valueType": [10] 41 | } 42 | ] 43 | } 44 | 45 | } -------------------------------------------------------------------------------- /snippet/tpch22/tpch22-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 1, 3 | "snippet": 4 | { 5 | "queryID":21, 6 | "workID":6, 7 | "tableName": ["custsale"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "tableOffset":[], 11 | "tableOfflen":[], 12 | "tableDatatype":[], 13 | "tableAlias": "ResultTable21", 14 | "columnAlias": [ 15 | "cntrycode", 16 | "numcust", 17 | "totacctbal" 18 | ], 19 | "columnProjection": [ 20 | { 21 | "selectType": 0, 22 | "value": ["cntrycode"], 23 | "valueType": [10] 24 | }, 25 | { 26 | "selectType": 4, 27 | "value": [], 28 | "valueType": [] 29 | }, 30 | { 31 | "selectType": 1, 32 | "value": ["c_acctbal"], 33 | "valueType": [10] 34 | } 35 | ], 36 | "groupBy": ["cntrycode"], 37 | "orderBy": { 38 | "ascending" : [0], 39 | "columnName" : ["cntrycode"] 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-11.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 1, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":11, 7 | "tableName": ["ProcessTable4-10"], 8 | "tableCol":[ 9 | "n_name", 10 | "revenue" 11 | ], 12 | "tableFilter":[], 13 | "tableOffset":[], 14 | "tableOfflen":[], 15 | "tableDatatype":[], 16 | "tableAlias": "ResultTable4", 17 | "columnAlias": [ 18 | "n_name", 19 | "revenue" 20 | ], 21 | "columnProjection": [ 22 | { 23 | "selectType": 0, 24 | "value": ["n_name"], 25 | "valueType": [10] 26 | }, 27 | { 28 | "selectType": 1, 29 | "value": ["revenue"], 30 | "valueType": [10] 31 | } 32 | ], 33 | "groupBy": ["n_name"], 34 | "orderBy": { 35 | "ascending" : [1], 36 | "columnName" : ["revenue"] 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /CMakeFiles/KETI_Validator.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o" 3 | "CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o.d" 4 | "CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o" 5 | "CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o.d" 6 | "CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o" 7 | "CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o.d" 8 | "CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o" 9 | "CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o.d" 10 | "CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o" 11 | "CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o.d" 12 | "CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o" 13 | "CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o.d" 14 | "CMakeFiles/KETI_Validator.dir/main.cpp.o" 15 | "CMakeFiles/KETI_Validator.dir/main.cpp.o.d" 16 | "KETI_Validator" 17 | "KETI_Validator.pdb" 18 | ) 19 | 20 | # Per-language clean rules from dependency scanning. 21 | foreach(lang CXX) 22 | include(CMakeFiles/KETI_Validator.dir/cmake_clean_${lang}.cmake OPTIONAL) 23 | endforeach() 24 | -------------------------------------------------------------------------------- /snippet/tpch02/tpch02-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":1, 6 | "workID":3, 7 | "tableName": ["region"], 8 | "tableCol":[ 9 | "r_regionkey", 10 | "r_name", 11 | "r_comment" 12 | ], 13 | "tableFilter":[ 14 | { 15 | "LV": { 16 | "type": [10], 17 | "value": ["r_name"] 18 | }, 19 | "Operator" : 5, 20 | "RV" : { 21 | "type": [9], 22 | "value": ["ASIA"] 23 | } 24 | } 25 | ], 26 | "tableOffset":[ 27 | 0, 28 | 4, 29 | 29 30 | ], 31 | "tableOfflen":[ 32 | 4, 33 | 25, 34 | 152 35 | ], 36 | "tableDatatype":[ 37 | 3, 38 | 254, 39 | 15 40 | ], 41 | "tableAlias": "ProcessTable1-3", 42 | "columnAlias": [ 43 | "r_regionkey" 44 | ], 45 | "columnProjection": [ 46 | { 47 | "selectType": 0, 48 | "value": ["r_regionkey"], 49 | "valueType": [10] 50 | } 51 | ], 52 | "pkNum" : 0 53 | } 54 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-13.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 7, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":13, 7 | "tableName": ["ProcessTable6-11","ProcessTable6-12"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "Operator" : 15 12 | } 13 | ], 14 | "tableOffset":[], 15 | "tableOfflen":[], 16 | "tableDatatype":[], 17 | "tableAlias": "shipping", 18 | "columnAlias": [ 19 | "supp_nation", 20 | "cust_nation", 21 | "l_year", 22 | "volume" 23 | ], 24 | "columnProjection": [ 25 | { 26 | "selectType": 0, 27 | "value": ["n1.n_name"], 28 | "valueType": [10] 29 | }, 30 | { 31 | "selectType": 0, 32 | "value": ["n2.n_name"], 33 | "valueType": [10] 34 | }, 35 | { 36 | "selectType": 0, 37 | "value": ["l_year"], 38 | "valueType": [10] 39 | }, 40 | { 41 | "selectType": 0, 42 | "value": ["volume"], 43 | "valueType": [10] 44 | } 45 | ] 46 | } 47 | 48 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":6, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[], 15 | "tableOffset":[ 16 | 0, 17 | 4, 18 | 29, 19 | 33 20 | ], 21 | "tableOfflen":[ 22 | 4, 23 | 25, 24 | 4, 25 | 152 26 | ], 27 | "tableDatatype":[ 28 | 3, 29 | 254, 30 | 3, 31 | 15 32 | ], 33 | "tableAlias": "n2", 34 | "columnAlias": [ 35 | "nation", 36 | "n2.n_nationkey" 37 | ], 38 | "columnProjection": [ 39 | { 40 | "selectType": 0, 41 | "value": [ 42 | "n_name" 43 | ], 44 | "valueType": [ 45 | 10 46 | ] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": [ 51 | "n_nationkey" 52 | ], 53 | "valueType": [ 54 | 10 55 | ] 56 | } 57 | ], 58 | "pkNum" : 0 59 | } 60 | 61 | } -------------------------------------------------------------------------------- /snippet/tpch09/tpch09-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":8, 6 | "workID":5, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[], 15 | "tableOffset":[ 16 | 0, 17 | 4, 18 | 29, 19 | 33 20 | ], 21 | "tableOfflen":[ 22 | 4, 23 | 25, 24 | 4, 25 | 152 26 | ], 27 | "tableDatatype":[ 28 | 3, 29 | 254, 30 | 3, 31 | 15 32 | ], 33 | "tableAlias": "ProcessTable8-5", 34 | "columnAlias": [ 35 | "nation", 36 | "n_nationkey" 37 | ], 38 | "columnProjection": [ 39 | { 40 | "selectType": 0, 41 | "value": [ 42 | "n_name" 43 | ], 44 | "valueType": [ 45 | 10 46 | ] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": [ 51 | "n_nationkey" 52 | ], 53 | "valueType": [ 54 | 10 55 | ] 56 | } 57 | ], 58 | "pkNum" : 0 59 | } 60 | 61 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":5, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[], 15 | "tableOffset":[ 16 | 0, 17 | 4, 18 | 29, 19 | 33 20 | ], 21 | "tableOfflen":[ 22 | 4, 23 | 25, 24 | 4, 25 | 152 26 | ], 27 | "tableDatatype":[ 28 | 3, 29 | 254, 30 | 3, 31 | 15 32 | ], 33 | "tableAlias": "n1", 34 | "columnAlias": [ 35 | "n1.n_regionkey", 36 | "n1.n_nationkey" 37 | ], 38 | "columnProjection": [ 39 | { 40 | "selectType": 0, 41 | "value": [ 42 | "n_regionkey" 43 | ], 44 | "valueType": [ 45 | 10 46 | ] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": [ 51 | "n_nationkey" 52 | ], 53 | "valueType": [ 54 | 10 55 | ] 56 | } 57 | ], 58 | "pkNum" : 0 59 | } 60 | 61 | } -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":5, 7 | "tableName": ["region"], 8 | "tableCol":[ 9 | "r_regionkey", 10 | "r_name", 11 | "r_comment" 12 | ], 13 | "tableFilter":[ 14 | { 15 | "LV": { 16 | "type": [10], 17 | "value": ["r_name"] 18 | }, 19 | "Operator" : 5, 20 | "RV" : { 21 | "type": [9], 22 | "value": ["MIDDLE EAST"] 23 | } 24 | } 25 | ], 26 | "tableOffset":[ 27 | 0, 28 | 4, 29 | 29 30 | ], 31 | "tableOfflen":[ 32 | 4, 33 | 25, 34 | 152 35 | ], 36 | "tableDatatype":[ 37 | 3, 38 | 254, 39 | 15 40 | ], 41 | "tableAlias": "ProcessTable4-5", 42 | "columnAlias": [ 43 | "r_regionkey" 44 | ], 45 | "columnProjection": [ 46 | { 47 | "selectType": 0, 48 | "value": ["r_regionkey"], 49 | "valueType": [10] 50 | } 51 | ], 52 | "pkNum":0 53 | } 54 | 55 | } -------------------------------------------------------------------------------- /snippet/tpch14/tpch14-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":13, 6 | "workID":2, 7 | "tableName": ["ProcessTable13-0", "ProcessTable13-1"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["l_partkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["p_partkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable13-2", 26 | "columnAlias": [ 27 | "ProcessTable13-2-c1", 28 | "ProcessTable13-2-c2" 29 | ], 30 | "columnProjection": [ 31 | { 32 | "selectType": 1, 33 | "value": ["CASE", "WHEN", "p_type", "PROMO%", "LIKE", "THEN", "ProcessTable13-0-c1", "ELSE", "0", "END"], 34 | "valueType": [11, 11, 10, 9, 11, 11, 10, 11, 5, 11] 35 | }, 36 | { 37 | "selectType": 1, 38 | "value": ["ProcessTable13-0-c1"], 39 | "valueType": [10] 40 | } 41 | ] 42 | } 43 | } -------------------------------------------------------------------------------- /CSDValidator.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include "TypeDef.hpp" 17 | #include "HistogramTable.hpp" 18 | #include "DBManager.hpp" 19 | #include "StorageValidator.hpp" 20 | 21 | #include "rapidjson/document.h" 22 | #include "rapidjson/writer.h" 23 | #include "rapidjson/stringbuffer.h" 24 | #include "rapidjson/prettywriter.h" 25 | 26 | float applyWeight(float value); 27 | storageValidation executeCSDValidate(std::vector snippetInfo, int queryNum); 28 | std::string CSDValidatorTemp(std::vector snippetInfo,std::string queryStatement, int queryNum,int optionID, optionInfo option, std::string userID, int simulationNnm, std::string returnJson); 29 | double executeQEMU(std::vector snippetInfo, int queryNum, int tpchNum); 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /snippet/tpch09/tpch09-11.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 1, 3 | "snippet": 4 | { 5 | "queryID":8, 6 | "workID":11, 7 | "tableName": ["profit"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "tableOffset":[], 11 | "tableOfflen":[], 12 | "tableDatatype":[], 13 | "tableAlias": "ResultTable9", 14 | "columnAlias": [ 15 | "nation", 16 | "o_year", 17 | "sum_profit" 18 | ], 19 | "columnProjection": [ 20 | { 21 | "selectType": 0, 22 | "value": [ 23 | "nation" 24 | ], 25 | "valueType": [ 26 | 10 27 | ] 28 | }, 29 | { 30 | "selectType": 0, 31 | "value": [ 32 | "o_year" 33 | ], 34 | "valueType": [ 35 | 10 36 | ] 37 | }, 38 | { 39 | "selectType": 1, 40 | "value": [ 41 | "amount" 42 | ], 43 | "valueType": [ 44 | 10 45 | ] 46 | } 47 | ], 48 | "groupBy": ["nation","o_year"], 49 | "orderBy": 50 | { 51 | "ascending" : [0,1], 52 | "columnName" : ["nation","o_year"] 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /snippet/tpch11/tpch11-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 10, 5 | "workID": 4, 6 | "tableName": [ 7 | "ProcessTable10-2", 8 | "ProcessTable10-3" 9 | ], 10 | "tableCol": [ ], 11 | "tableFilter": [ 12 | { 13 | "LV": { 14 | "type": [ 15 | 10 16 | ], 17 | "value": [ 18 | "n_nationkey" 19 | ] 20 | }, 21 | "Operator": 5, 22 | "RV": { 23 | "type": [ 24 | 10 25 | ], 26 | "value": [ 27 | "s_nationkey" 28 | ] 29 | } 30 | } 31 | ], 32 | "tableOffset": [ ], 33 | "tableOfflen": [ ], 34 | "tableDatatype": [ ], 35 | "tableAlias": "ProcessTable10-4", 36 | "columnAlias": [ 37 | "ProcessTable10-4-c1" 38 | ], 39 | "columnProjection": [ 40 | { 41 | "selectType":1, 42 | "value": [ 43 | "ProcessTable10-3-c1","0.0001000000","*" 44 | ], 45 | "valueType": [ 46 | 10,5,11 47 | ] 48 | } 49 | ] 50 | } 51 | } -------------------------------------------------------------------------------- /snippet/tpch20/tpch20-8.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":19, 6 | "workID":8, 7 | "tableName": ["ProcessTable19-7","ProcessTable19-6"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_nationkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["n_nationkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "blockList":[], 26 | "tableAlias": "ResultTable19", 27 | "columnAlias": [ 28 | "s_name", 29 | "s_address" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": ["s_name"], 35 | "valueType": [10] 36 | }, 37 | { 38 | "selectType": 0, 39 | "value": ["s_address"], 40 | "valueType": [10] 41 | } 42 | ], 43 | "orderBy": 44 | { 45 | "ascending" : [0], 46 | "columnName" : ["s_name"] 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /snippet/tpch21/tpch21-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":20, 6 | "workID":5, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[ 15 | { 16 | "LV": { 17 | "type": [10], 18 | "value": ["n_name"] 19 | }, 20 | "Operator" : 5, 21 | "RV" : { 22 | "type": [9], 23 | "value": ["EGYPT"] 24 | } 25 | } 26 | ], 27 | "tableOffset":[ 28 | 0, 29 | 4, 30 | 29, 31 | 33 32 | ], 33 | "tableOfflen":[ 34 | 4, 35 | 25, 36 | 4, 37 | 152 38 | ], 39 | "tableDatatype":[ 40 | 3, 41 | 254, 42 | 3, 43 | 15 44 | ], 45 | "tableAlias": "ProcessTable20-5", 46 | "columnAlias": [ 47 | "n_nationkey" 48 | ], 49 | "columnProjection": [ 50 | { 51 | "selectType": 0, 52 | "value": ["n_nationkey"], 53 | "valueType": [10] 54 | } 55 | ] 56 | } 57 | 58 | } -------------------------------------------------------------------------------- /snippet/tpch16/tpch16-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 8, 3 | "snippet": 4 | { 5 | "queryID":15, 6 | "workID":3, 7 | "tableName": ["ProcessTable15-1", "ProcessTable15-0"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "Operator": 12 12 | }, 13 | { 14 | "LV": { 15 | "type": [10], 16 | "value": ["ps_suppkey"] 17 | }, 18 | "Operator" : 9, 19 | "RV" : { 20 | "type": [10], 21 | "value": ["s_suppkey"] 22 | } 23 | } 24 | ], 25 | "tableOffset":[], 26 | "tableOfflen":[], 27 | "tableDatatype":[], 28 | "tableAlias": "ProcessTable15-3", 29 | "columnAlias": [ 30 | "ps_suppkey", 31 | "ps_partkey" 32 | ], 33 | "columnProjection": [ 34 | { 35 | "selectType": 0, 36 | "value": [ 37 | "ps_suppkey" 38 | ], 39 | "valueType": [ 40 | 10 41 | ] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": [ 46 | "ps_partkey" 47 | ], 48 | "valueType": [ 49 | 10 50 | ] 51 | } 52 | ] 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /snippet/tpch21/tpch21-8.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":20, 6 | "workID":8, 7 | "tableName": ["ProcessTable20-7","ProcessTable20-5"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_nationkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["n_nationkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable20-8", 26 | "columnAlias": [ 27 | "s_name", 28 | "l1.l_orderkey", 29 | "l1.l_suppkey" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": ["s_name"], 35 | "valueType": [10] 36 | }, 37 | { 38 | "selectType": 0, 39 | "value": ["l1.l_orderkey"], 40 | "valueType": [10] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": ["l1.l_suppkey"], 45 | "valueType": [10] 46 | } 47 | ] 48 | } 49 | } -------------------------------------------------------------------------------- /snippet/tpch03/tpch03-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":2, 6 | "workID":3, 7 | "tableName": ["ProcessTable2-0","ProcessTable2-1"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["c_custkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["o_custkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable2-3", 26 | "columnAlias": [ 27 | "o_orderdate", 28 | "o_orderkey", 29 | "o_shippriority" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": ["o_orderdate"], 35 | "valueType": [10] 36 | }, 37 | { 38 | "selectType": 0, 39 | "value": ["o_orderkey"], 40 | "valueType": [10] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": ["o_shippriority"], 45 | "valueType": [10] 46 | } 47 | ] 48 | } 49 | 50 | } -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-9.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":9, 7 | "tableName": ["ProcessTable4-8", "ProcessTable4-4"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_nationkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["n_nationkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable4-9", 26 | "columnAlias": [ 27 | "revenue", 28 | "n_regionkey", 29 | "n_name" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": ["revenue"], 35 | "valueType": [10] 36 | }, 37 | { 38 | "selectType": 0, 39 | "value": ["n_regionkey"], 40 | "valueType": [10] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": ["n_name"], 45 | "valueType": [10] 46 | } 47 | ] 48 | } 49 | 50 | } -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":7, 7 | "tableName": ["ProcessTable4-2", "ProcessTable4-6"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["l_orderkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["o_orderkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable4-7", 26 | "columnAlias": [ 27 | "l_suppkey", 28 | "revenue", 29 | "c_nationkey" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": ["l_suppkey"], 35 | "valueType": [10] 36 | }, 37 | { 38 | "selectType": 0, 39 | "value": ["revenue"], 40 | "valueType": [10] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": ["c_nationkey"], 45 | "valueType": [10] 46 | } 47 | ] 48 | } 49 | 50 | } -------------------------------------------------------------------------------- /snippet/tpch22/tpch22-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 10, 3 | "snippet": 4 | { 5 | "queryID":21, 6 | "workID":5, 7 | "tableName": ["ProcessTable21-4","ProcessTable21-2"], 8 | "tableCol":[], 9 | "tableFilter": [ 10 | { 11 | "Operator" : 12 12 | } 13 | ], 14 | "dependency":{ 15 | "dependencyProjection":[], 16 | "dependencyFilter" : [ 17 | { 18 | "LV": { 19 | "type": [10], 20 | "value": ["c_custkey"] 21 | }, 22 | "Operator" : 5, 23 | "RV" : { 24 | "type": [10], 25 | "value": ["o_custkey"] 26 | } 27 | } 28 | ] 29 | }, 30 | "tableOffset":[], 31 | "tableOfflen":[], 32 | "tableDatatype":[], 33 | "tableAlias": "custsale", 34 | "columnAlias": [ 35 | "cntrycode", 36 | "c_acctbal" 37 | ], 38 | "columnProjection": [ 39 | { 40 | "selectType": 0, 41 | "value": ["cntrycode"], 42 | "valueType": [10] 43 | }, 44 | { 45 | "selectType": 0, 46 | "value": ["c_acctbal"], 47 | "valueType": [10] 48 | } 49 | ] 50 | } 51 | } -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o" 3 | "CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o.d" 4 | "CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o" 5 | "CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o.d" 6 | "CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o" 7 | "CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o.d" 8 | "CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o" 9 | "CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o.d" 10 | "CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o" 11 | "CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o.d" 12 | "CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o" 13 | "CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o.d" 14 | "CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o" 15 | "CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o.d" 16 | "CMakeFiles/KETI_Validator.dir/main.cpp.o" 17 | "CMakeFiles/KETI_Validator.dir/main.cpp.o.d" 18 | "KETI_Validator" 19 | "KETI_Validator.pdb" 20 | ) 21 | 22 | # Per-language clean rules from dependency scanning. 23 | foreach(lang CXX) 24 | include(CMakeFiles/KETI_Validator.dir/cmake_clean_${lang}.cmake OPTIONAL) 25 | endforeach() 26 | -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":4, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[], 15 | "tableOffset":[ 16 | 0, 17 | 4, 18 | 29, 19 | 33 20 | ], 21 | "tableOfflen":[ 22 | 4, 23 | 25, 24 | 4, 25 | 152 26 | ], 27 | "tableDatatype":[ 28 | 3, 29 | 254, 30 | 3, 31 | 15 32 | ], 33 | "tableAlias": "ProcessTable4-4", 34 | "columnAlias": [ 35 | "n_nationkey", 36 | "n_name", 37 | "n_regionkey" 38 | ], 39 | "columnProjection": [ 40 | { 41 | "selectType": 0, 42 | "value": ["n_nationkey"], 43 | "valueType": [10] 44 | }, 45 | { 46 | "selectType": 0, 47 | "value": ["n_name"], 48 | "valueType": [10] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": ["n_regionkey"], 53 | "valueType": [10] 54 | } 55 | ], 56 | "pkNum":0 57 | } 58 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-14.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 1, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":14, 7 | "tableName": ["shipping"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "tableOffset":[], 11 | "tableOfflen":[], 12 | "tableDatatype":[], 13 | "tableAlias": "ResultTable6", 14 | "columnAlias": [ 15 | "supp_nation", 16 | "cust_nation", 17 | "l_year", 18 | "revenue" 19 | ], 20 | "columnProjection": [ 21 | { 22 | "selectType": 0, 23 | "value": ["supp_nation"], 24 | "valueType": [10] 25 | }, 26 | { 27 | "selectType": 0, 28 | "value": ["cust_nation"], 29 | "valueType": [10] 30 | }, 31 | { 32 | "selectType": 0, 33 | "value": ["l_year"], 34 | "valueType": [10] 35 | }, 36 | { 37 | "selectType": 1, 38 | "value": ["volume"], 39 | "valueType": [10] 40 | } 41 | ], 42 | "groupBy": ["supp_nation","cust_nation","l_year"], 43 | "orderBy": { 44 | "ascending" : [0,0,0], 45 | "columnName" : ["supp_nation","cust_nation","l_year"] 46 | } 47 | } 48 | 49 | } -------------------------------------------------------------------------------- /snippet/tpch02/tpch02-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":1, 6 | "workID":2, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[], 15 | "tableOffset":[ 16 | 0, 17 | 4, 18 | 29, 19 | 33 20 | ], 21 | "tableOfflen":[ 22 | 4, 23 | 25, 24 | 4, 25 | 152 26 | ], 27 | "tableDatatype":[ 28 | 3, 29 | 254, 30 | 3, 31 | 15 32 | ], 33 | "tableAlias": "ProcessTable1-2", 34 | "columnAlias": [ 35 | "n_nationkey", 36 | "n_regionkey", 37 | "n_name" 38 | ], 39 | "columnProjection": [ 40 | { 41 | "selectType": 0, 42 | "value": ["n_nationkey"], 43 | "valueType": [10] 44 | }, 45 | { 46 | "selectType": 0, 47 | "value": ["n_regionkey"], 48 | "valueType": [10] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": ["n_name"], 53 | "valueType": [10] 54 | } 55 | ], 56 | "pkNum" : 0 57 | } 58 | 59 | } -------------------------------------------------------------------------------- /snippet/tpch13/tpch13-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 12, 5 | "workID": 1, 6 | "tableName": [ 7 | "customer" 8 | ], 9 | "tableCol": [ 10 | "c_custkey", 11 | "c_name", 12 | "c_address", 13 | "c_nationkey", 14 | "c_phone", 15 | "c_acctbal", 16 | "c_mktsegment", 17 | "c_comment" 18 | ], 19 | "tableFilter": [], 20 | "tableOffset": [ 21 | 0, 22 | 4, 23 | 29, 24 | 69, 25 | 73, 26 | 88, 27 | 95, 28 | 105 29 | ], 30 | "tableOfflen": [ 31 | 4, 32 | 25, 33 | 40, 34 | 4, 35 | 15, 36 | 7, 37 | 10, 38 | 117 39 | ], 40 | "tableDatatype": [ 41 | 3, 42 | 15, 43 | 15, 44 | 3, 45 | 254, 46 | 246, 47 | 254, 48 | 15 49 | ], 50 | "tableAlias": "ProcessTable12-1", 51 | "columnAlias": [ 52 | "c_custkey" 53 | ], 54 | "columnProjection": [ 55 | { 56 | "selectType": 0, 57 | "value": ["c_custkey"], 58 | "valueType": [10] 59 | } 60 | ], 61 | "pkNum" : 0 62 | } 63 | } -------------------------------------------------------------------------------- /DBManager.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | class DBManager { 9 | public: 10 | static DBManager& getInstance(){ 11 | static DBManager instance; 12 | return instance; 13 | } 14 | 15 | void initialize(const std::string& host, const std::string& user, const std::string& password, const std::string& database){ 16 | driver = sql::mysql::get_mysql_driver_instance(); 17 | con = driver -> connect("tcp://10.0.4.80:40806",user,password); 18 | con -> setSchema(database); 19 | } 20 | 21 | sql::ResultSet* executeQuery(const std::string& query){ 22 | sql::Statement *stmt = con -> createStatement(); 23 | sql::ResultSet *res = stmt-> executeQuery(query); 24 | return res; 25 | } 26 | 27 | private: 28 | DBManager(){} 29 | ~DBManager(){ 30 | delete con; 31 | } 32 | 33 | DBManager(const DBManager&) = delete; 34 | DBManager& operator=(const DBManager&) = delete; 35 | sql::mysql::MySQL_Driver *driver; 36 | sql::Connection *con; 37 | }; 38 | -------------------------------------------------------------------------------- /snippet/tpch18/tpch18-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 1, 3 | "snippet": { 4 | "queryID": 17, 5 | "workID": 1, 6 | "tableName": [ 7 | "ProcessTable17-0" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [], 11 | "tableOffset": [], 12 | "tableOfflen": [], 13 | "tableDatatype": [], 14 | "tableAlias": "ProcessTable17-1", 15 | "columnAlias": [ 16 | "ProcessTable17-1-c1", 17 | "l_orderkey" 18 | ], 19 | "columnProjection": [ 20 | { 21 | "selectType": 1, 22 | "value": ["l_quantity"], 23 | "valueType": [10] 24 | }, 25 | { 26 | "selectType": 0, 27 | "value": ["l_orderkey"], 28 | "valueType": [10] 29 | } 30 | ], 31 | "groupBy": ["l_orderkey"], 32 | "having":[ 33 | { 34 | "LV": { 35 | "type": [ 36 | 10 37 | ], 38 | "value": [ 39 | "ProcessTable17-1-c1" 40 | ] 41 | }, 42 | "Operator": 3, 43 | "RV": { 44 | "type": [ 45 | 4 46 | ], 47 | "value": [ 48 | "314" 49 | ] 50 | } 51 | } 52 | ] 53 | } 54 | } -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-10.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":10, 7 | "tableName":["ProcessTable4-9", "ProcessTable4-5"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["n_regionkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["r_regionkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable4-10", 26 | "columnAlias": [ 27 | "n_name", 28 | "revenue" 29 | ], 30 | "columnProjection": [ 31 | { 32 | "selectType": 0, 33 | "value": ["n_name"], 34 | "valueType": [10] 35 | }, 36 | { 37 | "selectType": 0, 38 | "value": ["revenue"], 39 | "valueType": [10] 40 | } 41 | ] 42 | } 43 | 44 | } -------------------------------------------------------------------------------- /snippet/tpch18/tpch18-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 8, 3 | "snippet": { 4 | "queryID": 17, 5 | "workID": 4, 6 | "tableName": [ 7 | "ProcessTable17-3", "ProcessTable17-1" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [ 11 | { 12 | "LV": { 13 | "type": [10], 14 | "value": ["o_orderkey"] 15 | }, 16 | "Operator" : 9, 17 | "RV" : { 18 | "type": [10], 19 | "value": ["ProcessTable17-1-c1"] 20 | } 21 | } 22 | ], 23 | "tableOffset": [], 24 | "tableOfflen": [], 25 | "tableDatatype": [], 26 | "tableAlias": "ProcessTable17-4", 27 | "columnAlias": [ 28 | "o_orderkey", 29 | "o_orderdate", 30 | "o_totalprice" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": ["o_orderkey"], 36 | "valueType": [10] 37 | }, 38 | { 39 | "selectType": 0, 40 | "value": ["o_orderdate"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["o_totalprice"], 46 | "valueType": [10] 47 | } 48 | ] 49 | } 50 | } -------------------------------------------------------------------------------- /snippet/tpch13/tpch13-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 4, 3 | "snippet": { 4 | "queryID": 12, 5 | "workID": 2, 6 | "tableName": [ 7 | "ProcessTable12-1", 8 | "ProcessTable12-0" 9 | ], 10 | "tableCol": [ ], 11 | "tableFilter": [ 12 | { 13 | "LV": { 14 | "type": [ 15 | 10 16 | ], 17 | "value": [ 18 | "c_custkey" 19 | ] 20 | }, 21 | "Operator": 5, 22 | "RV": { 23 | "type": [ 24 | 10 25 | ], 26 | "value": [ 27 | "o_custkey" 28 | ] 29 | } 30 | } 31 | ], 32 | "tableOffset": [ ], 33 | "tableOfflen": [ ], 34 | "tableDatatype": [ ], 35 | "tableAlias": "c_orders", 36 | "columnAlias": [ 37 | "c_custkey", 38 | "c_count" 39 | ], 40 | "columnProjection": [ 41 | { 42 | "selectType": 0, 43 | "value": ["c_custkey"], 44 | "valueType": [10] 45 | }, 46 | { 47 | "selectType": 3, 48 | "value": ["o_orderkey"], 49 | "valueType": [10] 50 | } 51 | ], 52 | "groupBy": [ 53 | "c_custkey" 54 | ] 55 | } 56 | } -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":3, 7 | "tableName": ["supplier"], 8 | "tableCol":[ 9 | "s_suppkey", 10 | "s_name", 11 | "s_address", 12 | "s_nationkey", 13 | "s_phone", 14 | "s_acctbal", 15 | "s_comment" 16 | ], 17 | "tableFilter":[], 18 | "tableOffset":[ 19 | 0, 20 | 4, 21 | 29, 22 | 69, 23 | 73, 24 | 88, 25 | 95 26 | ], 27 | "tableOfflen":[ 28 | 4, 29 | 25, 30 | 40, 31 | 4, 32 | 15, 33 | 7, 34 | 101 35 | ], 36 | "tableDatatype":[ 37 | 3, 38 | 254, 39 | 15, 40 | 3, 41 | 254, 42 | 246, 43 | 15 44 | ], 45 | "tableAlias": "ProcessTable4-3", 46 | "columnAlias": [ 47 | "s_suppkey", 48 | "s_nationkey" 49 | ], 50 | "columnProjection": [ 51 | { 52 | "selectType": 0, 53 | "value": ["s_suppkey"], 54 | "valueType": [10] 55 | }, 56 | { 57 | "selectType": 0, 58 | "value": ["s_nationkey"], 59 | "valueType": [10] 60 | } 61 | ], 62 | "pkNum":0 63 | } 64 | } -------------------------------------------------------------------------------- /snippet/tpch22/tpch22-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":21, 6 | "workID":2, 7 | "tableName": ["orders"], 8 | "tableCol":[ 9 | "o_orderkey", 10 | "o_custkey", 11 | "o_orderstatus", 12 | "o_totalprice", 13 | "o_orderdate", 14 | "o_orderpriority", 15 | "o_clerk", 16 | "o_shippriority", 17 | "o_comment" 18 | ], 19 | "tableFilter":[], 20 | "tableOffset":[ 21 | 0, 22 | 4, 23 | 8, 24 | 9, 25 | 16, 26 | 19, 27 | 34, 28 | 49, 29 | 53 30 | ], 31 | "tableOfflen":[ 32 | 4, 33 | 4, 34 | 1, 35 | 7, 36 | 3, 37 | 15, 38 | 15, 39 | 4, 40 | 79 41 | ], 42 | "tableDatatype":[ 43 | 3, 44 | 3, 45 | 254, 46 | 246, 47 | 14, 48 | 254, 49 | 254, 50 | 3, 51 | 15 52 | ], 53 | "tableAlias": "ProcessTable21-2", 54 | "columnAlias": [ 55 | "o_custkey" 56 | ], 57 | "columnProjection": [ 58 | { 59 | "selectType": 0, 60 | "value": ["o_custkey"], 61 | "valueType": [10] 62 | } 63 | ], 64 | "pkNum" : 0 65 | } 66 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":0, 7 | "tableName": ["supplier"], 8 | "tableCol":[ 9 | "s_suppkey", 10 | "s_name", 11 | "s_address", 12 | "s_nationkey", 13 | "s_phone", 14 | "s_acctbal", 15 | "s_comment" 16 | ], 17 | "tableFilter":[], 18 | "tableOffset":[ 19 | 0, 20 | 4, 21 | 29, 22 | 69, 23 | 73, 24 | 88, 25 | 95 26 | ], 27 | "tableOfflen":[ 28 | 4, 29 | 25, 30 | 40, 31 | 4, 32 | 15, 33 | 7, 34 | 101 35 | ], 36 | "tableDatatype":[ 37 | 3, 38 | 254, 39 | 15, 40 | 3, 41 | 254, 42 | 246, 43 | 15 44 | ], 45 | "tableAlias": "ProcessTable6-0", 46 | "columnAlias": [ 47 | "s_suppkey", 48 | "s_nationkey" 49 | ], 50 | "columnProjection": [ 51 | { 52 | "selectType": 0, 53 | "value": ["s_suppkey"], 54 | "valueType": [10] 55 | }, 56 | { 57 | "selectType": 0, 58 | "value": ["s_nationkey"], 59 | "valueType": [10] 60 | } 61 | ], 62 | "pkNum" : 0 63 | } 64 | 65 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-14.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":14, 7 | "tableName": ["ProcessTable7-13","n2"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_nationkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["n2.n_nationkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "all_nations", 26 | "columnAlias": [ 27 | "o_year", 28 | "volume", 29 | "nation" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": [ 35 | "o_year" 36 | ], 37 | "valueType": [ 38 | 10 39 | ] 40 | }, 41 | { 42 | "selectType": 0, 43 | "value": [ 44 | "volume" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "nation" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ] 60 | } 61 | } -------------------------------------------------------------------------------- /snippet/tpch09/tpch09-10.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":8, 6 | "workID":10, 7 | "tableName": ["ProcessTable8-9","ProcessTable8-5"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_nationkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["n_nationkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "profit", 26 | "columnAlias": [ 27 | "o_year", 28 | "amount", 29 | "nation" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": [ 35 | "o_year" 36 | ], 37 | "valueType": [ 38 | 10 39 | ] 40 | }, 41 | { 42 | "selectType": 0, 43 | "value": [ 44 | "amount" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "nation" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ] 60 | } 61 | 62 | } -------------------------------------------------------------------------------- /snippet/tpch04/tpch04-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 10, 3 | "snippet": 4 | { 5 | "queryID":3, 6 | "workID":2, 7 | "tableName": ["ProcessTable3-1","ProcessTable3-0"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "tableOffset":[], 11 | "tableOfflen":[], 12 | "tableDatatype":[], 13 | "tableAlias": "ResultTable4", 14 | "columnAlias": [ 15 | "order_count", 16 | "o_orderpriority" 17 | ], 18 | "columnProjection": [ 19 | { 20 | "selectType": 4, 21 | "value": [], 22 | "valueType": [] 23 | }, 24 | { 25 | "selectType": 0, 26 | "value": ["o_orderpriority"], 27 | "valueType": [10] 28 | } 29 | ], 30 | "dependency":{ 31 | "dependencyProjection":[], 32 | "dependencyFilter" : [ 33 | { 34 | "LV": { 35 | "type": [10], 36 | "value": ["o_orderkey"] 37 | }, 38 | "Operator" : 5, 39 | "RV" : { 40 | "type": [10], 41 | "value": ["l_orderkey"] 42 | } 43 | } 44 | ] 45 | }, 46 | "groupBy": ["o_orderpriority"], 47 | "orderBy": { 48 | "ascending" : [0], 49 | "columnName" : ["o_orderpriority"] 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-8.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":8, 7 | "tableName": ["ProcessTable7-0","ProcessTable7-2"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["p_partkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["l_partkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable7-8", 26 | "columnAlias": [ 27 | "volume", 28 | "l_suppkey", 29 | "l_orderkey" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": [ 35 | "volume" 36 | ], 37 | "valueType": [ 38 | 10 39 | ] 40 | }, 41 | { 42 | "selectType": 0, 43 | "value": [ 44 | "l_suppkey" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "l_orderkey" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ] 60 | } 61 | } -------------------------------------------------------------------------------- /snippet/tpch02/tpch02-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":1, 6 | "workID":0, 7 | "tableName": ["partsupp"], 8 | "tableCol":[ 9 | "ps_partkey", 10 | "ps_suppkey", 11 | "ps_availqty", 12 | "ps_supplycost", 13 | "ps_comment" 14 | ], 15 | "tableFilter":[], 16 | "tableOffset": [ 17 | 0, 18 | 4, 19 | 8, 20 | 12, 21 | 19 22 | ], 23 | "tableOfflen": [ 24 | 4, 25 | 4, 26 | 4, 27 | 7, 28 | 199 29 | ], 30 | "tableDatatype": [ 31 | 3, 32 | 3, 33 | 3, 34 | 246, 35 | 15 36 | ], 37 | "tableAlias": "ProcessTable1-0", 38 | "columnAlias": [ 39 | "ps_partkey", 40 | "ps_suppkey", 41 | "ps_supplycost" 42 | ], 43 | "columnProjection": [ 44 | { 45 | "selectType": 0, 46 | "value": ["ps_partkey"], 47 | "valueType": [10] 48 | }, 49 | { 50 | "selectType": 0, 51 | "value": ["ps_suppkey"], 52 | "valueType": [10] 53 | }, 54 | { 55 | "selectType": 0, 56 | "value": ["ps_supplycost"], 57 | "valueType": [10] 58 | } 59 | ], 60 | "pkNum" : 0 61 | } 62 | } -------------------------------------------------------------------------------- /snippet/tpch09/tpch09-8.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":8, 6 | "workID":8, 7 | "tableName": ["ProcessTable8-0","ProcessTable8-7"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["p_partkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["l_partkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable8-8", 26 | "columnAlias": [ 27 | "s_nationkey", 28 | "l_orderkey", 29 | "amount" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": [ 35 | "s_nationkey" 36 | ], 37 | "valueType": [ 38 | 10 39 | ] 40 | }, 41 | { 42 | "selectType": 0, 43 | "value": [ 44 | "l_orderkey" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "amount" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ] 60 | } 61 | } -------------------------------------------------------------------------------- /snippet/tpch09/tpch09-9.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":8, 6 | "workID":9, 7 | "tableName": ["ProcessTable8-4","ProcessTable8-8"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["o_orderkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["l_orderkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable8-9", 26 | "columnAlias": [ 27 | "o_year", 28 | "s_nationkey", 29 | "amount" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": [ 35 | "o_year" 36 | ], 37 | "valueType": [ 38 | 10 39 | ] 40 | }, 41 | { 42 | "selectType": 0, 43 | "value": [ 44 | "s_nationkey" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "amount" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ] 60 | } 61 | 62 | } -------------------------------------------------------------------------------- /snippet/tpch03/tpch03-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 1, 3 | "snippet": 4 | { 5 | "queryID":2, 6 | "workID":5, 7 | "tableName": ["ProcessTable2-4"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "tableOffset":[], 11 | "tableOfflen":[], 12 | "tableDatatype":[], 13 | "tableAlias": "snippet2-5", 14 | "columnAlias": [ 15 | "l_orderkey", 16 | "revenue", 17 | "o_orderdate", 18 | "o_shippriority" 19 | ], 20 | "columnProjection": [ 21 | { 22 | "selectType": 0, 23 | "value": ["l_orderkey"], 24 | "valueType": [10] 25 | }, 26 | { 27 | "selectType": 1, 28 | "value": ["ProcessTable2-4-c1"], 29 | "valueType": [10] 30 | }, 31 | { 32 | "selectType": 0, 33 | "value": ["o_orderdate"], 34 | "valueType": [10] 35 | }, 36 | { 37 | "selectType": 0, 38 | "value": ["o_shippriority"], 39 | "valueType": [10] 40 | } 41 | ], 42 | "groupBy": ["l_orderkey","o_orderdate","o_shippriority"], 43 | "orderBy": { 44 | "ascending" : [1,0], 45 | "columnName" : ["revenue","o_orderdate"] 46 | }, 47 | "limit" : { 48 | "offset" : 0, 49 | "length" : 10 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-10.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":10, 7 | "tableName": ["ProcessTable6-9","n2"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["c_nationkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["n2.n_nationkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable6-10", 26 | "columnAlias": [ 27 | "l_year", 28 | "volume", 29 | "n1.n_name", 30 | "n2.n_name" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": ["l_year"], 36 | "valueType": [10] 37 | }, 38 | { 39 | "selectType": 0, 40 | "value": ["volume"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["n1.n_name"], 46 | "valueType": [10] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": ["n2.n_name"], 51 | "valueType": [10] 52 | } 53 | ] 54 | } 55 | 56 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":7, 7 | "tableName": ["ProcessTable6-2","ProcessTable6-6"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["o_orderkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["l_orderkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable6-7", 26 | "columnAlias": [ 27 | "o_custkey", 28 | "s_nationkey", 29 | "l_year", 30 | "volume" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": ["o_custkey"], 36 | "valueType": [10] 37 | }, 38 | { 39 | "selectType": 0, 40 | "value": ["s_nationkey"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["l_year"], 46 | "valueType": [10] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": ["volume"], 51 | "valueType": [10] 52 | } 53 | ] 54 | } 55 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-9.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":9, 7 | "tableName": ["ProcessTable6-8","n1"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_nationkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["n1.n_nationkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable6-9", 26 | "columnAlias": [ 27 | "c_nationkey", 28 | "l_year", 29 | "volume", 30 | "n1.n_name" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": ["c_nationkey"], 36 | "valueType": [10] 37 | }, 38 | { 39 | "selectType": 0, 40 | "value": ["l_year"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["volume"], 46 | "valueType": [10] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": ["n1.n_name"], 51 | "valueType": [10] 52 | } 53 | ] 54 | } 55 | 56 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-13.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":13, 7 | "tableName": ["ProcessTable7-12","ProcessTable7-7"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["n1.n_regionkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["r_regionkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable7-13", 26 | "columnAlias": [ 27 | "o_year", 28 | "volume", 29 | "s_nationkey" 30 | ], 31 | "columnProjection": [ 32 | { 33 | "selectType": 0, 34 | "value": [ 35 | "o_year" 36 | ], 37 | "valueType": [ 38 | 10 39 | ] 40 | }, 41 | { 42 | "selectType": 0, 43 | "value": [ 44 | "volume" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "s_nationkey" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ] 60 | } 61 | 62 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":6, 7 | "tableName": ["ProcessTable6-0","ProcessTable6-1"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_suppkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["l_suppkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable6-6", 26 | "columnAlias": [ 27 | "s_nationkey", 28 | "l_orderkey", 29 | "l_year", 30 | "volume" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": ["s_nationkey"], 36 | "valueType": [10] 37 | }, 38 | { 39 | "selectType": 0, 40 | "value": ["l_orderkey"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["l_year"], 46 | "valueType": [10] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": ["volume"], 51 | "valueType": [10] 52 | } 53 | ] 54 | } 55 | 56 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-8.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":8, 7 | "tableName": ["ProcessTable6-3","ProcessTable6-7"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["c_custkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["o_custkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable6-8", 26 | "columnAlias": [ 27 | "c_nationkey", 28 | "s_nationkey", 29 | "l_year", 30 | "volume" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": ["c_nationkey"], 36 | "valueType": [10] 37 | }, 38 | { 39 | "selectType": 0, 40 | "value": ["s_nationkey"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["l_year"], 46 | "valueType": [10] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": ["volume"], 51 | "valueType": [10] 52 | } 53 | ] 54 | } 55 | 56 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":1, 7 | "tableName": ["supplier"], 8 | "tableCol":[ 9 | "s_suppkey", 10 | "s_name", 11 | "s_address", 12 | "s_nationkey", 13 | "s_phone", 14 | "s_acctbal", 15 | "s_comment" 16 | ], 17 | "tableFilter":[], 18 | "tableOffset":[ 19 | 0, 20 | 4, 21 | 29, 22 | 69, 23 | 73, 24 | 88, 25 | 95 26 | ], 27 | "tableOfflen":[ 28 | 4, 29 | 25, 30 | 40, 31 | 4, 32 | 15, 33 | 7, 34 | 101 35 | ], 36 | "tableDatatype":[ 37 | 3, 38 | 254, 39 | 15, 40 | 3, 41 | 254, 42 | 246, 43 | 15 44 | ], 45 | "tableAlias": "ProcessTable7-1", 46 | "columnAlias": [ 47 | "s_suppkey", 48 | "s_nationkey" 49 | ], 50 | "columnProjection": [ 51 | { 52 | "selectType": 0, 53 | "value": [ 54 | "s_suppkey" 55 | ], 56 | "valueType": [ 57 | 10 58 | ] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": [ 63 | "s_nationkey" 64 | ], 65 | "valueType": [ 66 | 10 67 | ] 68 | } 69 | ], 70 | "pkNum" : 0 71 | } 72 | } -------------------------------------------------------------------------------- /snippet/tpch09/tpch09-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":8, 6 | "workID":1, 7 | "tableName": ["supplier"], 8 | "tableCol":[ 9 | "s_suppkey", 10 | "s_name", 11 | "s_address", 12 | "s_nationkey", 13 | "s_phone", 14 | "s_acctbal", 15 | "s_comment" 16 | ], 17 | "tableFilter":[], 18 | "tableOffset":[ 19 | 0, 20 | 4, 21 | 29, 22 | 69, 23 | 73, 24 | 88, 25 | 95 26 | ], 27 | "tableOfflen":[ 28 | 4, 29 | 25, 30 | 40, 31 | 4, 32 | 15, 33 | 7, 34 | 101 35 | ], 36 | "tableDatatype":[ 37 | 3, 38 | 254, 39 | 15, 40 | 3, 41 | 254, 42 | 246, 43 | 15 44 | ], 45 | "tableAlias": "ProcessTable8-1", 46 | "columnAlias": [ 47 | "s_suppkey", 48 | "s_nationkey" 49 | ], 50 | "columnProjection": [ 51 | { 52 | "selectType": 0, 53 | "value": [ 54 | "s_suppkey" 55 | ], 56 | "valueType": [ 57 | 10 58 | ] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": [ 63 | "s_nationkey" 64 | ], 65 | "valueType": [ 66 | 10 67 | ] 68 | } 69 | ], 70 | "pkNum" : 0 71 | } 72 | } -------------------------------------------------------------------------------- /snippet/tpch20/tpch20-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":19, 6 | "workID":6, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[ 15 | { 16 | "LV": { 17 | "type": [10], 18 | "value": ["n_name"] 19 | }, 20 | "Operator" : 5, 21 | "RV" : { 22 | "type": [9], 23 | "value": ["ALGERIA"] 24 | } 25 | } 26 | ], 27 | "tableOffset":[ 28 | 0, 29 | 4, 30 | 29, 31 | 33 32 | ], 33 | "tableOfflen":[ 34 | 4, 35 | 25, 36 | 4, 37 | 152 38 | ], 39 | "tableDatatype":[ 40 | 3, 41 | 254, 42 | 3, 43 | 15 44 | ], 45 | "tableAlias": "ProcessTable19-6", 46 | "columnAlias": [ 47 | "n_nationkey", 48 | "n_name" 49 | ], 50 | "columnProjection": [ 51 | { 52 | "selectType": 0, 53 | "value": ["n_nationkey"], 54 | "valueType": [10] 55 | }, 56 | { 57 | "selectType": 0, 58 | "value": ["n_name"], 59 | "valueType": [10] 60 | } 61 | ], 62 | "pkNum" : 0 63 | } 64 | } -------------------------------------------------------------------------------- /snippet/tpch21/tpch21-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":20, 6 | "workID":6, 7 | "tableName": ["ProcessTable20-3","l1"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_suppkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["l1.l_suppkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable20-6", 26 | "columnAlias": [ 27 | "s_name", 28 | "s_nationkey", 29 | "l1.l_orderkey", 30 | "l1.l_suppkey" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": ["s_name"], 36 | "valueType": [10] 37 | }, 38 | { 39 | "selectType": 0, 40 | "value": ["s_nationkey"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["l1.l_orderkey"], 46 | "valueType": [10] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": ["l1.l_suppkey"], 51 | "valueType": [10] 52 | } 53 | ] 54 | } 55 | } -------------------------------------------------------------------------------- /snippet/tpch21/tpch21-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":20, 6 | "workID":7, 7 | "tableName": ["ProcessTable20-4","ProcessTable20-6"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["o_orderkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["l1.l_orderkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable20-7", 26 | "columnAlias": [ 27 | "s_name", 28 | "s_nationkey", 29 | "l1.l_orderkey", 30 | "l1.l_suppkey" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": ["s_name"], 36 | "valueType": [10] 37 | }, 38 | { 39 | "selectType": 0, 40 | "value": ["s_nationkey"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["l1.l_orderkey"], 46 | "valueType": [10] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": ["l1.l_suppkey"], 51 | "valueType": [10] 52 | } 53 | ] 54 | } 55 | } -------------------------------------------------------------------------------- /snippet/tpch11/tpch11-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 10, 5 | "workID": 3, 6 | "tableName": [ 7 | "ProcessTable10-0", 8 | "ProcessTable10-1" 9 | ], 10 | "tableCol": [], 11 | "tableFilter": [ 12 | { 13 | "LV": { 14 | "type": [ 15 | 10 16 | ], 17 | "value": [ 18 | "ps_suppkey" 19 | ] 20 | }, 21 | "Operator": 5, 22 | "RV": { 23 | "type": [ 24 | 10 25 | ], 26 | "value": [ 27 | "s_suppkey" 28 | ] 29 | } 30 | } 31 | ], 32 | "tableOffset": [ ], 33 | "tableOfflen": [ ], 34 | "tableDatatype": [ ], 35 | "tableAlias": "ProcessTable10-3", 36 | "columnAlias": [ 37 | "ProcessTable10-3-c1", 38 | "s_nationkey" 39 | ], 40 | "columnProjection": [ 41 | { 42 | "selectType": 0, 43 | "value": [ 44 | "ProcessTable10-0-c1" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "s_nationkey" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ] 60 | } 61 | } -------------------------------------------------------------------------------- /snippet/tpch16/tpch16-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 15, 5 | "workID": 1, 6 | "tableName": [ 7 | "partsupp" 8 | ], 9 | "tableCol":[ 10 | "ps_partkey", 11 | "ps_suppkey", 12 | "ps_availqty", 13 | "ps_supplycost", 14 | "ps_comment" 15 | ], 16 | "tableFilter":[], 17 | "tableOffset": [ 18 | 0, 19 | 4, 20 | 8, 21 | 12, 22 | 19 23 | ], 24 | "tableOfflen": [ 25 | 4, 26 | 4, 27 | 4, 28 | 7, 29 | 199 30 | ], 31 | "tableDatatype": [ 32 | 3, 33 | 3, 34 | 3, 35 | 246, 36 | 15 37 | ], 38 | "tableAlias": "ProcessTable15-1", 39 | "columnAlias": [ 40 | "ps_suppkey", 41 | "ps_partkey" 42 | ], 43 | "columnProjection": [ 44 | { 45 | "selectType": 0, 46 | "value": [ 47 | "ps_suppkey" 48 | ], 49 | "valueType": [ 50 | 10 51 | ] 52 | }, 53 | { 54 | "selectType": 0, 55 | "value": [ 56 | "ps_partkey" 57 | ], 58 | "valueType": [ 59 | 10 60 | ] 61 | } 62 | ], 63 | "pkNum" : 0 64 | } 65 | } -------------------------------------------------------------------------------- /snippet/tpch03/tpch03-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":2, 6 | "workID":4, 7 | "tableName": ["ProcessTable2-2","ProcessTable2-3"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["l_orderkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["o_orderkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable2-4", 26 | "columnAlias": [ 27 | "o_orderdate", 28 | "o_shippriority", 29 | "l_orderkey", 30 | "ProcessTable2-4-c1" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": ["o_orderdate"], 36 | "valueType": [10] 37 | }, 38 | { 39 | "selectType": 0, 40 | "value": ["o_shippriority"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["l_orderkey"], 46 | "valueType": [10] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": ["ProcessTable2-2-c1"], 51 | "valueType": [10] 52 | } 53 | ] 54 | } 55 | } -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":0, 7 | "tableName": ["customer"], 8 | "tableCol": [ 9 | "c_custkey", 10 | "c_name", 11 | "c_address", 12 | "c_nationkey", 13 | "c_phone", 14 | "c_acctbal", 15 | "c_mktsegment", 16 | "c_comment" 17 | ], 18 | "tableFilter": [], 19 | "tableOffset": [ 20 | 0, 21 | 4, 22 | 29, 23 | 69, 24 | 73, 25 | 88, 26 | 95, 27 | 105 28 | ], 29 | "tableOfflen": [ 30 | 4, 31 | 25, 32 | 40, 33 | 4, 34 | 15, 35 | 7, 36 | 10, 37 | 117 38 | ], 39 | "tableDatatype": [ 40 | 3, 41 | 15, 42 | 15, 43 | 3, 44 | 254, 45 | 246, 46 | 254, 47 | 15 48 | ], 49 | "tableAlias": "ProcessTable4-0", 50 | "columnAlias": [ 51 | "c_custkey", 52 | "c_nationkey" 53 | ], 54 | "columnProjection": [ 55 | { 56 | "selectType": 0, 57 | "value": ["c_custkey"], 58 | "valueType": [10] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": ["c_nationkey"], 63 | "valueType": [10] 64 | } 65 | ], 66 | "pkNum":0 67 | } 68 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":3, 7 | "tableName": ["customer"], 8 | "tableCol": [ 9 | "c_custkey", 10 | "c_name", 11 | "c_address", 12 | "c_nationkey", 13 | "c_phone", 14 | "c_acctbal", 15 | "c_mktsegment", 16 | "c_comment" 17 | ], 18 | "tableFilter": [], 19 | "tableOffset": [ 20 | 0, 21 | 4, 22 | 29, 23 | 69, 24 | 73, 25 | 88, 26 | 95, 27 | 105 28 | ], 29 | "tableOfflen": [ 30 | 4, 31 | 25, 32 | 40, 33 | 4, 34 | 15, 35 | 7, 36 | 10, 37 | 117 38 | ], 39 | "tableDatatype": [ 40 | 3, 41 | 15, 42 | 15, 43 | 3, 44 | 254, 45 | 246, 46 | 254, 47 | 15 48 | ], 49 | "tableAlias": "ProcessTable6-3", 50 | "columnAlias": [ 51 | "c_custkey", 52 | "c_nationkey" 53 | ], 54 | "columnProjection": [ 55 | { 56 | "selectType": 0, 57 | "value": ["c_custkey"], 58 | "valueType": [10] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": ["c_nationkey"], 63 | "valueType": [10] 64 | } 65 | ], 66 | "pkNum" : 0 67 | } 68 | 69 | } -------------------------------------------------------------------------------- /snippet/tpch18/tpch18-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 17, 5 | "workID": 2, 6 | "tableName": [ 7 | "customer" 8 | ], 9 | "tableCol": [ 10 | "c_custkey", 11 | "c_name", 12 | "c_address", 13 | "c_nationkey", 14 | "c_phone", 15 | "c_acctbal", 16 | "c_mktsegment", 17 | "c_comment" 18 | ], 19 | "tableFilter": [], 20 | "tableOffset": [ 21 | 0, 22 | 4, 23 | 29, 24 | 69, 25 | 73, 26 | 88, 27 | 95, 28 | 105 29 | ], 30 | "tableOfflen": [ 31 | 4, 32 | 25, 33 | 40, 34 | 4, 35 | 15, 36 | 7, 37 | 10, 38 | 117 39 | ], 40 | "tableDatatype": [ 41 | 3, 42 | 15, 43 | 15, 44 | 3, 45 | 254, 46 | 246, 47 | 254, 48 | 15 49 | ], 50 | "tableAlias": "ProcessTable17-2", 51 | "columnAlias": [ 52 | "c_name", 53 | "c_custkey" 54 | ], 55 | "columnProjection": [ 56 | { 57 | "selectType": 0, 58 | "value": ["c_name"], 59 | "valueType": [10] 60 | }, 61 | { 62 | "selectType": 0, 63 | "value": ["c_custkey"], 64 | "valueType": [10] 65 | } 66 | ], 67 | "pkNum" : 0 68 | } 69 | } -------------------------------------------------------------------------------- /snippet/tpch11/tpch11-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 10, 5 | "workID": 2, 6 | "tableName": ["nation"], 7 | "tableCol":[ 8 | "n_nationkey", 9 | "n_name", 10 | "n_regionkey", 11 | "n_comment" 12 | ], 13 | "tableFilter": [ 14 | { 15 | "LV": { 16 | "type": [ 17 | 10 18 | ], 19 | "value": [ 20 | "n_name" 21 | ] 22 | }, 23 | "Operator": 5, 24 | "RV": { 25 | "type": [ 26 | 9 27 | ], 28 | "value": [ 29 | "MOZAMBIQUE" 30 | ] 31 | } 32 | } 33 | ], 34 | "tableOffset":[ 35 | 0, 36 | 4, 37 | 29, 38 | 33 39 | ], 40 | "tableOfflen":[ 41 | 4, 42 | 25, 43 | 4, 44 | 152 45 | ], 46 | "tableDatatype":[ 47 | 3, 48 | 254, 49 | 3, 50 | 15 51 | ], 52 | "tableAlias": "ProcessTable10-2", 53 | "columnAlias": [ 54 | "n_nationkey" 55 | ], 56 | "columnProjection": [ 57 | { 58 | "selectType": 0, 59 | "value": [ 60 | "n_nationkey" 61 | ], 62 | "valueType": [ 63 | 10 64 | ] 65 | } 66 | ], 67 | "pkNum" : 0 68 | } 69 | } -------------------------------------------------------------------------------- /snippet/tpch05/tpch05-8.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":4, 6 | "workID":8, 7 | "tableName": ["ProcessTable4-7", "ProcessTable4-3"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | 12 | "LV": { 13 | "type": [10], 14 | "value": ["l_suppkey"] 15 | }, 16 | "Operator" : 5, 17 | "RV" : { 18 | "type": [10], 19 | "value": ["s_suppkey"] 20 | } 21 | }, 22 | { 23 | "Operator" : 13 24 | }, 25 | { 26 | 27 | "LV": { 28 | "type": [10], 29 | "value": ["c_nationkey"] 30 | }, 31 | "Operator" : 5, 32 | "RV" : { 33 | "type": [10], 34 | "value": ["s_nationkey"] 35 | } 36 | } 37 | ], 38 | "tableOffset":[], 39 | "tableOfflen":[], 40 | "tableDatatype":[], 41 | "tableAlias": "ProcessTable4-8", 42 | "columnAlias": [ 43 | "s_nationkey", 44 | "revenue" 45 | ], 46 | "columnProjection": [ 47 | { 48 | "selectType": 0, 49 | "value": ["s_nationkey"], 50 | "valueType": [10] 51 | }, 52 | { 53 | "selectType": 0, 54 | "value": ["revenue"], 55 | "valueType": [10] 56 | } 57 | ] 58 | } 59 | 60 | } -------------------------------------------------------------------------------- /snippet/tpch15/tpch15-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 14, 5 | "workID": 4, 6 | "tableName": [ 7 | "revenue0", 8 | "ProcessTable14-3" 9 | ], 10 | "tableCol": [], 11 | "tableFilter": [ 12 | { 13 | "LV": { 14 | "type": [ 15 | 10 16 | ], 17 | "value": [ 18 | "total_revenue" 19 | ] 20 | }, 21 | "Operator": 5, 22 | "RV": { 23 | "type": [ 24 | 10 25 | ], 26 | "value": [ 27 | "ProcessTable14-3-c1" 28 | ] 29 | } 30 | } 31 | ], 32 | "tableOffset": [], 33 | "tableOfflen": [], 34 | "tableDatatype": [], 35 | "tableAlias": "ProcessTable14-4", 36 | "columnAlias": [ 37 | "total_revenue", 38 | "supplier_no" 39 | ], 40 | "columnProjection": [ 41 | { 42 | "selectType": 0, 43 | "value": [ 44 | "total_revenue" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "supplier_no" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ] 60 | } 61 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":4, 7 | "tableName": ["customer"], 8 | "tableCol":[ 9 | "c_custkey", 10 | "c_name", 11 | "c_address", 12 | "c_nationkey", 13 | "c_phone", 14 | "c_acctbal", 15 | "c_mktsegment", 16 | "c_comment" 17 | ], 18 | "tableFilter":[], 19 | "tableOffset":[ 20 | 0, 21 | 4, 22 | 29, 23 | 69, 24 | 73, 25 | 88, 26 | 95, 27 | 105 28 | ], 29 | "tableOfflen":[ 30 | 4, 31 | 25, 32 | 40, 33 | 4, 34 | 15, 35 | 7, 36 | 10, 37 | 117 38 | ], 39 | "tableDatatype":[ 40 | 3, 41 | 15, 42 | 15, 43 | 3, 44 | 254, 45 | 246, 46 | 254, 47 | 15 48 | ], 49 | "tableAlias": "ProcessTable7-4", 50 | "columnAlias": [ 51 | "c_custkey", 52 | "c_nationkey" 53 | ], 54 | "columnProjection": [ 55 | { 56 | "selectType": 0, 57 | "value": [ 58 | "c_custkey" 59 | ], 60 | "valueType": [ 61 | 10 62 | ] 63 | }, 64 | { 65 | "selectType": 0, 66 | "value": [ 67 | "c_nationkey" 68 | ], 69 | "valueType": [ 70 | 10 71 | ] 72 | } 73 | ], 74 | "pkNum" : 0 75 | } 76 | } -------------------------------------------------------------------------------- /snippet/tpch21/tpch21-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":20, 6 | "workID":3, 7 | "tableName": ["supplier"], 8 | "tableCol":[ 9 | "s_suppkey", 10 | "s_name", 11 | "s_address", 12 | "s_nationkey", 13 | "s_phone", 14 | "s_acctbal", 15 | "s_comment" 16 | ], 17 | "tableFilter":[], 18 | "tableOffset":[ 19 | 0, 20 | 4, 21 | 29, 22 | 69, 23 | 73, 24 | 88, 25 | 95 26 | ], 27 | "tableOfflen":[ 28 | 4, 29 | 25, 30 | 40, 31 | 4, 32 | 15, 33 | 7, 34 | 101 35 | ], 36 | "tableDatatype":[ 37 | 3, 38 | 254, 39 | 15, 40 | 3, 41 | 254, 42 | 246, 43 | 15 44 | ], 45 | "tableAlias": "ProcessTable20-3", 46 | "columnAlias": [ 47 | "s_suppkey", 48 | "s_nationkey", 49 | "s_name" 50 | ], 51 | "columnProjection": [ 52 | { 53 | "selectType": 0, 54 | "value": ["s_suppkey"], 55 | "valueType": [10] 56 | }, 57 | { 58 | "selectType": 0, 59 | "value": ["s_nationkey"], 60 | "valueType": [10] 61 | }, 62 | { 63 | "selectType": 0, 64 | "value": ["s_name"], 65 | "valueType": [10] 66 | } 67 | ] 68 | } 69 | } -------------------------------------------------------------------------------- /snippet/tpch11/tpch11-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 10, 5 | "workID": 6, 6 | "tableName": [ 7 | "ProcessTable10-5", 8 | "ProcessTable10-2" 9 | ], 10 | "tableCol": [ ], 11 | "tableFilter": [ 12 | { 13 | "LV": { 14 | "type": [ 15 | 10 16 | ], 17 | "value": [ 18 | "s_nationkey" 19 | ] 20 | }, 21 | "Operator": 5, 22 | "RV": { 23 | "type": [ 24 | 10 25 | ], 26 | "value": [ 27 | "n_nationkey" 28 | ] 29 | } 30 | } 31 | ], 32 | "tableOffset": [ ], 33 | "tableOfflen": [ ], 34 | "tableDatatype": [ ], 35 | "tableAlias": "ProcessTable10-6", 36 | "columnAlias": [ 37 | "ProcessTable10-6-c1", 38 | "ps_partkey" 39 | ], 40 | "columnProjection": [ 41 | { 42 | "selectType":1, 43 | "value": [ 44 | "ProcessTable10-5-c1" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "ps_partkey" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ], 60 | "groupBy": [ 61 | "ps_partkey" 62 | ] 63 | } 64 | } -------------------------------------------------------------------------------- /snippet/tpch11/tpch11-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 10, 5 | "workID": 1, 6 | "tableName": [ 7 | "supplier" 8 | ], 9 | "tableCol":[ 10 | "s_suppkey", 11 | "s_name", 12 | "s_address", 13 | "s_nationkey", 14 | "s_phone", 15 | "s_acctbal", 16 | "s_comment" 17 | ], 18 | "tableFilter":[], 19 | "tableOffset":[ 20 | 0, 21 | 4, 22 | 29, 23 | 69, 24 | 73, 25 | 88, 26 | 95 27 | ], 28 | "tableOfflen":[ 29 | 4, 30 | 25, 31 | 40, 32 | 4, 33 | 15, 34 | 7, 35 | 101 36 | ], 37 | "tableDatatype":[ 38 | 3, 39 | 254, 40 | 15, 41 | 3, 42 | 254, 43 | 246, 44 | 15 45 | ], 46 | "tableAlias": "ProcessTable10-1", 47 | "columnAlias": [ 48 | "s_nationkey", 49 | "s_suppkey" 50 | ], 51 | "columnProjection": [ 52 | { 53 | "selectType": 0, 54 | "value": [ 55 | "s_nationkey" 56 | ], 57 | "valueType": [ 58 | 10 59 | ] 60 | }, 61 | { 62 | "selectType": 0, 63 | "value": [ 64 | "s_suppkey" 65 | ], 66 | "valueType": [ 67 | 10 68 | ] 69 | } 70 | ], 71 | "pkNum" : 0 72 | } 73 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":2, 7 | "tableName": ["orders"], 8 | "tableCol":[ 9 | "o_orderkey", 10 | "o_custkey", 11 | "o_orderstatus", 12 | "o_totalprice", 13 | "o_orderDATE", 14 | "o_orderpriority", 15 | "o_clerk", 16 | "o_shippriority", 17 | "o_comment" 18 | ], 19 | "tableFilter":[], 20 | "tableOffset":[ 21 | 0, 22 | 4, 23 | 8, 24 | 9, 25 | 16, 26 | 19, 27 | 34, 28 | 49, 29 | 53 30 | ], 31 | "tableOfflen":[ 32 | 4, 33 | 4, 34 | 1, 35 | 7, 36 | 3, 37 | 15, 38 | 15, 39 | 4, 40 | 79 41 | ], 42 | "tableDatatype":[ 43 | 3, 44 | 3, 45 | 254, 46 | 246, 47 | 14, 48 | 254, 49 | 254, 50 | 3, 51 | 15 52 | ], 53 | "tableAlias": "ProcessTable6-2", 54 | "columnAlias": [ 55 | "o_orderkey", 56 | "o_custkey" 57 | ], 58 | "columnProjection": [ 59 | { 60 | "selectType": 0, 61 | "value": ["o_orderkey"], 62 | "valueType": [10] 63 | }, 64 | { 65 | "selectType": 0, 66 | "value": ["o_custkey"], 67 | "valueType": [10] 68 | } 69 | ], 70 | "pkNum" : 0 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /snippet/tpch09/tpch09-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":8, 6 | "workID":3, 7 | "tableName": [ 8 | "partsupp" 9 | ], 10 | "tableCol":[ 11 | "ps_partkey", 12 | "ps_suppkey", 13 | "ps_availqty", 14 | "ps_supplycost", 15 | "ps_comment" 16 | ], 17 | "tableFilter":[], 18 | "tableOffset": [ 19 | 0, 20 | 4, 21 | 8, 22 | 12, 23 | 19 24 | ], 25 | "tableOfflen": [ 26 | 4, 27 | 4, 28 | 4, 29 | 7, 30 | 199 31 | ], 32 | "tableDatatype": [ 33 | 3, 34 | 3, 35 | 3, 36 | 246, 37 | 15 38 | ], 39 | "tableAlias": "ProcessTable8-3", 40 | "columnAlias": [ 41 | "ps_supplycost", 42 | "ps_suppkey", 43 | "ps_partkey" 44 | ], 45 | "columnProjection": [ 46 | { 47 | "selectType": 0, 48 | "value": [ 49 | "ps_supplycost" 50 | ], 51 | "valueType": [ 52 | 10 53 | ] 54 | }, 55 | { 56 | "selectType": 0, 57 | "value": [ 58 | "ps_suppkey" 59 | ], 60 | "valueType": [ 61 | 10 62 | ] 63 | }, 64 | { 65 | "selectType": 0, 66 | "value": [ 67 | "ps_partkey" 68 | ], 69 | "valueType": [ 70 | 10 71 | ] 72 | } 73 | ], 74 | "pkNum" : 0 75 | } 76 | } -------------------------------------------------------------------------------- /snippet/tpch20/tpch20-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 8, 3 | "snippet": 4 | { 5 | "queryID":19, 6 | "workID":3, 7 | "tableName": ["ProcessTable19-2","ProcessTable19-1"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["ps_partkey"] 14 | }, 15 | "Operator" : 9, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["p_partkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset": [ 23 | 0, 24 | 4, 25 | 8, 26 | 12, 27 | 19 28 | ], 29 | "tableOfflen": [ 30 | 4, 31 | 4, 32 | 4, 33 | 7, 34 | 199 35 | ], 36 | "tableDatatype": [ 37 | 3, 38 | 3, 39 | 3, 40 | 246, 41 | 15 42 | ], 43 | "tableAlias": "ProcessTable19-3", 44 | "columnAlias": [ 45 | "ps_suppkey", 46 | "ps_partkey", 47 | "ps_availqty" 48 | ], 49 | "columnProjection": [ 50 | { 51 | "selectType": 0, 52 | "value": ["ps_suppkey"], 53 | "valueType": [10] 54 | }, 55 | { 56 | "selectType": 0, 57 | "value": ["ps_partkey"], 58 | "valueType": [10] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": ["ps_availqty"], 63 | "valueType": [10] 64 | } 65 | ] 66 | } 67 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":7, 7 | "tableName": ["region"], 8 | "tableCol":[ 9 | "r_regionkey", 10 | "r_name", 11 | "r_comment" 12 | ], 13 | "tableFilter":[ 14 | { 15 | "LV": { 16 | "type": [ 17 | 10 18 | ], 19 | "value": [ 20 | "r_name" 21 | ] 22 | }, 23 | "Operator": 5, 24 | "RV": { 25 | "type": [ 26 | 9 27 | ], 28 | "value": [ 29 | "ASIA" 30 | ] 31 | } 32 | } 33 | ], 34 | "tableOffset":[ 35 | 0, 36 | 4, 37 | 29 38 | ], 39 | "tableOfflen":[ 40 | 4, 41 | 25, 42 | 152 43 | ], 44 | "tableDatatype":[ 45 | 3, 46 | 254, 47 | 15 48 | ], 49 | "tableAlias": "ProcessTable7-7", 50 | "columnAlias": [ 51 | "r_regionkey", 52 | "r_name" 53 | ], 54 | "columnProjection": [ 55 | { 56 | "selectType": 0, 57 | "value": [ 58 | "r_regionkey" 59 | ], 60 | "valueType": [ 61 | 10 62 | ] 63 | }, 64 | { 65 | "selectType": 0, 66 | "value": [ 67 | "r_name" 68 | ], 69 | "valueType": [ 70 | 10 71 | ] 72 | } 73 | ], 74 | "pkNum" : 0 75 | } 76 | 77 | } -------------------------------------------------------------------------------- /snippet/tpch11/tpch11-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 10, 5 | "workID": 7, 6 | "tableName": [ 7 | "ProcessTable10-6", 8 | "ProcessTable10-4" 9 | ], 10 | "tableCol": [ ], 11 | "tableFilter": [ 12 | { 13 | "LV": { 14 | "type": [ 15 | 10 16 | ], 17 | "value": [ 18 | "ProcessTable10-6-c1" 19 | ] 20 | }, 21 | "Operator": 3, 22 | "RV": { 23 | "type": [ 24 | 9 25 | ], 26 | "value": [ 27 | "ProcessTable10-4-c1" 28 | ] 29 | } 30 | } 31 | ], 32 | "tableOffset": [ ], 33 | "tableOfflen": [ ], 34 | "tableDatatype": [ ], 35 | "tableAlias": "ResultTable10", 36 | "columnAlias": [ 37 | "ps_partkey", 38 | "value" 39 | ], 40 | "columnProjection": [ 41 | { 42 | "selectType": 0, 43 | "value": [ 44 | "ps_partkey" 45 | ], 46 | "valueType": [ 47 | 10 48 | ] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": [ 53 | "ProcessTable10-6-c1" 54 | ], 55 | "valueType": [ 56 | 10 57 | ] 58 | } 59 | ], 60 | "orderBy": { 61 | "ascending" : [1], 62 | "columnName" : ["value"] 63 | } 64 | } 65 | } -------------------------------------------------------------------------------- /snippet/tpch14/tpch14-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": { 4 | "queryID":13, 5 | "workID":1, 6 | "tableName": ["part"], 7 | "tableCol":[ 8 | "p_partkey", 9 | "p_name", 10 | "p_mfgr", 11 | "p_brand", 12 | "p_type", 13 | "p_size", 14 | "p_container", 15 | "p_retailprice", 16 | "p_comment" 17 | ], 18 | "tableFilter":[], 19 | "tableOffset": [ 20 | 0, 21 | 4, 22 | 59, 23 | 84, 24 | 94, 25 | 119, 26 | 123, 27 | 133, 28 | 140 29 | ], 30 | "tableOfflen": [ 31 | 4, 32 | 55, 33 | 25, 34 | 10, 35 | 25, 36 | 4, 37 | 10, 38 | 7, 39 | 23 40 | ], 41 | "tableDatatype": [ 42 | 3, 43 | 15, 44 | 254, 45 | 254, 46 | 15, 47 | 3, 48 | 254, 49 | 246, 50 | 15 51 | ], 52 | "tableAlias": "ProcessTable13-1", 53 | "columnAlias": [ 54 | "p_type", 55 | "p_partkey" 56 | ], 57 | "columnProjection": [ 58 | { 59 | "selectType": 0, 60 | "value": [ 61 | "p_type" 62 | ], 63 | "valueType": [ 64 | 10 65 | ] 66 | }, 67 | { 68 | "selectType": 0, 69 | "value": [ 70 | "p_partkey" 71 | ], 72 | "valueType": [ 73 | 10 74 | ] 75 | } 76 | ], 77 | "pkNum": 0 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /snippet/tpch17/tpch17-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 9, 3 | "snippet": { 4 | "queryID": 16, 5 | "workID": 3, 6 | "tableName": [ 7 | "ProcessTable16-2", "ProcessTable16-0" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [ 11 | { 12 | "LV": { 13 | "type": [10], 14 | "value": ["l_quantity"] 15 | }, 16 | "Operator" : 4, 17 | "RV" : { 18 | "type": [], 19 | "value": [] 20 | } 21 | } 22 | ], 23 | "dependency":{ 24 | "dependencyProjection":[ 25 | { 26 | "selectType": 2, 27 | "value": ["0.2", "l_quantity", "*"], 28 | "valueType": [5, 10, 11] 29 | } 30 | ], 31 | "dependencyFilter" : [ 32 | { 33 | "LV": { 34 | "type": [10], 35 | "value": ["p_partkey"] 36 | }, 37 | "Operator" : 5, 38 | "RV" : { 39 | "type": [10], 40 | "value": ["l_partkey"] 41 | } 42 | } 43 | ] 44 | }, 45 | "tableOffset": [], 46 | "tableOfflen": [], 47 | "tableDatatype": [], 48 | "tableAlias": "ResultTable16", 49 | "columnAlias": [ 50 | "avg_yearly" 51 | ], 52 | "columnProjection": [ 53 | { 54 | "selectType": 1, 55 | "value": ["l_extendedprice", "7.0", "/"], 56 | "valueType": [10, 5, 11] 57 | } 58 | ] 59 | } 60 | } -------------------------------------------------------------------------------- /snippet/tpch03/tpch03-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":2, 6 | "workID":0, 7 | "tableName": ["customer"], 8 | "tableCol":[ 9 | "c_custkey", 10 | "c_name", 11 | "c_address", 12 | "c_nationkey", 13 | "c_phone", 14 | "c_acctbal", 15 | "c_mktsegment", 16 | "c_comment" 17 | ], 18 | "tableFilter":[ 19 | { 20 | "LV": { 21 | "type": [10], 22 | "value": ["c_mktsegment"] 23 | }, 24 | "Operator" : 5, 25 | "RV" : { 26 | "type": [9], 27 | "value": ["AUTOMOBILE"] 28 | } 29 | } 30 | ], 31 | "tableOffset": [ 32 | 0, 33 | 4, 34 | 29, 35 | 69, 36 | 73, 37 | 88, 38 | 95, 39 | 105 40 | ], 41 | "tableOfflen": [ 42 | 4, 43 | 25, 44 | 40, 45 | 4, 46 | 15, 47 | 7, 48 | 10, 49 | 117 50 | ], 51 | "tableDatatype": [ 52 | 3, 53 | 15, 54 | 15, 55 | 3, 56 | 254, 57 | 246, 58 | 254, 59 | 15 60 | ], 61 | "tableAlias": "ProcessTable2-0", 62 | "columnAlias": [ 63 | "c_custkey" 64 | ], 65 | "columnProjection": [ 66 | { 67 | "selectType": 0, 68 | "value": ["c_custkey"], 69 | "valueType": [10] 70 | } 71 | ], 72 | "pkNum" : 0 73 | } 74 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-10.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":10, 7 | "tableName": ["ProcessTable7-9","ProcessTable7-3"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["l_orderkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["o_orderkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable7-10", 26 | "columnAlias": [ 27 | "s_nationkey", 28 | "volume", 29 | "o_year", 30 | "o_custkey" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": [ 36 | "s_nationkey" 37 | ], 38 | "valueType": [ 39 | 10 40 | ] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": [ 45 | "volume" 46 | ], 47 | "valueType": [ 48 | 10 49 | ] 50 | }, 51 | { 52 | "selectType": 0, 53 | "value": [ 54 | "o_year" 55 | ], 56 | "valueType": [ 57 | 10 58 | ] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": [ 63 | "o_custkey" 64 | ], 65 | "valueType": [ 66 | 10 67 | ] 68 | } 69 | ] 70 | } 71 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-11.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":11, 7 | "tableName": ["ProcessTable7-10","ProcessTable7-4"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["o_custkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["c_custkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable7-11", 26 | "columnAlias": [ 27 | "s_nationkey", 28 | "volume", 29 | "o_year", 30 | "c_nationkey" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": [ 36 | "s_nationkey" 37 | ], 38 | "valueType": [ 39 | 10 40 | ] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": [ 45 | "volume" 46 | ], 47 | "valueType": [ 48 | 10 49 | ] 50 | }, 51 | { 52 | "selectType": 0, 53 | "value": [ 54 | "o_year" 55 | ], 56 | "valueType": [ 57 | 10 58 | ] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": [ 63 | "c_nationkey" 64 | ], 65 | "valueType": [ 66 | 10 67 | ] 68 | } 69 | ] 70 | } 71 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-9.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":9, 7 | "tableName": ["ProcessTable7-1","ProcessTable7-8"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_suppkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["l_suppkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable7-9", 26 | "columnAlias": [ 27 | "s_nationkey", 28 | "volume", 29 | "l_suppkey", 30 | "l_orderkey" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": [ 36 | "s_nationkey" 37 | ], 38 | "valueType": [ 39 | 10 40 | ] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": [ 45 | "volume" 46 | ], 47 | "valueType": [ 48 | 10 49 | ] 50 | }, 51 | { 52 | "selectType": 0, 53 | "value": [ 54 | "l_suppkey" 55 | ], 56 | "valueType": [ 57 | 10 58 | ] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": [ 63 | "l_orderkey" 64 | ], 65 | "valueType": [ 66 | 10 67 | ] 68 | } 69 | ] 70 | } 71 | } -------------------------------------------------------------------------------- /snippet/tpch18/tpch18-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 17, 5 | "workID": 5, 6 | "tableName": [ 7 | "ProcessTable17-2", "ProcessTable17-4" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [ 11 | { 12 | "LV": { 13 | "type": [10], 14 | "value": ["c_custkey"] 15 | }, 16 | "Operator" : 5, 17 | "RV" : { 18 | "type": [10], 19 | "value": ["o_custkey"] 20 | } 21 | } 22 | ], 23 | "tableOffset": [], 24 | "tableOfflen": [], 25 | "tableDatatype": [], 26 | "tableAlias": "ProcessTable17-5", 27 | "columnAlias": [ 28 | "c_name", 29 | "c_custkey", 30 | "o_orderkey", 31 | "o_orderdate", 32 | "o_totalprice" 33 | ], 34 | "columnProjection": [ 35 | { 36 | "selectType": 0, 37 | "value": ["c_name"], 38 | "valueType": [10] 39 | }, 40 | { 41 | "selectType": 0, 42 | "value": ["c_custkey"], 43 | "valueType": [10] 44 | }, 45 | { 46 | "selectType": 0, 47 | "value": ["o_orderkey"], 48 | "valueType": [10] 49 | }, 50 | { 51 | "selectType": 0, 52 | "value": ["o_orderdate"], 53 | "valueType": [10] 54 | }, 55 | { 56 | "selectType": 0, 57 | "value": ["o_totalprice"], 58 | "valueType": [10] 59 | } 60 | ] 61 | } 62 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-12.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":12, 7 | "tableName": ["ProcessTable7-11","n1"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["c_nationkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["n1.n_nationkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable7-12", 26 | "columnAlias": [ 27 | "o_year", 28 | "volume", 29 | "s_nationkey", 30 | "n1.n_regionkey" 31 | ], 32 | "columnProjection": [ 33 | { 34 | "selectType": 0, 35 | "value": [ 36 | "o_year" 37 | ], 38 | "valueType": [ 39 | 10 40 | ] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": [ 45 | "volume" 46 | ], 47 | "valueType": [ 48 | 10 49 | ] 50 | }, 51 | { 52 | "selectType": 0, 53 | "value": [ 54 | "s_nationkey" 55 | ], 56 | "valueType": [ 57 | 10 58 | ] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": [ 63 | "n1.n_regionkey" 64 | ], 65 | "valueType": [ 66 | 10 67 | ] 68 | } 69 | ] 70 | } 71 | 72 | } -------------------------------------------------------------------------------- /snippet/tpch16/tpch16-4.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "type" : 3, 4 | "snippet": 5 | { 6 | "queryID":15, 7 | "workID":4, 8 | "tableName": ["ProcessTable15-2", "ProcessTable15-3"], 9 | "tableCol":[], 10 | "tableFilter":[ 11 | { 12 | "LV": { 13 | "type": [10], 14 | "value": ["p_partkey"] 15 | }, 16 | "Operator" : 5, 17 | "RV" : { 18 | "type": [10], 19 | "value": ["ps_partkey"] 20 | } 21 | } 22 | ], 23 | "tableOffset":[], 24 | "tableOfflen":[], 25 | "tableDatatype":[], 26 | "tableAlias": "ResultTable15", 27 | "columnAlias": [ 28 | "p_brand", 29 | "p_type", 30 | "p_size", 31 | "supplier_cnt" 32 | ], 33 | "columnProjection": [ 34 | { 35 | "selectType": 0, 36 | "value": ["p_brand"], 37 | "valueType": [10] 38 | }, 39 | { 40 | "selectType": 0, 41 | "value": ["p_type"], 42 | "valueType": [10] 43 | }, 44 | { 45 | "selectType": 0, 46 | "value": ["p_size"], 47 | "valueType": [10] 48 | }, 49 | { 50 | "selectType": 5, 51 | "value": ["ps_suppkey"], 52 | "valueType": [10] 53 | } 54 | ], 55 | "groupBy": [ 56 | "p_brand", 57 | "p_type", 58 | "p_size" 59 | ], 60 | "orderBy": 61 | { 62 | "ascending": [1,0,0,0], 63 | "columnName": ["supplier_cnt","p_brand","p_type","p_size"] 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /snippet/tpch20/tpch20-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 8, 3 | "snippet": 4 | { 5 | "queryID":19, 6 | "workID":7, 7 | "tableName": ["ProcessTable19-5","ProcessTable19-4"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_suppkey"] 14 | }, 15 | "Operator" : 9, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["ProcessTable19-4-c1"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[ 23 | 0, 24 | 4, 25 | 29, 26 | 69, 27 | 73, 28 | 88, 29 | 95 30 | ], 31 | "tableOfflen":[ 32 | 4, 33 | 25, 34 | 40, 35 | 4, 36 | 15, 37 | 7, 38 | 101 39 | ], 40 | "tableDatatype":[ 41 | 3, 42 | 254, 43 | 15, 44 | 3, 45 | 254, 46 | 246, 47 | 15 48 | ], 49 | "tableAlias": "ProcessTable19-7", 50 | "columnAlias": [ 51 | "s_nationkey", 52 | "s_name", 53 | "s_address" 54 | ], 55 | "columnProjection": [ 56 | { 57 | "selectType": 0, 58 | "value": ["s_nationkey"], 59 | "valueType": [10] 60 | }, 61 | { 62 | "selectType": 0, 63 | "value": ["s_name"], 64 | "valueType": [10] 65 | }, 66 | { 67 | "selectType": 0, 68 | "value": ["s_address"], 69 | "valueType": [10] 70 | } 71 | ] 72 | } 73 | } -------------------------------------------------------------------------------- /snippet/tpch21/tpch21-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":20, 6 | "workID":4, 7 | "tableName": ["orders"], 8 | "tableCol":[ 9 | "o_orderkey", 10 | "o_custkey", 11 | "o_orderstatus", 12 | "o_totalprice", 13 | "o_orderDATE", 14 | "o_orderpriority", 15 | "o_clerk", 16 | "o_shippriority", 17 | "o_comment" 18 | ], 19 | "tableFilter":[ 20 | { 21 | "LV": { 22 | "type": [10], 23 | "value": ["o_orderstatus"] 24 | }, 25 | "Operator" : 5, 26 | "RV" : { 27 | "type": [9], 28 | "value": ["F"] 29 | } 30 | } 31 | ], 32 | "tableOffset":[ 33 | 0, 34 | 4, 35 | 8, 36 | 9, 37 | 16, 38 | 19, 39 | 34, 40 | 49, 41 | 53 42 | ], 43 | "tableOfflen":[ 44 | 4, 45 | 4, 46 | 1, 47 | 7, 48 | 3, 49 | 15, 50 | 15, 51 | 4, 52 | 79 53 | ], 54 | "tableDatatype":[ 55 | 3, 56 | 3, 57 | 254, 58 | 246, 59 | 14, 60 | 254, 61 | 254, 62 | 3, 63 | 15 64 | ], 65 | "tableAlias": "ProcessTable20-4", 66 | "columnAlias": [ 67 | "o_orderkey" 68 | ], 69 | "columnProjection": [ 70 | { 71 | "selectType": 0, 72 | "value": ["o_orderkey"], 73 | "valueType": [10] 74 | } 75 | ] 76 | } 77 | } -------------------------------------------------------------------------------- /snippet/tpch20/tpch20-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":19, 6 | "workID":1, 7 | "tableName": ["part"], 8 | "tableCol":[ 9 | "p_partkey", 10 | "p_name", 11 | "p_mfgr", 12 | "p_brand", 13 | "p_type", 14 | "p_size", 15 | "p_container", 16 | "p_retailprice", 17 | "p_comment" 18 | ], 19 | "tableFilter":[ 20 | { 21 | "LV": { 22 | "type": [10], 23 | "value": ["p_name"] 24 | }, 25 | "Operator" : 7, 26 | "RV" : { 27 | "type": [9], 28 | "value": ["green%"] 29 | } 30 | } 31 | ], 32 | "tableOffset":[ 33 | 0, 34 | 4, 35 | 59, 36 | 84, 37 | 94, 38 | 119, 39 | 123, 40 | 133, 41 | 140 42 | ], 43 | "tableOfflen":[ 44 | 4, 45 | 55, 46 | 25, 47 | 10, 48 | 25, 49 | 4, 50 | 10, 51 | 7, 52 | 23 53 | ], 54 | "tableDatatype":[ 55 | 3, 56 | 15, 57 | 254, 58 | 254, 59 | 15, 60 | 3, 61 | 254, 62 | 246, 63 | 15 64 | ], 65 | "tableAlias":"ProcessTable19-1", 66 | "columnAlias": [ 67 | "p_partkey" 68 | ], 69 | "columnProjection": [ 70 | { 71 | "selectType": 0, 72 | "value": ["p_partkey"], 73 | "valueType": [10] 74 | } 75 | ], 76 | "pkNum" : 0 77 | } 78 | } -------------------------------------------------------------------------------- /snippet/tpch11/tpch11-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 10, 5 | "workID": 0, 6 | "tableName": [ 7 | "partsupp" 8 | ], 9 | "tableCol":[ 10 | "ps_partkey", 11 | "ps_suppkey", 12 | "ps_availqty", 13 | "ps_supplycost", 14 | "ps_comment" 15 | ], 16 | "tableFilter":[], 17 | "tableOffset": [ 18 | 0, 19 | 4, 20 | 8, 21 | 12, 22 | 19 23 | ], 24 | "tableOfflen": [ 25 | 4, 26 | 4, 27 | 4, 28 | 7, 29 | 199 30 | ], 31 | "tableDatatype": [ 32 | 3, 33 | 3, 34 | 3, 35 | 246, 36 | 15 37 | ], 38 | "tableAlias": "ProcessTable10-0", 39 | "columnAlias": [ 40 | "ProcessTable10-0-c1", 41 | "ps_suppkey", 42 | "ps_partkey" 43 | ], 44 | "columnProjection": [ 45 | { 46 | "selectType": 0, 47 | "value": [ 48 | "ps_supplycost","ps_availqty","*" 49 | ], 50 | "valueType": [ 51 | 10,10,11 52 | ] 53 | }, 54 | { 55 | "selectType": 0, 56 | "value": [ 57 | "ps_suppkey" 58 | ], 59 | "valueType": [ 60 | 10 61 | ] 62 | }, 63 | { 64 | "selectType": 0, 65 | "value": [ 66 | "ps_partkey" 67 | ], 68 | "valueType": [ 69 | 10 70 | ] 71 | } 72 | ], 73 | "pkNum" : 0 74 | } 75 | } -------------------------------------------------------------------------------- /snippet/tpch20/tpch20-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 19, 5 | "workID": 2, 6 | "tableName": ["partsupp"], 7 | "tableCol":[ 8 | "ps_partkey", 9 | "ps_suppkey", 10 | "ps_availqty", 11 | "ps_supplycost", 12 | "ps_comment" 13 | ], 14 | "tableFilter":[], 15 | "tableOffset": [ 16 | 0, 17 | 4, 18 | 8, 19 | 12, 20 | 19 21 | ], 22 | "tableOfflen": [ 23 | 4, 24 | 4, 25 | 4, 26 | 7, 27 | 199 28 | ], 29 | "tableDatatype": [ 30 | 3, 31 | 3, 32 | 3, 33 | 246, 34 | 15 35 | ], 36 | "tableAlias": "ProcessTable19-2", 37 | "columnAlias": [ 38 | "ps_suppkey", 39 | "ps_partkey", 40 | "ps_availqty" 41 | ], 42 | "columnProjection": [ 43 | { 44 | "selectType": 0, 45 | "value": [ 46 | "ps_suppkey" 47 | ], 48 | "valueType": [ 49 | 10 50 | ] 51 | }, 52 | { 53 | "selectType": 0, 54 | "value": [ 55 | "ps_partkey" 56 | ], 57 | "valueType": [ 58 | 10 59 | ] 60 | }, 61 | { 62 | "selectType": 0, 63 | "value": ["ps_availqty"], 64 | "valueType": [10] 65 | } 66 | ], 67 | "pkNum" : 0 68 | } 69 | } -------------------------------------------------------------------------------- /snippet/tpch09/tpch09-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":8, 6 | "workID":4, 7 | "tableName": ["orders"], 8 | "tableCol":[ 9 | "o_orderkey", 10 | "o_custkey", 11 | "o_orderstatus", 12 | "o_totalprice", 13 | "o_orderdate", 14 | "o_orderpriority", 15 | "o_clerk", 16 | "o_shippriority", 17 | "o_comment" 18 | ], 19 | "tableFilter":[], 20 | "tableOffset":[ 21 | 0, 22 | 4, 23 | 8, 24 | 9, 25 | 16, 26 | 19, 27 | 34, 28 | 49, 29 | 53 30 | ], 31 | "tableOfflen":[ 32 | 4, 33 | 4, 34 | 1, 35 | 7, 36 | 3, 37 | 15, 38 | 15, 39 | 4, 40 | 79 41 | ], 42 | "tableDatatype":[ 43 | 3, 44 | 3, 45 | 254, 46 | 246, 47 | 14, 48 | 254, 49 | 254, 50 | 3, 51 | 15 52 | ], 53 | "tableAlias": "ProcessTable8-4", 54 | "columnAlias": [ 55 | "o_year", 56 | "o_orderkey" 57 | ], 58 | "columnProjection": [ 59 | { 60 | "selectType": 0, 61 | "value": [ 62 | "EXTRACT", 63 | "YEAR", 64 | "o_orderdate" 65 | ], 66 | "valueType": [ 67 | 11, 68 | 11, 69 | 10 70 | ] 71 | }, 72 | { 73 | "selectType": 0, 74 | "value": [ 75 | "o_orderkey" 76 | ], 77 | "valueType": [ 78 | 10 79 | ] 80 | } 81 | ], 82 | "pkNum" : 0 83 | } 84 | } -------------------------------------------------------------------------------- /snippet/tpch11/tpch11-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 10, 5 | "workID": 5, 6 | "tableName": [ 7 | "ProcessTable10-0", 8 | "ProcessTable10-1" 9 | ], 10 | "tableCol": [], 11 | "tableFilter": [ 12 | { 13 | "LV": { 14 | "type": [ 15 | 10 16 | ], 17 | "value": [ 18 | "ps_suppkey" 19 | ] 20 | }, 21 | "Operator": 5, 22 | "RV": { 23 | "type": [ 24 | 10 25 | ], 26 | "value": [ 27 | "s_suppkey" 28 | ] 29 | } 30 | } 31 | ], 32 | "tableOffset": [ ], 33 | "tableOfflen": [ ], 34 | "tableDatatype": [ ], 35 | "tableAlias": "ProcessTable10-5", 36 | "columnAlias": [ 37 | "ProcessTable10-5-c1", 38 | "s_nationkey", 39 | "ps_partkey" 40 | ], 41 | "columnProjection": [ 42 | { 43 | "selectType": 0, 44 | "value": [ 45 | "ProcessTable10-0-c1" 46 | ], 47 | "valueType": [ 48 | 10 49 | ] 50 | }, 51 | { 52 | "selectType": 0, 53 | "value": [ 54 | "s_nationkey" 55 | ], 56 | "valueType": [ 57 | 10 58 | ] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": [ 63 | "ps_partkey" 64 | ], 65 | "valueType": [ 66 | 10 67 | ] 68 | } 69 | ] 70 | } 71 | } -------------------------------------------------------------------------------- /snippet/tpch16/tpch16-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 15, 5 | "workID": 0, 6 | "tableName": [ 7 | "supplier" 8 | ], 9 | "tableCol":[ 10 | "s_suppkey", 11 | "s_name", 12 | "s_address", 13 | "s_nationkey", 14 | "s_phone", 15 | "s_acctbal", 16 | "s_comment" 17 | ], 18 | "tableFilter":[ 19 | { 20 | "LV": { 21 | "type": [10], 22 | "value": ["s_comment"] 23 | }, 24 | "Operator" : 7, 25 | "RV" : { 26 | "type": [9], 27 | "value": ["%CUSTOMER%COMPLAINTS%"] 28 | } 29 | } 30 | ], 31 | "tableOffset": [ 32 | 0, 33 | 4, 34 | 29, 35 | 69, 36 | 73, 37 | 88, 38 | 95 39 | ], 40 | "tableOfflen": [ 41 | 4, 42 | 25, 43 | 40, 44 | 4, 45 | 15, 46 | 7, 47 | 101 48 | ], 49 | "tableDatatype": [ 50 | 3, 51 | 254, 52 | 15, 53 | 3, 54 | 254, 55 | 246, 56 | 15 57 | ], 58 | "tableAlias": "ProcessTable15-0", 59 | "columnAlias": [ 60 | "s_suppkey" 61 | ], 62 | "columnProjection": [ 63 | { 64 | "selectType": 0, 65 | "value": [ 66 | "s_suppkey" 67 | ], 68 | "valueType": [ 69 | 10 70 | ] 71 | } 72 | ], 73 | "pkNum" : 0 74 | } 75 | } -------------------------------------------------------------------------------- /snippet/tpch17/tpch17-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 16, 5 | "workID": 2, 6 | "tableName": [ 7 | "ProcessTable16-1", 8 | "ProcessTable16-0" 9 | ], 10 | "tableCol": [], 11 | "tableFilter": [ 12 | { 13 | "LV": { 14 | "type": [ 15 | 10 16 | ], 17 | "value": [ 18 | "p_partkey" 19 | ] 20 | }, 21 | "Operator": 5, 22 | "RV": { 23 | "type": [ 24 | 10 25 | ], 26 | "value": [ 27 | "l_partkey" 28 | ] 29 | } 30 | } 31 | ], 32 | "tableOffset": [], 33 | "tableOfflen": [], 34 | "tableDatatype": [], 35 | "tableAlias": "ProcessTable16-2", 36 | "columnAlias": [ 37 | "l_quantity", 38 | "l_extendedprice", 39 | "p_partkey" 40 | ], 41 | "columnProjection": [ 42 | { 43 | "selectType": 0, 44 | "value": [ 45 | "l_quantity" 46 | ], 47 | "valueType": [ 48 | 10 49 | ] 50 | }, 51 | { 52 | "selectType": 0, 53 | "value": [ 54 | "l_extendedprice" 55 | ], 56 | "valueType": [ 57 | 10 58 | ] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": [ 63 | "p_partkey" 64 | ], 65 | "valueType": [ 66 | 10 67 | ] 68 | } 69 | ] 70 | } 71 | } -------------------------------------------------------------------------------- /snippet/tpch22/tpch22-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": 4 | { 5 | "queryID":21, 6 | "workID":4, 7 | "tableName": ["ProcessTable21-3","ProcessTable21-1"], 8 | "tableCol": [], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["c_acctbal"] 14 | }, 15 | "Operator" : 3, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["ProcessTable21-1.c1"] 19 | } 20 | } 21 | ], 22 | "tableOffset": [ 23 | 0, 24 | 4, 25 | 29, 26 | 69, 27 | 73, 28 | 88, 29 | 95, 30 | 105 31 | ], 32 | "tableOfflen": [ 33 | 4, 34 | 25, 35 | 40, 36 | 4, 37 | 15, 38 | 7, 39 | 10, 40 | 117 41 | ], 42 | "tableDatatype": [ 43 | 3, 44 | 15, 45 | 15, 46 | 3, 47 | 254, 48 | 246, 49 | 254, 50 | 15 51 | ], 52 | "tableAlias": "ProcessTable21-4", 53 | "columnAlias": [ 54 | "c_acctbal", 55 | "c_custkey", 56 | "cntrycode" 57 | ], 58 | "columnProjection": [ 59 | { 60 | "selectType": 0, 61 | "value": ["c_acctbal"], 62 | "valueType": [10] 63 | }, 64 | { 65 | "selectType": 0, 66 | "value": ["c_custkey"], 67 | "valueType": [10] 68 | }, 69 | { 70 | "selectType": 0, 71 | "value": ["cntrycode"], 72 | "valueType": [10] 73 | } 74 | ] 75 | } 76 | } -------------------------------------------------------------------------------- /snippet/tpch20/tpch20-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 19, 5 | "workID": 5, 6 | "tableName": [ 7 | "supplier" 8 | ], 9 | "tableCol":[ 10 | "s_suppkey", 11 | "s_name", 12 | "s_address", 13 | "s_nationkey", 14 | "s_phone", 15 | "s_acctbal", 16 | "s_comment" 17 | ], 18 | "tableFilter":[], 19 | "tableOffset": [ 20 | 0, 21 | 4, 22 | 29, 23 | 69, 24 | 73, 25 | 88, 26 | 95 27 | ], 28 | "tableOfflen": [ 29 | 4, 30 | 25, 31 | 40, 32 | 4, 33 | 15, 34 | 7, 35 | 101 36 | ], 37 | "tableDatatype": [ 38 | 3, 39 | 254, 40 | 15, 41 | 3, 42 | 254, 43 | 246, 44 | 15 45 | ], 46 | "tableAlias": "ProcessTable19-5", 47 | "columnAlias": [ 48 | "s_suppkey", 49 | "s_nationkey", 50 | "s_name", 51 | "s_address" 52 | ], 53 | "columnProjection": [ 54 | { 55 | "selectType": 0, 56 | "value": ["s_suppkey"], 57 | "valueType": [10] 58 | }, 59 | { 60 | "selectType": 0, 61 | "value": ["s_nationkey"], 62 | "valueType": [10] 63 | }, 64 | { 65 | "selectType": 0, 66 | "value": ["s_name"], 67 | "valueType": [10] 68 | }, 69 | { 70 | "selectType": 0, 71 | "value": ["s_address"], 72 | "valueType": [10] 73 | } 74 | ], 75 | "pkNum" : 0 76 | } 77 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-11.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 2, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":11, 7 | "tableName": ["ProcessTable6-10"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["n1.n_name"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [9], 18 | "value": ["JAPAN"] 19 | } 20 | }, 21 | { 22 | "Operator" : 13 23 | }, 24 | { 25 | "LV": { 26 | "type": [10], 27 | "value": ["n2.n_name"] 28 | }, 29 | "Operator" : 5, 30 | "RV" : { 31 | "type": [9], 32 | "value": ["INDIA"] 33 | } 34 | } 35 | ], 36 | "tableOffset":[], 37 | "tableOfflen":[], 38 | "tableDatatype":[], 39 | "tableAlias": "ProcessTable6-11", 40 | "columnAlias": [ 41 | "l_year", 42 | "volume", 43 | "n1.n_name", 44 | "n2.n_name" 45 | ], 46 | "columnProjection": [ 47 | { 48 | "selectType": 0, 49 | "value": ["l_year"], 50 | "valueType": [10] 51 | }, 52 | { 53 | "selectType": 0, 54 | "value": ["volume"], 55 | "valueType": [10] 56 | }, 57 | { 58 | "selectType": 0, 59 | "value": ["n1.n_name"], 60 | "valueType": [10] 61 | }, 62 | { 63 | "selectType": 0, 64 | "value": ["n2.n_name"], 65 | "valueType": [10] 66 | } 67 | ] 68 | } 69 | 70 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-12.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 2, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":12, 7 | "tableName": ["ProcessTable6-10"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["n1.n_name"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [9], 18 | "value": ["INDIA"] 19 | } 20 | }, 21 | { 22 | "Operator" : 13 23 | }, 24 | { 25 | "LV": { 26 | "type": [10], 27 | "value": ["n2.n_name"] 28 | }, 29 | "Operator" : 5, 30 | "RV" : { 31 | "type": [9], 32 | "value": ["JAPAN"] 33 | } 34 | } 35 | ], 36 | "tableOffset":[], 37 | "tableOfflen":[], 38 | "tableDatatype":[], 39 | "tableAlias": "ProcessTable6-12", 40 | "columnAlias": [ 41 | "l_year", 42 | "volume", 43 | "n1.n_name", 44 | "n2.n_name" 45 | ], 46 | "columnProjection": [ 47 | { 48 | "selectType": 0, 49 | "value": ["l_year"], 50 | "valueType": [10] 51 | }, 52 | { 53 | "selectType": 0, 54 | "value": ["volume"], 55 | "valueType": [10] 56 | }, 57 | { 58 | "selectType": 0, 59 | "value": ["n1.n_name"], 60 | "valueType": [10] 61 | }, 62 | { 63 | "selectType": 0, 64 | "value": ["n2.n_name"], 65 | "valueType": [10] 66 | } 67 | ] 68 | } 69 | 70 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":4, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[ 15 | { 16 | "LV": { 17 | "type": [10], 18 | "value": ["n_name"] 19 | }, 20 | "Operator" : 5, 21 | "RV" : { 22 | "type": [9], 23 | "value": ["JAPAN"] 24 | } 25 | }, 26 | { 27 | "Operator" : 14 28 | }, 29 | { 30 | "LV": { 31 | "type": [10], 32 | "value": ["n_name"] 33 | }, 34 | "Operator" : 5, 35 | "RV" : { 36 | "type": [9], 37 | "value": ["INDIA"] 38 | } 39 | } 40 | ], 41 | "tableOffset":[ 42 | 0, 43 | 4, 44 | 29, 45 | 33 46 | ], 47 | "tableOfflen":[ 48 | 4, 49 | 25, 50 | 4, 51 | 152 52 | ], 53 | "tableDatatype":[ 54 | 3, 55 | 254, 56 | 3, 57 | 15 58 | ], 59 | "tableAlias": "n1", 60 | "columnAlias": [ 61 | "n1.n_name", 62 | "n1.n_nationkey" 63 | ], 64 | "columnProjection": [ 65 | { 66 | "selectType": 0, 67 | "value": ["n_name"], 68 | "valueType": [10] 69 | }, 70 | { 71 | "selectType": 0, 72 | "value": ["n_nationkey"], 73 | "valueType": [10] 74 | } 75 | ], 76 | "pkNum" : 0 77 | } 78 | } -------------------------------------------------------------------------------- /snippet/tpch07/tpch07-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":6, 6 | "workID":5, 7 | "tableName": ["nation"], 8 | "tableCol":[ 9 | "n_nationkey", 10 | "n_name", 11 | "n_regionkey", 12 | "n_comment" 13 | ], 14 | "tableFilter":[ 15 | { 16 | "LV": { 17 | "type": [10], 18 | "value": ["n_name"] 19 | }, 20 | "Operator" : 5, 21 | "RV" : { 22 | "type": [9], 23 | "value": ["JAPAN"] 24 | } 25 | }, 26 | { 27 | "Operator" : 14 28 | }, 29 | { 30 | "LV": { 31 | "type": [10], 32 | "value": ["n_name"] 33 | }, 34 | "Operator" : 5, 35 | "RV" : { 36 | "type": [9], 37 | "value": ["INDIA"] 38 | } 39 | } 40 | ], 41 | "tableOffset":[ 42 | 0, 43 | 4, 44 | 29, 45 | 33 46 | ], 47 | "tableOfflen":[ 48 | 4, 49 | 25, 50 | 4, 51 | 152 52 | ], 53 | "tableDatatype":[ 54 | 3, 55 | 254, 56 | 3, 57 | 15 58 | ], 59 | "tableAlias": "n2", 60 | "columnAlias": [ 61 | "n2.n_name", 62 | "n2.n_nationkey" 63 | ], 64 | "columnProjection": [ 65 | { 66 | "selectType": 0, 67 | "value": ["n_name"], 68 | "valueType": [10] 69 | }, 70 | { 71 | "selectType": 0, 72 | "value": ["n_nationkey"], 73 | "valueType": [10] 74 | } 75 | ], 76 | "pkNum" : 0 77 | } 78 | } -------------------------------------------------------------------------------- /snippet/tpch09/tpch09-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":8, 6 | "workID":0, 7 | "tableName": ["part"], 8 | "tableCol":[ 9 | "p_partkey", 10 | "p_name", 11 | "p_mfgr", 12 | "p_brand", 13 | "p_type", 14 | "p_size", 15 | "p_container", 16 | "p_retailprice", 17 | "p_comment" 18 | ], 19 | "tableFilter":[ 20 | { 21 | "LV": { 22 | "type": [ 23 | 10 24 | ], 25 | "value": [ 26 | "p_name" 27 | ] 28 | }, 29 | "Operator": 7, 30 | "RV": { 31 | "type": [ 32 | 9 33 | ], 34 | "value": [ 35 | "%dim%" 36 | ] 37 | } 38 | } 39 | ], 40 | "tableOffset":[ 41 | 0, 42 | 4, 43 | 59, 44 | 84, 45 | 94, 46 | 119, 47 | 123, 48 | 133, 49 | 140 50 | ], 51 | "tableOfflen":[ 52 | 4, 53 | 55, 54 | 25, 55 | 10, 56 | 25, 57 | 4, 58 | 10, 59 | 7, 60 | 23 61 | ], 62 | "tableDatatype":[ 63 | 3, 64 | 15, 65 | 254, 66 | 254, 67 | 15, 68 | 3, 69 | 254, 70 | 246, 71 | 15 72 | ], 73 | "tableAlias": "ProcessTable8-0", 74 | "columnAlias": [ 75 | "p_partkey" 76 | ], 77 | "columnProjection": [ 78 | { 79 | "selectType": 0, 80 | "value": [ 81 | "p_partkey" 82 | ], 83 | "valueType": [ 84 | 10 85 | ] 86 | } 87 | ], 88 | "pkNum" : 0 89 | } 90 | } -------------------------------------------------------------------------------- /snippet/tpch08/tpch08-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":7, 6 | "workID":0, 7 | "tableName": ["part"], 8 | "tableCol":[ 9 | "p_partkey", 10 | "p_name", 11 | "p_mfgr", 12 | "p_brand", 13 | "p_type", 14 | "p_size", 15 | "p_container", 16 | "p_retailprice", 17 | "p_comment" 18 | ], 19 | "tableFilter":[ 20 | { 21 | "LV": { 22 | "type": [ 23 | 10 24 | ], 25 | "value": [ 26 | "p_type" 27 | ] 28 | }, 29 | "Operator": 5, 30 | "RV": { 31 | "type": [ 32 | 9 33 | ], 34 | "value": [ 35 | "SMALL PLATED COPPER" 36 | ] 37 | } 38 | } 39 | ], 40 | "tableOffset":[ 41 | 0, 42 | 4, 43 | 59, 44 | 84, 45 | 94, 46 | 119, 47 | 123, 48 | 133, 49 | 140 50 | ], 51 | "tableOfflen":[ 52 | 4, 53 | 55, 54 | 25, 55 | 10, 56 | 25, 57 | 4, 58 | 10, 59 | 7, 60 | 23 61 | ], 62 | "tableDatatype":[ 63 | 3, 64 | 15, 65 | 254, 66 | 254, 67 | 15, 68 | 3, 69 | 254, 70 | 246, 71 | 15 72 | ], 73 | "tableAlias": "ProcessTable7-0", 74 | "columnAlias": [ 75 | "p_partkey" 76 | ], 77 | "columnProjection": [ 78 | { 79 | "selectType": 0, 80 | "value": [ 81 | "p_partkey" 82 | ], 83 | "valueType": [ 84 | 10 85 | ] 86 | } 87 | ], 88 | "pkNum" : 0 89 | } 90 | } -------------------------------------------------------------------------------- /snippet/tpch21/tpch21-9.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 10, 3 | "snippet": 4 | { 5 | "queryID":20, 6 | "workID":9, 7 | "tableName": ["ProcessTable20-8","l2"], 8 | "tableCol":[], 9 | "tableFilter":[], 10 | "dependency":{ 11 | "dependencyProjection":[], 12 | "dependencyFilter" : [ 13 | { 14 | "LV": { 15 | "type": [10], 16 | "value": ["l1.l_orderkey"] 17 | }, 18 | "Operator" : 5, 19 | "RV" : { 20 | "type": [10], 21 | "value": ["l2.l_orderkey"] 22 | } 23 | }, 24 | { 25 | "Operator" : 13 26 | }, 27 | { 28 | "LV": { 29 | "type": [10], 30 | "value": ["l1.l_suppkey"] 31 | }, 32 | "Operator" : 6, 33 | "RV" : { 34 | "type": [10], 35 | "value": ["l2.l_suppkey"] 36 | } 37 | } 38 | ] 39 | }, 40 | "tableOffset":[], 41 | "tableOfflen":[], 42 | "tableDatatype":[], 43 | "tableAlias": "ProcessTable20-9", 44 | "columnAlias": [ 45 | "s_name", 46 | "l1.l_orderkey", 47 | "l1.l_suppkey" 48 | ], 49 | "columnProjection": [ 50 | { 51 | "selectType": 0, 52 | "value": ["s_name"], 53 | "valueType": [10] 54 | }, 55 | { 56 | "selectType": 0, 57 | "value": ["l1.l_orderkey"], 58 | "valueType": [10] 59 | }, 60 | { 61 | "selectType": 0, 62 | "value": ["l1.l_suppkey"], 63 | "valueType": [10] 64 | } 65 | ] 66 | } 67 | 68 | } -------------------------------------------------------------------------------- /CMakeFiles/KETI_Validator.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | 2 | # Consider dependencies only in project. 3 | set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF) 4 | 5 | # The set of languages for which implicit dependencies are needed: 6 | set(CMAKE_DEPENDS_LANGUAGES 7 | ) 8 | 9 | # The set of dependency files which are needed: 10 | set(CMAKE_DEPENDS_DEPENDENCY_FILES 11 | "/root/workspace/Simulator-Instance/CSDValidator.cpp" "CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o.d" 12 | "/root/workspace/Simulator-Instance/HistogramTable.cpp" "CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o.d" 13 | "/root/workspace/Simulator-Instance/QueryParser.cpp" "CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o.d" 14 | "/root/workspace/Simulator-Instance/RestHandler.cpp" "CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o.d" 15 | "/root/workspace/Simulator-Instance/SSDValidator.cpp" "CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o.d" 16 | "/root/workspace/Simulator-Instance/StorageValidator.cpp" "CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o.d" 17 | "/root/workspace/Simulator-Instance/main.cpp" "CMakeFiles/KETI_Validator.dir/main.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/main.cpp.o.d" 18 | ) 19 | 20 | # Targets to which this target links. 21 | set(CMAKE_TARGET_LINKED_INFO_FILES 22 | ) 23 | 24 | # Fortran module output directory. 25 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 26 | -------------------------------------------------------------------------------- /snippet/tpch18/tpch18-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 17, 5 | "workID": 6, 6 | "tableName": [ 7 | "ProcessTable17-5", "ProcessTable17-0" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [ 11 | { 12 | "LV": { 13 | "type": [10], 14 | "value": ["o_orderkey"] 15 | }, 16 | "Operator" : 5, 17 | "RV" : { 18 | "type": [10], 19 | "value": ["l_orderkey"] 20 | } 21 | } 22 | ], 23 | "tableOffset": [], 24 | "tableOfflen": [], 25 | "tableDatatype": [], 26 | "tableAlias": "ProcessTable17-6", 27 | "columnAlias": [ 28 | "c_name", 29 | "c_custkey", 30 | "o_orderkey", 31 | "o_orderdate", 32 | "o_totalprice", 33 | "l_quantity" 34 | ], 35 | "columnProjection": [ 36 | { 37 | "selectType": 0, 38 | "value": ["c_name"], 39 | "valueType": [10] 40 | }, 41 | { 42 | "selectType": 0, 43 | "value": ["c_custkey"], 44 | "valueType": [10] 45 | }, 46 | { 47 | "selectType": 0, 48 | "value": ["o_orderkey"], 49 | "valueType": [10] 50 | }, 51 | { 52 | "selectType": 0, 53 | "value": ["o_orderdate"], 54 | "valueType": [10] 55 | }, 56 | { 57 | "selectType": 0, 58 | "value": ["o_totalprice"], 59 | "valueType": [10] 60 | }, 61 | { 62 | "selectType": 0, 63 | "value": ["l_quantity"], 64 | "valueType": [10] 65 | } 66 | ] 67 | } 68 | } -------------------------------------------------------------------------------- /snippet/tpch12/tpch12-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 3, 3 | "snippet": { 4 | "queryID": 11, 5 | "workID": 2, 6 | "tableName": [ 7 | "ProcessTable11-0", 8 | "ProcessTable11-1" 9 | ], 10 | "tableCol": [ ], 11 | "tableFilter": [ 12 | { 13 | "LV": { 14 | "type": [ 15 | 10 16 | ], 17 | "value": [ 18 | "o_orderkey" 19 | ] 20 | }, 21 | "Operator": 5, 22 | "RV": { 23 | "type": [ 24 | 10 25 | ], 26 | "value": [ 27 | "l_orderkey" 28 | ] 29 | } 30 | } 31 | ], 32 | "tableOffset": [ ], 33 | "tableOfflen": [ ], 34 | "tableDatatype": [ ], 35 | "tableAlias": "ResultTable11", 36 | "columnAlias": [ 37 | "l_shipmode", 38 | "high_line_count", 39 | "low_line_count" 40 | ], 41 | "columnProjection": [ 42 | { 43 | "selectType": 0, 44 | "value": [ 45 | "l_shipmode" 46 | ], 47 | "valueType": [ 48 | 10 49 | ] 50 | }, 51 | { 52 | "selectType": 1, 53 | "value": [ 54 | "high_line_count" 55 | ], 56 | "valueType": [ 57 | 10 58 | ] 59 | }, 60 | { 61 | "selectType": 1, 62 | "value": [ 63 | "low_line_count" 64 | ], 65 | "valueType": [ 66 | 10 67 | ] 68 | } 69 | ], 70 | "groupBy": [ 71 | "l_shipmode" 72 | ], 73 | "orderBy": { 74 | "ascending" : [0], 75 | "columnName" : ["l_shipmode"] 76 | } 77 | } 78 | } -------------------------------------------------------------------------------- /snippet/tpch15/tpch15-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 14, 5 | "workID": 2, 6 | "tableName": [ 7 | "supplier" 8 | ], 9 | "tableCol": [ 10 | "s_suppkey", 11 | "s_name", 12 | "s_address", 13 | "s_nationkey", 14 | "s_phone", 15 | "s_acctbal", 16 | "s_comment" 17 | ], 18 | "tableFilter": [], 19 | "tableOffset": [ 20 | 0, 21 | 4, 22 | 29, 23 | 69, 24 | 73, 25 | 88, 26 | 95 27 | ], 28 | "tableOfflen": [ 29 | 4, 30 | 25, 31 | 40, 32 | 4, 33 | 15, 34 | 7, 35 | 101 36 | ], 37 | "tableDatatype": [ 38 | 3, 39 | 254, 40 | 15, 41 | 3, 42 | 254, 43 | 246, 44 | 15 45 | ], 46 | "tableAlias": "ProcessTable14-2", 47 | "columnAlias": [ 48 | "s_suppkey", 49 | "s_name", 50 | "s_address", 51 | "s_phone" 52 | ], 53 | "columnProjection": [ 54 | { 55 | "selectType": 0, 56 | "value": [ 57 | "s_suppkey" 58 | ], 59 | "valueType": [ 60 | 10 61 | ] 62 | }, 63 | { 64 | "selectType": 0, 65 | "value": [ 66 | "s_name" 67 | ], 68 | "valueType": [ 69 | 10 70 | ] 71 | }, 72 | { 73 | "selectType": 0, 74 | "value": [ 75 | "s_address" 76 | ], 77 | "valueType": [ 78 | 10 79 | ] 80 | }, 81 | { 82 | "selectType": 0, 83 | "value": [ 84 | "s_phone" 85 | ], 86 | "valueType": [ 87 | 10 88 | ] 89 | } 90 | ], 91 | "pkNum" : 0 92 | } 93 | } -------------------------------------------------------------------------------- /snippet/tpch18/tpch18-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 1, 3 | "snippet": { 4 | "queryID": 17, 5 | "workID": 7, 6 | "tableName": [ 7 | "ProcessTable17-6" 8 | ], 9 | "tableCol": [], 10 | "tableFilter": [], 11 | "tableOffset": [], 12 | "tableOfflen": [], 13 | "tableDatatype": [], 14 | "tableAlias":"ResultTable17", 15 | "columnAlias": [ 16 | "c_name", 17 | "c_custkey", 18 | "o_orderkey", 19 | "o_orderdate", 20 | "o_totalprice", 21 | "Sum(l_quantity)" 22 | ], 23 | "columnProjection": [ 24 | { 25 | "selectType": 0, 26 | "value": ["c_name"], 27 | "valueType": [10] 28 | }, 29 | { 30 | "selectType": 0, 31 | "value": ["c_custkey"], 32 | "valueType": [10] 33 | }, 34 | { 35 | "selectType": 0, 36 | "value": ["o_orderkey"], 37 | "valueType": [10] 38 | }, 39 | { 40 | "selectType": 0, 41 | "value": ["o_orderdate"], 42 | "valueType": [10] 43 | }, 44 | { 45 | "selectType": 0, 46 | "value": ["o_totalprice"], 47 | "valueType": [10] 48 | }, 49 | { 50 | "selectType": 1, 51 | "value": ["l_quantity"], 52 | "valueType": [10] 53 | } 54 | ], 55 | "groupBy": [ 56 | "c_name", 57 | "c_custkey", 58 | "o_orderkey", 59 | "o_orderdate", 60 | "o_totalprice" 61 | ], 62 | "orderBy": { 63 | "ascending" : [1,0], 64 | "columnName" : ["o_totalprice","o_orderdate"] 65 | }, 66 | "limit" : { 67 | "offset" : 0, 68 | "length" : 100 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /snippet/tpch18/tpch18-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 17, 5 | "workID": 3, 6 | "tableName": [ 7 | "orders" 8 | ], 9 | "tableCol":[ 10 | "o_orderkey", 11 | "o_custkey", 12 | "o_orderstatus", 13 | "o_totalprice", 14 | "o_orderdate", 15 | "o_orderpriority", 16 | "o_clerk", 17 | "o_shippriority", 18 | "o_comment" 19 | ], 20 | "tableFilter":[], 21 | "tableOffset":[ 22 | 0, 23 | 4, 24 | 8, 25 | 9, 26 | 16, 27 | 19, 28 | 34, 29 | 49, 30 | 53 31 | ], 32 | "tableOfflen":[ 33 | 4, 34 | 4, 35 | 1, 36 | 7, 37 | 3, 38 | 15, 39 | 15, 40 | 4, 41 | 79 42 | ], 43 | "tableDatatype":[ 44 | 3, 45 | 3, 46 | 254, 47 | 246, 48 | 14, 49 | 254, 50 | 254, 51 | 3, 52 | 15 53 | ], 54 | "tableAlias": "ProcessTable17-3", 55 | "columnAlias": [ 56 | "o_orderkey", 57 | "o_orderdate", 58 | "o_totalprice", 59 | "o_custkey" 60 | ], 61 | "columnProjection": [ 62 | { 63 | "selectType": 0, 64 | "value": ["o_orderkey"], 65 | "valueType": [10] 66 | }, 67 | { 68 | "selectType": 0, 69 | "value": ["o_orderdate"], 70 | "valueType": [10] 71 | }, 72 | { 73 | "selectType": 0, 74 | "value": ["o_totalprice"], 75 | "valueType": [10] 76 | }, 77 | { 78 | "selectType": 0, 79 | "value": ["o_custkey"], 80 | "valueType": [10] 81 | } 82 | ], 83 | "pkNum" : 0 84 | } 85 | } -------------------------------------------------------------------------------- /snippet/tpch21/tpch21-10.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 10, 3 | "snippet": 4 | { 5 | "queryID":20, 6 | "workID":10, 7 | "tableName": ["ProcessTable20-9","l3"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "Operator" : 12 12 | } 13 | ], 14 | "dependency":{ 15 | "dependencyProjection":[], 16 | "dependencyFilter" : [ 17 | { 18 | "LV": { 19 | "type": [10], 20 | "value": ["l1.l_orderkey"] 21 | }, 22 | "Operator" : 5, 23 | "RV" : { 24 | "type": [10], 25 | "value": ["l3.l_orderkey"] 26 | } 27 | }, 28 | { 29 | "Operator" : 13 30 | }, 31 | { 32 | "LV": { 33 | "type": [10], 34 | "value": ["l1.l_suppkey"] 35 | }, 36 | "Operator" : 6, 37 | "RV" : { 38 | "type": [10], 39 | "value": ["l3.l_suppkey"] 40 | } 41 | } 42 | ] 43 | }, 44 | "tableOffset":[], 45 | "tableOfflen":[], 46 | "tableDatatype":[], 47 | "tableAlias": "ResultTable20", 48 | "columnAlias": [ 49 | "s_name", 50 | "numwait" 51 | ], 52 | "columnProjection": [ 53 | { 54 | "selectType": 0, 55 | "value": ["s_name"], 56 | "valueType": [10] 57 | }, 58 | { 59 | "selectType": 4, 60 | "value": [], 61 | "valueType": [] 62 | } 63 | ], 64 | "groupBy": ["s_name"], 65 | "orderBy": { 66 | "ascending" : [1,0], 67 | "columnName" : ["numwait","s_name"] 68 | }, 69 | "limit" : { 70 | "offset" : 0, 71 | "length" : 200 72 | } 73 | } 74 | 75 | } -------------------------------------------------------------------------------- /snippet/tpch20/tpch20-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 9, 3 | "snippet": 4 | { 5 | "queryID":19, 6 | "workID":4, 7 | "tableName": ["ProcessTable19-3","ProcessTable19-0"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["ps_availqty"] 14 | }, 15 | "Operator" : 3, 16 | "RV" : { 17 | "type": [], 18 | "value": [] 19 | } 20 | } 21 | ], 22 | "dependency":{ 23 | "dependencyProjection":[ 24 | { 25 | "selectType": 1, 26 | "value": ["ProcessTable19-0-c1"], 27 | "valueType": [10] 28 | } 29 | ], 30 | "dependencyFilter" : [ 31 | { 32 | "LV": { 33 | "type": [10], 34 | "value": ["ps_partkey"] 35 | }, 36 | "Operator" : 5, 37 | "RV" : { 38 | "type": [10], 39 | "value": ["l_partkey"] 40 | } 41 | }, 42 | { 43 | "Operator" : 13 44 | }, 45 | { 46 | "LV": { 47 | "type": [10], 48 | "value": ["ps_suppkey"] 49 | }, 50 | "Operator" : 5, 51 | "RV" : { 52 | "type": [10], 53 | "value": ["l_suppkey"] 54 | } 55 | } 56 | ] 57 | }, 58 | "tableOffset":[], 59 | "tableOfflen":[], 60 | "tableDatatype":[], 61 | "blockList":[], 62 | "tableAlias": "ProcessTable19-4", 63 | "columnAlias": [ 64 | "ProcessTable19-4-c1" 65 | ], 66 | "columnProjection": [ 67 | { 68 | "selectType": 0, 69 | "value": ["ps_suppkey"], 70 | "valueType": [10] 71 | } 72 | ] 73 | } 74 | } -------------------------------------------------------------------------------- /cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /root/workspace/Simulator-Instance 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | # Set default install directory permissions. 41 | if(NOT DEFINED CMAKE_OBJDUMP) 42 | set(CMAKE_OBJDUMP "/usr/bin/objdump") 43 | endif() 44 | 45 | if(CMAKE_INSTALL_COMPONENT) 46 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 47 | else() 48 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 49 | endif() 50 | 51 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 52 | "${CMAKE_INSTALL_MANIFEST_FILES}") 53 | file(WRITE "/root/workspace/Simulator-Instance/${CMAKE_INSTALL_MANIFEST}" 54 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 55 | -------------------------------------------------------------------------------- /cmake/build/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /root/workspace/keti/Validator-Instance 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | # Set default install directory permissions. 41 | if(NOT DEFINED CMAKE_OBJDUMP) 42 | set(CMAKE_OBJDUMP "/usr/bin/objdump") 43 | endif() 44 | 45 | if(CMAKE_INSTALL_COMPONENT) 46 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 47 | else() 48 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 49 | endif() 50 | 51 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 52 | "${CMAKE_INSTALL_MANIFEST_FILES}") 53 | file(WRITE "/root/workspace/keti/Validator-Instance/cmake/build/${CMAKE_INSTALL_MANIFEST}" 54 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 55 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | 2 | # Consider dependencies only in project. 3 | set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF) 4 | 5 | # The set of languages for which implicit dependencies are needed: 6 | set(CMAKE_DEPENDS_LANGUAGES 7 | ) 8 | 9 | # The set of dependency files which are needed: 10 | set(CMAKE_DEPENDS_DEPENDENCY_FILES 11 | "/root/workspace/keti/Validator-Instance/CSDValidator.cpp" "CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o.d" 12 | "/root/workspace/keti/Validator-Instance/HistogramTable.cpp" "CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o.d" 13 | "/root/workspace/keti/Validator-Instance/QEMUHandler.cpp" "CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o.d" 14 | "/root/workspace/keti/Validator-Instance/QueryParser.cpp" "CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o.d" 15 | "/root/workspace/keti/Validator-Instance/RestHandler.cpp" "CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o.d" 16 | "/root/workspace/keti/Validator-Instance/SSDValidator.cpp" "CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o.d" 17 | "/root/workspace/keti/Validator-Instance/StorageValidator.cpp" "CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o.d" 18 | "/root/workspace/keti/Validator-Instance/main.cpp" "CMakeFiles/KETI_Validator.dir/main.cpp.o" "gcc" "CMakeFiles/KETI_Validator.dir/main.cpp.o.d" 19 | ) 20 | 21 | # Targets to which this target links. 22 | set(CMAKE_TARGET_LINKED_INFO_FILES 23 | ) 24 | 25 | # Fortran module output directory. 26 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 27 | -------------------------------------------------------------------------------- /snippet/tpch02/tpch02-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":1, 6 | "workID":5, 7 | "tableName": ["ProcessTable1-1","ProcessTable1-0"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_suppkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["ps_suppkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable1-5", 26 | "columnAlias": [ 27 | "s_acctbal", 28 | "s_name", 29 | "s_address", 30 | "s_phone", 31 | "s_comment", 32 | "s_nationkey", 33 | "ps_partkey", 34 | "ps_supplycost" 35 | ], 36 | "columnProjection": [ 37 | { 38 | "selectType": 0, 39 | "value": ["s_acctbal"], 40 | "valueType": [10] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": ["s_name"], 45 | "valueType": [10] 46 | }, 47 | { 48 | "selectType": 0, 49 | "value": ["s_address"], 50 | "valueType": [10] 51 | }, 52 | { 53 | "selectType": 0, 54 | "value": ["s_phone"], 55 | "valueType": [10] 56 | }, 57 | { 58 | "selectType": 0, 59 | "value": ["s_comment"], 60 | "valueType": [10] 61 | }, 62 | { 63 | "selectType": 0, 64 | "value": ["s_nationkey"], 65 | "valueType": [10] 66 | }, 67 | { 68 | "selectType": 0, 69 | "value": ["ps_partkey"], 70 | "valueType": [10] 71 | }, 72 | { 73 | "selectType": 0, 74 | "value": ["ps_supplycost"], 75 | "valueType": [10] 76 | } 77 | ] 78 | } 79 | } -------------------------------------------------------------------------------- /snippet/tpch02/tpch02-8.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":1, 6 | "workID":8, 7 | "tableName": ["ProcessTable1-1","ProcessTable1-0"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["s_suppkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["ps_suppkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable1-8", 26 | "columnAlias": [ 27 | "s_acctbal", 28 | "s_name", 29 | "s_address", 30 | "s_phone", 31 | "s_comment", 32 | "s_nationkey", 33 | "ps_partkey", 34 | "ps_supplycost" 35 | ], 36 | "columnProjection": [ 37 | { 38 | "selectType": 0, 39 | "value": ["s_acctbal"], 40 | "valueType": [10] 41 | }, 42 | { 43 | "selectType": 0, 44 | "value": ["s_name"], 45 | "valueType": [10] 46 | }, 47 | { 48 | "selectType": 0, 49 | "value": ["s_address"], 50 | "valueType": [10] 51 | }, 52 | { 53 | "selectType": 0, 54 | "value": ["s_phone"], 55 | "valueType": [10] 56 | }, 57 | { 58 | "selectType": 0, 59 | "value": ["s_comment"], 60 | "valueType": [10] 61 | }, 62 | { 63 | "selectType": 0, 64 | "value": ["s_nationkey"], 65 | "valueType": [10] 66 | }, 67 | { 68 | "selectType": 0, 69 | "value": ["ps_partkey"], 70 | "valueType": [10] 71 | }, 72 | { 73 | "selectType": 0, 74 | "value": ["ps_supplycost"], 75 | "valueType": [10] 76 | } 77 | ] 78 | } 79 | } -------------------------------------------------------------------------------- /snippet/tpch13/tpch13-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 12, 5 | "workID": 0, 6 | "tableName": [ 7 | "orders" 8 | ], 9 | "tableCol":[ 10 | "o_orderkey", 11 | "o_custkey", 12 | "o_orderstatus", 13 | "o_totalprice", 14 | "o_orderdate", 15 | "o_orderpriority", 16 | "o_clerk", 17 | "o_shippriority", 18 | "o_comment" 19 | ], 20 | "tableFilter": [ 21 | { 22 | "Operator": 12 23 | }, 24 | { 25 | "LV": { 26 | "type": [ 27 | 10 28 | ], 29 | "value": [ 30 | "o_comment" 31 | ] 32 | }, 33 | "Operator": 7, 34 | "RV": { 35 | "type": [ 36 | 9 37 | ], 38 | "value": [ 39 | "%pending%deposits%" 40 | ] 41 | } 42 | } 43 | ], 44 | "tableOffset":[ 45 | 0, 46 | 4, 47 | 8, 48 | 9, 49 | 16, 50 | 19, 51 | 34, 52 | 49, 53 | 53 54 | ], 55 | "tableOfflen":[ 56 | 4, 57 | 4, 58 | 1, 59 | 7, 60 | 3, 61 | 15, 62 | 15, 63 | 4, 64 | 79 65 | ], 66 | "tableDatatype":[ 67 | 3, 68 | 3, 69 | 254, 70 | 246, 71 | 14, 72 | 254, 73 | 254, 74 | 3, 75 | 15 76 | ], 77 | "tableAlias": "ProcessTable12-0", 78 | "columnAlias": [ 79 | "o_custkey", 80 | "o_orderkey" 81 | ], 82 | "columnProjection": [ 83 | { 84 | "selectType": 0, 85 | "value": ["o_custkey"], 86 | "valueType": [10] 87 | }, 88 | { 89 | "selectType": 0, 90 | "value": ["o_orderkey"], 91 | "valueType": [10] 92 | } 93 | ], 94 | "pkNum" : 0 95 | } 96 | } -------------------------------------------------------------------------------- /snippet/tpch17/tpch17-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 16, 5 | "workID": 1, 6 | "tableName": [ 7 | "part" 8 | ], 9 | "tableCol":[ 10 | "p_partkey", 11 | "p_name", 12 | "p_mfgr", 13 | "p_brand", 14 | "p_type", 15 | "p_size", 16 | "p_container", 17 | "p_retailprice", 18 | "p_comment" 19 | ], 20 | "tableFilter": [ 21 | { 22 | "LV": { 23 | "type": [10], 24 | "value": ["p_brand"] 25 | }, 26 | "Operator" : 5, 27 | "RV" : { 28 | "type": [9], 29 | "value": ["Brand#44"] 30 | } 31 | }, 32 | { 33 | "Operator" : 13 34 | }, 35 | { 36 | "LV": { 37 | "type": [10], 38 | "value": ["p_container"] 39 | }, 40 | "Operator" : 5, 41 | "RV" : { 42 | "type": [9], 43 | "value": ["WRAP PKG"] 44 | } 45 | } 46 | ], 47 | "tableOffset":[ 48 | 0, 49 | 4, 50 | 59, 51 | 84, 52 | 94, 53 | 119, 54 | 123, 55 | 133, 56 | 140 57 | ], 58 | "tableOfflen":[ 59 | 4, 60 | 55, 61 | 25, 62 | 10, 63 | 25, 64 | 4, 65 | 10, 66 | 7, 67 | 23 68 | ], 69 | "tableDatatype":[ 70 | 3, 71 | 15, 72 | 254, 73 | 254, 74 | 15, 75 | 3, 76 | 254, 77 | 246, 78 | 15 79 | ], 80 | "tableAlias": "ProcessTable16-1", 81 | "columnAlias": [ 82 | "p_partkey" 83 | ], 84 | "columnProjection": [ 85 | { 86 | "selectType": 0, 87 | "value": [ 88 | "p_partkey" 89 | ], 90 | "valueType": [ 91 | 10 92 | ] 93 | } 94 | ], 95 | "pkNum" : 0 96 | } 97 | } -------------------------------------------------------------------------------- /snippet/tpch12/tpch12-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 11, 5 | "workID": 0, 6 | "tableName": [ 7 | "orders" 8 | ], 9 | "tableCol":[ 10 | "o_orderkey", 11 | "o_custkey", 12 | "o_orderstatus", 13 | "o_totalprice", 14 | "o_orderdate", 15 | "o_orderpriority", 16 | "o_clerk", 17 | "o_shippriority", 18 | "o_comment" 19 | ], 20 | "tableFilter":[], 21 | "tableOffset":[ 22 | 0, 23 | 4, 24 | 8, 25 | 9, 26 | 16, 27 | 19, 28 | 34, 29 | 49, 30 | 53 31 | ], 32 | "tableOfflen":[ 33 | 4, 34 | 4, 35 | 1, 36 | 7, 37 | 3, 38 | 15, 39 | 15, 40 | 4, 41 | 79 42 | ], 43 | "tableDatatype":[ 44 | 3, 45 | 3, 46 | 254, 47 | 246, 48 | 14, 49 | 254, 50 | 254, 51 | 3, 52 | 15 53 | ], 54 | "tableAlias": "ProcessTable11-0", 55 | "columnAlias": [ 56 | "o_orderkey", 57 | "high_line_count", 58 | "low_line_count" 59 | ], 60 | "columnProjection": [ 61 | { 62 | "selectType": 0, 63 | "value": [ 64 | "o_orderkey" 65 | ], 66 | "valueType": [ 67 | 10 68 | ] 69 | }, 70 | { 71 | "selectType": 0, 72 | "value": ["CASE","WHEN","o_orderpriority","1-urgent","=","OR","o_orderpriority","2-high","=","THEN","1","ELSE","0","END"], 73 | "valueType": [11,11,10,9,11,11,10,9,11,11,2,11,2,11] 74 | }, 75 | { 76 | "selectType": 0, 77 | "value": ["CASE","WHEN","o_orderpriority","1-urgent","<>","AND","o_orderpriority","2-high","<>","THEN","1","ELSE","0","END"], 78 | "valueType": [11,11,10,9,11,11,10,9,11,11,2,11,2,11] 79 | } 80 | ], 81 | "pkNum" : 0 82 | } 83 | } -------------------------------------------------------------------------------- /snippet/tpch22/tpch22-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":21, 6 | "workID":0, 7 | "tableName": ["customer"], 8 | "tableCol": [ 9 | "c_custkey", 10 | "c_name", 11 | "c_address", 12 | "c_nationkey", 13 | "c_phone", 14 | "c_acctbal", 15 | "c_mktsegment", 16 | "c_comment" 17 | ], 18 | "tableFilter":[ 19 | { 20 | "LV": { 21 | "type": [10], 22 | "value": ["c_acctbal"] 23 | }, 24 | "Operator" : 3, 25 | "RV" : { 26 | "type": [6], 27 | "value": ["0.0"] 28 | } 29 | }, 30 | { 31 | "Operator" : 13 32 | }, 33 | { 34 | "LV": { 35 | "type": [10], 36 | "value": ["c_phone"] 37 | }, 38 | "Operator" : 16, 39 | "RV" : { 40 | "type": [9,9], 41 | "value": ["1","2"] 42 | } 43 | }, 44 | { 45 | "Operator" : 9, 46 | "RV" : { 47 | "type": [9,9,9,9,9,9,9], 48 | "value": ["20","40","22","30","39","42","21"] 49 | } 50 | } 51 | ], 52 | "tableOffset": [ 53 | 0, 54 | 4, 55 | 29, 56 | 69, 57 | 73, 58 | 88, 59 | 95, 60 | 105 61 | ], 62 | "tableOfflen": [ 63 | 4, 64 | 25, 65 | 40, 66 | 4, 67 | 15, 68 | 7, 69 | 10, 70 | 117 71 | ], 72 | "tableDatatype": [ 73 | 3, 74 | 15, 75 | 15, 76 | 3, 77 | 254, 78 | 246, 79 | 254, 80 | 15 81 | ], 82 | "tableAlias": "ProcessTable21-0", 83 | "columnAlias": [ 84 | "c_acctbal" 85 | ], 86 | "columnProjection": [ 87 | { 88 | "selectType": 0, 89 | "value": ["c_acctbal"], 90 | "valueType": [10] 91 | } 92 | ], 93 | "pkNum" : 0 94 | } 95 | } -------------------------------------------------------------------------------- /snippet/tpch02/tpch02-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":1, 6 | "workID":4, 7 | "tableName": ["part"], 8 | "tableCol":[ 9 | "p_partkey", 10 | "p_name", 11 | "p_mfgr", 12 | "p_brand", 13 | "p_type", 14 | "p_size", 15 | "p_container", 16 | "p_retailprice", 17 | "p_comment" 18 | ], 19 | "tableFilter":[ 20 | { 21 | "LV": { 22 | "type": [10], 23 | "value": ["p_size"] 24 | }, 25 | "Operator" : 5, 26 | "RV" : { 27 | "type": [3], 28 | "value": ["30"] 29 | } 30 | }, 31 | { 32 | "Operator" : 13 33 | }, 34 | { 35 | "LV": { 36 | "type": [10], 37 | "value": ["p_type"] 38 | }, 39 | "Operator" : 7, 40 | "RV" : { 41 | "type": [9], 42 | "value": ["%STEEL"] 43 | } 44 | } 45 | ], 46 | "tableOffset":[ 47 | 0, 48 | 4, 49 | 59, 50 | 84, 51 | 94, 52 | 119, 53 | 123, 54 | 133, 55 | 140 56 | ], 57 | "tableOfflen":[ 58 | 4, 59 | 55, 60 | 25, 61 | 10, 62 | 25, 63 | 4, 64 | 10, 65 | 7, 66 | 23 67 | ], 68 | "tableDatatype":[ 69 | 3, 70 | 15, 71 | 254, 72 | 254, 73 | 15, 74 | 3, 75 | 254, 76 | 246, 77 | 15 78 | ], 79 | "tableAlias": "ProcessTable1-4", 80 | "columnAlias": [ 81 | "p_partkey", 82 | "p_mfgr" 83 | ], 84 | "columnProjection": [ 85 | { 86 | "selectType": 0, 87 | "value": ["p_partkey"], 88 | "valueType": [10] 89 | }, 90 | { 91 | "selectType": 0, 92 | "value": ["p_mfgr"], 93 | "valueType": [10] 94 | } 95 | ], 96 | "pkNum" : 0 97 | } 98 | 99 | } -------------------------------------------------------------------------------- /snippet/tpch22/tpch22-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": 4 | { 5 | "queryID":21, 6 | "workID":3, 7 | "tableName": ["customer"], 8 | "tableCol": [ 9 | "c_custkey", 10 | "c_name", 11 | "c_address", 12 | "c_nationkey", 13 | "c_phone", 14 | "c_acctbal", 15 | "c_mktsegment", 16 | "c_comment" 17 | ], 18 | "tableFilter":[ 19 | { 20 | "LV": { 21 | "type": [10], 22 | "value": ["c_phone"] 23 | }, 24 | "Operator" : 16, 25 | "RV" : { 26 | "type": [9,9], 27 | "value": ["1","2"] 28 | } 29 | }, 30 | { 31 | "Operator" : 9, 32 | "RV" : { 33 | "type": [9,9,9,9,9,9,9], 34 | "value": ["20","40","22","30","39","42","21"] 35 | } 36 | } 37 | ], 38 | "tableOffset": [ 39 | 0, 40 | 4, 41 | 29, 42 | 69, 43 | 73, 44 | 88, 45 | 95, 46 | 105 47 | ], 48 | "tableOfflen": [ 49 | 4, 50 | 25, 51 | 40, 52 | 4, 53 | 15, 54 | 7, 55 | 10, 56 | 117 57 | ], 58 | "tableDatatype": [ 59 | 3, 60 | 15, 61 | 15, 62 | 3, 63 | 254, 64 | 246, 65 | 254, 66 | 15 67 | ], 68 | "tableAlias": "ProcessTable21-3", 69 | "columnAlias": [ 70 | "c_acctbal", 71 | "c_custkey", 72 | "cntrycode" 73 | ], 74 | "columnProjection": [ 75 | { 76 | "selectType": 0, 77 | "value": ["c_acctbal"], 78 | "valueType": [10] 79 | }, 80 | { 81 | "selectType": 0, 82 | "value": ["c_custkey"], 83 | "valueType": [10] 84 | }, 85 | { 86 | "selectType": 0, 87 | "value": ["SUBSTRING","c_phone","1","2"], 88 | "valueType": [11,10,2,2] 89 | } 90 | ], 91 | "pkNum" : 0 92 | } 93 | } -------------------------------------------------------------------------------- /snippet/tpch03/tpch03-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":2, 6 | "workID":1, 7 | "tableName": ["orders"], 8 | "tableCol":[ 9 | "o_orderkey", 10 | "o_custkey", 11 | "o_orderstatus", 12 | "o_totalprice", 13 | "o_orderdate", 14 | "o_orderpriority", 15 | "o_clerk", 16 | "o_shippriority", 17 | "o_comment" 18 | ], 19 | "tableFilter":[ 20 | { 21 | "LV": { 22 | "type": [10], 23 | "value": ["o_orderdate"] 24 | }, 25 | "Operator" : 4, 26 | "RV" : { 27 | "type": [7], 28 | "value": ["1021549"] 29 | } 30 | } 31 | ], 32 | "tableOffset":[ 33 | 0, 34 | 4, 35 | 8, 36 | 9, 37 | 16, 38 | 19, 39 | 34, 40 | 49, 41 | 53 42 | ], 43 | "tableOfflen":[ 44 | 4, 45 | 4, 46 | 1, 47 | 7, 48 | 3, 49 | 15, 50 | 15, 51 | 4, 52 | 79 53 | ], 54 | "tableDatatype":[ 55 | 3, 56 | 3, 57 | 254, 58 | 246, 59 | 14, 60 | 254, 61 | 254, 62 | 3, 63 | 15 64 | ], 65 | "tableAlias": "ProcessTable2-1", 66 | "columnAlias": [ 67 | "o_orderdate", 68 | "o_orderkey", 69 | "o_shippriority", 70 | "o_custkey" 71 | ], 72 | "columnProjection": [ 73 | { 74 | "selectType": 0, 75 | "value": ["o_orderdate"], 76 | "valueType": [10] 77 | }, 78 | { 79 | "selectType": 0, 80 | "value": ["o_orderkey"], 81 | "valueType": [10] 82 | }, 83 | { 84 | "selectType": 0, 85 | "value": ["o_shippriority"], 86 | "valueType": [10] 87 | }, 88 | { 89 | "selectType": 0, 90 | "value": ["o_custkey"], 91 | "valueType": [10] 92 | } 93 | ], 94 | "pkNum" : 0 95 | } 96 | } -------------------------------------------------------------------------------- /snippet/tpch21/tpch21-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":20, 6 | "workID":1, 7 | "tableName": ["lineitem"], 8 | "tableCol":[ 9 | "l_orderkey", 10 | "l_partkey", 11 | "l_suppkey", 12 | "l_linenumber", 13 | "l_quantity", 14 | "l_extendedprice", 15 | "l_discount", 16 | "l_tax", 17 | "l_returnflag", 18 | "l_linestatus", 19 | "l_shipdate", 20 | "l_commitdate", 21 | "l_receiptdate", 22 | "l_shipinstruct", 23 | "l_shipmode", 24 | "l_comment" 25 | ], 26 | "tableFilter":[], 27 | "tableOffset":[ 28 | 0, 29 | 4, 30 | 8, 31 | 12, 32 | 16, 33 | 23, 34 | 30, 35 | 37, 36 | 44, 37 | 45, 38 | 46, 39 | 49, 40 | 52, 41 | 55, 42 | 80, 43 | 90 44 | ], 45 | "tableOfflen":[ 46 | 4, 47 | 4, 48 | 4, 49 | 4, 50 | 7, 51 | 7, 52 | 7, 53 | 7, 54 | 1, 55 | 1, 56 | 3, 57 | 3, 58 | 3, 59 | 25, 60 | 10, 61 | 44 62 | ], 63 | "tableDatatype":[ 64 | 3, 65 | 3, 66 | 3, 67 | 3, 68 | 246, 69 | 246, 70 | 246, 71 | 246, 72 | 254, 73 | 254, 74 | 14, 75 | 14, 76 | 14, 77 | 254, 78 | 254, 79 | 15 80 | ], 81 | "tableAlias": "l2", 82 | "columnAlias": [ 83 | "l2.l_suppkey", 84 | "l2.l_orderkey" 85 | ], 86 | "columnProjection": [ 87 | { 88 | "selectType": 0, 89 | "value": ["l_suppkey"], 90 | "valueType": [10] 91 | }, 92 | { 93 | "selectType": 0, 94 | "value": ["l_orderkey"], 95 | "valueType": [10] 96 | } 97 | ], 98 | "pkNum" : 0 99 | } 100 | } -------------------------------------------------------------------------------- /snippet/tpch02/tpch02-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":1, 6 | "workID":1, 7 | "tableName": ["supplier"], 8 | "tableCol":[ 9 | "s_suppkey", 10 | "s_name", 11 | "s_address", 12 | "s_nationkey", 13 | "s_phone", 14 | "s_acctbal", 15 | "s_comment" 16 | ], 17 | "tableFilter":[], 18 | "tableOffset":[ 19 | 0, 20 | 4, 21 | 29, 22 | 69, 23 | 73, 24 | 88, 25 | 95 26 | ], 27 | "tableOfflen":[ 28 | 4, 29 | 25, 30 | 40, 31 | 4, 32 | 15, 33 | 7, 34 | 101 35 | ], 36 | "tableDatatype":[ 37 | 3, 38 | 254, 39 | 15, 40 | 3, 41 | 254, 42 | 246, 43 | 15 44 | ], 45 | "tableAlias": "ProcessTable1-1", 46 | "columnAlias": [ 47 | "s_suppkey", 48 | "s_nationkey", 49 | "s_acctbal", 50 | "s_name", 51 | "s_address", 52 | "s_phone", 53 | "s_comment" 54 | ], 55 | "columnProjection": [ 56 | { 57 | "selectType": 0, 58 | "value": ["s_suppkey"], 59 | "valueType": [10] 60 | }, 61 | { 62 | "selectType": 0, 63 | "value": ["s_nationkey"], 64 | "valueType": [10] 65 | }, 66 | { 67 | "selectType": 0, 68 | "value": ["s_acctbal"], 69 | "valueType": [10] 70 | }, 71 | { 72 | "selectType": 0, 73 | "value": ["s_name"], 74 | "valueType": [10] 75 | }, 76 | { 77 | "selectType": 0, 78 | "value": ["s_address"], 79 | "valueType": [10] 80 | }, 81 | { 82 | "selectType": 0, 83 | "value": ["s_phone"], 84 | "valueType": [10] 85 | }, 86 | { 87 | "selectType": 0, 88 | "value": ["s_comment"], 89 | "valueType": [10] 90 | } 91 | ], 92 | "pkNum" : 0 93 | } 94 | } -------------------------------------------------------------------------------- /snippet/tpch04/tpch04-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 0, 3 | "snippet": 4 | { 5 | "queryID":3, 6 | "workID":1, 7 | "tableName": ["orders"], 8 | "tableCol":[ 9 | "o_orderkey", 10 | "o_custkey", 11 | "o_orderstatus", 12 | "o_totalprice", 13 | "o_orderdate", 14 | "o_orderpriority", 15 | "o_clerk", 16 | "o_shippriority", 17 | "o_comment" 18 | ], 19 | "tableFilter":[ 20 | { 21 | "LV": { 22 | "type": [10], 23 | "value": ["o_orderdate"] 24 | }, 25 | "Operator" : 1, 26 | "RV" : { 27 | "type": [7], 28 | "value": ["1021473"] 29 | } 30 | }, 31 | { 32 | "Operator" : 13 33 | }, 34 | { 35 | "LV": { 36 | "type": [10], 37 | "value": ["o_orderdate"] 38 | }, 39 | "Operator" : 4, 40 | "RV" : { 41 | "type": [7], 42 | "value": ["1021569"] 43 | } 44 | } 45 | ], 46 | "tableOffset":[ 47 | 0, 48 | 4, 49 | 8, 50 | 9, 51 | 16, 52 | 19, 53 | 34, 54 | 49, 55 | 53 56 | ], 57 | "tableOfflen":[ 58 | 4, 59 | 4, 60 | 1, 61 | 7, 62 | 3, 63 | 15, 64 | 15, 65 | 4, 66 | 79 67 | ], 68 | "tableDatatype":[ 69 | 3, 70 | 3, 71 | 254, 72 | 246, 73 | 14, 74 | 254, 75 | 254, 76 | 3, 77 | 15 78 | ], 79 | "tableAlias": "ProcessTable3-1", 80 | "columnAlias": [ 81 | "o_orderkey", 82 | "o_orderpriority" 83 | ], 84 | "columnProjection": [ 85 | { 86 | "selectType": 0, 87 | "value": ["o_orderkey"], 88 | "valueType": [10] 89 | }, 90 | { 91 | "selectType": 0, 92 | "value": ["o_orderpriority"], 93 | "valueType": [10] 94 | } 95 | ], 96 | "pkNum" : 0 97 | } 98 | } -------------------------------------------------------------------------------- /snippet/tpch18/tpch18-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": 0, 3 | "snippet": { 4 | "queryID": 17, 5 | "workID": 0, 6 | "tableName": [ 7 | "lineitem" 8 | ], 9 | "tableCol":[ 10 | "l_orderkey", 11 | "l_partkey", 12 | "l_suppkey", 13 | "l_linenumber", 14 | "l_quantity", 15 | "l_extendedprice", 16 | "l_discount", 17 | "l_tax", 18 | "l_returnflag", 19 | "l_linestatus", 20 | "l_shipdate", 21 | "l_commitdate", 22 | "l_receiptdate", 23 | "l_shipinstruct", 24 | "l_shipmode", 25 | "l_comment" 26 | ], 27 | "tableFilter":[], 28 | "tableOffset":[ 29 | 0, 30 | 4, 31 | 8, 32 | 12, 33 | 16, 34 | 23, 35 | 30, 36 | 37, 37 | 44, 38 | 45, 39 | 46, 40 | 49, 41 | 52, 42 | 55, 43 | 80, 44 | 90 45 | ], 46 | "tableOfflen":[ 47 | 4, 48 | 4, 49 | 4, 50 | 4, 51 | 7, 52 | 7, 53 | 7, 54 | 7, 55 | 1, 56 | 1, 57 | 3, 58 | 3, 59 | 3, 60 | 25, 61 | 10, 62 | 44 63 | ], 64 | "tableDatatype":[ 65 | 3, 66 | 3, 67 | 3, 68 | 3, 69 | 246, 70 | 246, 71 | 246, 72 | 246, 73 | 254, 74 | 254, 75 | 14, 76 | 14, 77 | 14, 78 | 254, 79 | 254, 80 | 15 81 | ], 82 | "tableAlias": "ProcessTable17-0", 83 | "columnAlias": [ 84 | "l_orderkey", 85 | "l_quantity" 86 | ], 87 | "columnProjection": [ 88 | { 89 | "selectType": 0, 90 | "value": ["l_orderkey"], 91 | "valueType": [10] 92 | }, 93 | { 94 | "selectType": 0, 95 | "value": ["l_quantity"], 96 | "valueType": [10] 97 | } 98 | ], 99 | "pkNum" : 0 100 | } 101 | } -------------------------------------------------------------------------------- /snippet/tpch02/tpch02-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : 3, 3 | "snippet": 4 | { 5 | "queryID":1, 6 | "workID":7, 7 | "tableName": ["ProcessTable1-3","ProcessTable1-6"], 8 | "tableCol":[], 9 | "tableFilter":[ 10 | { 11 | "LV": { 12 | "type": [10], 13 | "value": ["r_regionkey"] 14 | }, 15 | "Operator" : 5, 16 | "RV" : { 17 | "type": [10], 18 | "value": ["n_regionkey"] 19 | } 20 | } 21 | ], 22 | "tableOffset":[], 23 | "tableOfflen":[], 24 | "tableDatatype":[], 25 | "tableAlias": "ProcessTable1-7", 26 | "columnAlias": [ 27 | "s_acctbal", 28 | "s_name", 29 | "s_address", 30 | "s_phone", 31 | "s_comment", 32 | "ps_partkey", 33 | "ps_supplycost", 34 | "n_regionkey", 35 | "n_name" 36 | ], 37 | "columnProjection": [ 38 | { 39 | "selectType": 0, 40 | "value": ["s_acctbal"], 41 | "valueType": [10] 42 | }, 43 | { 44 | "selectType": 0, 45 | "value": ["s_name"], 46 | "valueType": [10] 47 | }, 48 | { 49 | "selectType": 0, 50 | "value": ["s_address"], 51 | "valueType": [10] 52 | }, 53 | { 54 | "selectType": 0, 55 | "value": ["s_phone"], 56 | "valueType": [10] 57 | }, 58 | { 59 | "selectType": 0, 60 | "value": ["s_comment"], 61 | "valueType": [10] 62 | }, 63 | { 64 | "selectType": 0, 65 | "value": ["ps_partkey"], 66 | "valueType": [10] 67 | }, 68 | { 69 | "selectType": 0, 70 | "value": ["ps_supplycost"], 71 | "valueType": [10] 72 | }, 73 | { 74 | "selectType": 0, 75 | "value": ["n_regionkey"], 76 | "valueType": [10] 77 | }, 78 | { 79 | "selectType": 0, 80 | "value": ["n_name"], 81 | "valueType": [10] 82 | } 83 | ] 84 | } 85 | } --------------------------------------------------------------------------------