├── .vscode └── settings.json ├── CMakeFiles ├── 3.25.3 │ ├── CMakeCCompiler.cmake │ ├── CMakeCXXCompiler.cmake │ ├── CMakeDetermineCompilerABI_C.bin │ ├── CMakeDetermineCompilerABI_CXX.bin │ ├── CMakeSystem.cmake │ ├── CompilerIdC │ │ ├── CMakeCCompilerId.c │ │ └── a.out │ └── CompilerIdCXX │ │ ├── CMakeCXXCompilerId.cpp │ │ └── a.out ├── CMakeDirectoryInformation.cmake ├── CMakeError.log ├── CMakeOutput.log ├── KETI_Validator.dir │ ├── DependInfo.cmake │ ├── build.make │ ├── cmake_clean.cmake │ ├── compiler_depend.make │ ├── compiler_depend.ts │ ├── depend.make │ ├── flags.make │ ├── link.txt │ └── progress.make ├── Makefile.cmake ├── Makefile2 ├── TargetDirectories.txt ├── cmake.check_cache └── progress.marks ├── CMakeLists.txt ├── CSDValidator.cpp ├── CSDValidator.hpp ├── DBManager.cpp ├── DBManager.hpp ├── HistogramTable.cpp ├── HistogramTable.hpp ├── LICENSE ├── Makefile ├── QEMUHandler.cpp ├── QEMUHandler.hpp ├── QueryParser.cpp ├── QueryParser.hpp ├── README.md ├── RestHandler.cpp ├── RestHandler.hpp ├── SSDValidator.cpp ├── SSDValidator.hpp ├── StorageValidator.cpp ├── StorageValidator.hpp ├── TypeDef.hpp ├── build ├── 0.build-image.sh ├── CMakeCache.txt ├── CMakeFiles │ ├── 3.25.3 │ │ ├── CMakeCCompiler.cmake │ │ ├── CMakeCXXCompiler.cmake │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ ├── CMakeSystem.cmake │ │ ├── CompilerIdC │ │ │ ├── CMakeCCompilerId.c │ │ │ └── a.out │ │ └── CompilerIdCXX │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ └── a.out │ ├── CMakeError.log │ ├── CMakeOutput.log │ └── cmake.check_cache ├── CMakeLists.txt ├── Dockerfile ├── Makefile ├── cmake │ ├── build │ │ ├── CMakeCache.txt │ │ ├── CMakeFiles │ │ │ ├── 3.25.3 │ │ │ │ ├── CMakeCCompiler.cmake │ │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ │ ├── CMakeSystem.cmake │ │ │ │ ├── CompilerIdC │ │ │ │ │ ├── CMakeCCompilerId.c │ │ │ │ │ └── a.out │ │ │ │ └── CompilerIdCXX │ │ │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ │ │ └── a.out │ │ │ ├── CMakeDirectoryInformation.cmake │ │ │ ├── CMakeError.log │ │ │ ├── CMakeOutput.log │ │ │ ├── KETI_Validator.dir │ │ │ │ ├── CSDValidator.cpp.o │ │ │ │ ├── CSDValidator.cpp.o.d │ │ │ │ ├── DBManager.cpp.o │ │ │ │ ├── DBManager.cpp.o.d │ │ │ │ ├── DependInfo.cmake │ │ │ │ ├── HistogramTable.cpp.o │ │ │ │ ├── HistogramTable.cpp.o.d │ │ │ │ ├── QEMUHandler.cpp.o │ │ │ │ ├── QEMUHandler.cpp.o.d │ │ │ │ ├── QueryParser.cpp.o │ │ │ │ ├── QueryParser.cpp.o.d │ │ │ │ ├── RestHandler.cpp.o │ │ │ │ ├── RestHandler.cpp.o.d │ │ │ │ ├── SSDValidator.cpp.o │ │ │ │ ├── SSDValidator.cpp.o.d │ │ │ │ ├── StorageValidator.cpp.o │ │ │ │ ├── StorageValidator.cpp.o.d │ │ │ │ ├── build.make │ │ │ │ ├── cmake_clean.cmake │ │ │ │ ├── compiler_depend.internal │ │ │ │ ├── compiler_depend.make │ │ │ │ ├── compiler_depend.ts │ │ │ │ ├── depend.make │ │ │ │ ├── flags.make │ │ │ │ ├── link.txt │ │ │ │ ├── main.cpp.o │ │ │ │ ├── main.cpp.o.d │ │ │ │ └── progress.make │ │ │ ├── Makefile.cmake │ │ │ ├── Makefile2 │ │ │ ├── TargetDirectories.txt │ │ │ ├── cmake.check_cache │ │ │ └── progress.marks │ │ ├── KETI_Validator │ │ ├── Makefile │ │ ├── cmake_install.cmake │ │ └── result_hj │ └── snippet │ │ ├── tpch01 │ │ ├── tpch01-0.json │ │ └── tpch01-1.json │ │ ├── tpch02 │ │ ├── tpch02-0.json │ │ ├── tpch02-1.json │ │ ├── tpch02-10.json │ │ ├── tpch02-11.json │ │ ├── tpch02-12.json │ │ ├── tpch02-2.json │ │ ├── tpch02-3.json │ │ ├── tpch02-4.json │ │ ├── tpch02-5.json │ │ ├── tpch02-6.json │ │ ├── tpch02-7.json │ │ ├── tpch02-8.json │ │ └── tpch02-9.json │ │ ├── tpch03 │ │ ├── tpch03-0.json │ │ ├── tpch03-1.json │ │ ├── tpch03-2.json │ │ ├── tpch03-3.json │ │ ├── tpch03-4.json │ │ └── tpch03-5.json │ │ ├── tpch04 │ │ ├── tpch04-0.json │ │ ├── tpch04-1.json │ │ └── tpch04-2.json │ │ ├── tpch05 │ │ ├── tpch05-0.json │ │ ├── tpch05-1.json │ │ ├── tpch05-10.json │ │ ├── tpch05-11.json │ │ ├── tpch05-2.json │ │ ├── tpch05-3.json │ │ ├── tpch05-4.json │ │ ├── tpch05-5.json │ │ ├── tpch05-6.json │ │ ├── tpch05-7.json │ │ ├── tpch05-8.json │ │ └── tpch05-9.json │ │ ├── tpch06 │ │ ├── tpch06-0.json │ │ └── tpch06-1.json │ │ ├── tpch07 │ │ ├── tpch07-0.json │ │ ├── tpch07-1.json │ │ ├── tpch07-10.json │ │ ├── tpch07-11.json │ │ ├── tpch07-12.json │ │ ├── tpch07-13.json │ │ ├── tpch07-14.json │ │ ├── tpch07-2.json │ │ ├── tpch07-3.json │ │ ├── tpch07-4.json │ │ ├── tpch07-5.json │ │ ├── tpch07-6.json │ │ ├── tpch07-7.json │ │ ├── tpch07-8.json │ │ └── tpch07-9.json │ │ ├── tpch08 │ │ ├── tpch08-0.json │ │ ├── tpch08-1.json │ │ ├── tpch08-10.json │ │ ├── tpch08-11.json │ │ ├── tpch08-12.json │ │ ├── tpch08-13.json │ │ ├── tpch08-14.json │ │ ├── tpch08-15.json │ │ ├── tpch08-16.json │ │ ├── tpch08-2.json │ │ ├── tpch08-3.json │ │ ├── tpch08-4.json │ │ ├── tpch08-5.json │ │ ├── tpch08-6.json │ │ ├── tpch08-7.json │ │ ├── tpch08-8.json │ │ └── tpch08-9.json │ │ ├── tpch09 │ │ ├── tpch09-0.json │ │ ├── tpch09-1.json │ │ ├── tpch09-10.json │ │ ├── tpch09-11.json │ │ ├── tpch09-2.json │ │ ├── tpch09-3.json │ │ ├── tpch09-4.json │ │ ├── tpch09-5.json │ │ ├── tpch09-6.json │ │ ├── tpch09-7.json │ │ ├── tpch09-8.json │ │ └── tpch09-9.json │ │ ├── tpch10 │ │ ├── tpch10-0.json │ │ ├── tpch10-1.json │ │ ├── tpch10-2.json │ │ ├── tpch10-3.json │ │ ├── tpch10-4.json │ │ ├── tpch10-5.json │ │ ├── tpch10-6.json │ │ └── tpch10-7.json │ │ ├── tpch11 │ │ ├── tpch11-0.json │ │ ├── tpch11-1.json │ │ ├── tpch11-2.json │ │ ├── tpch11-3.json │ │ ├── tpch11-4.json │ │ ├── tpch11-5.json │ │ ├── tpch11-6.json │ │ └── tpch11-7.json │ │ ├── tpch12 │ │ ├── tpch12-0.json │ │ ├── tpch12-1.json │ │ └── tpch12-2.json │ │ ├── tpch13 │ │ ├── tpch13-0.json │ │ ├── tpch13-1.json │ │ ├── tpch13-2.json │ │ └── tpch13-3.json │ │ ├── tpch14 │ │ ├── tpch14-0.json │ │ ├── tpch14-1.json │ │ ├── tpch14-2.json │ │ └── tpch14-3.json │ │ ├── tpch15 │ │ ├── tpch15-0.json │ │ ├── tpch15-1.json │ │ ├── tpch15-2.json │ │ ├── tpch15-3.json │ │ ├── tpch15-4.json │ │ └── tpch15-5.json │ │ ├── tpch16 │ │ ├── tpch16-0.json │ │ ├── tpch16-1.json │ │ ├── tpch16-2.json │ │ ├── tpch16-3.json │ │ └── tpch16-4.json │ │ ├── tpch17 │ │ ├── tpch17-0.json │ │ ├── tpch17-1.json │ │ ├── tpch17-2.json │ │ └── tpch17-3.json │ │ ├── tpch18 │ │ ├── tpch18-0.json │ │ ├── tpch18-1.json │ │ ├── tpch18-2.json │ │ ├── tpch18-3.json │ │ ├── tpch18-4.json │ │ ├── tpch18-5.json │ │ ├── tpch18-6.json │ │ └── tpch18-7.json │ │ ├── tpch19 │ │ ├── tpch19-0.json │ │ ├── tpch19-1.json │ │ ├── tpch19-10.json │ │ ├── tpch19-2.json │ │ ├── tpch19-3.json │ │ ├── tpch19-4.json │ │ ├── tpch19-5.json │ │ ├── tpch19-6.json │ │ ├── tpch19-7.json │ │ ├── tpch19-8.json │ │ └── tpch19-9.json │ │ ├── tpch20 │ │ ├── tpch20-0.json │ │ ├── tpch20-1.json │ │ ├── tpch20-2.json │ │ ├── tpch20-3.json │ │ ├── tpch20-4.json │ │ ├── tpch20-5.json │ │ ├── tpch20-6.json │ │ ├── tpch20-7.json │ │ └── tpch20-8.json │ │ ├── tpch21 │ │ ├── tpch21-0.json │ │ ├── tpch21-1.json │ │ ├── tpch21-10.json │ │ ├── tpch21-2.json │ │ ├── tpch21-3.json │ │ ├── tpch21-4.json │ │ ├── tpch21-5.json │ │ ├── tpch21-6.json │ │ ├── tpch21-7.json │ │ ├── tpch21-8.json │ │ └── tpch21-9.json │ │ └── tpch22 │ │ ├── tpch22-0.json │ │ ├── tpch22-1.json │ │ ├── tpch22-2.json │ │ ├── tpch22-3.json │ │ ├── tpch22-4.json │ │ ├── tpch22-5.json │ │ └── tpch22-6.json ├── common.cmake └── shared_library │ ├── libboost_system.so.1.65.1 │ ├── libboost_thread.so.1.65.1 │ ├── libc.so.6 │ ├── libcpprest.so.2.10 │ ├── libcrypto.so.1.1 │ ├── libdl.so.2 │ ├── libgcc_s.so.1 │ ├── libltdl.so.7 │ ├── libm.so.6 │ ├── libmysqlclient.so.20 │ ├── libmysqlcppconn.so.7 │ ├── libodbc.so.2 │ ├── libpthread.so.0 │ ├── librt.so.1 │ ├── libssl.so.1.1 │ └── libstdc++.so.6 ├── cmake └── build │ ├── CMakeCache.txt │ ├── CMakeFiles │ ├── 3.25.3 │ │ ├── CMakeCCompiler.cmake │ │ ├── CMakeCXXCompiler.cmake │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ ├── CMakeSystem.cmake │ │ ├── CompilerIdC │ │ │ ├── CMakeCCompilerId.c │ │ │ └── a.out │ │ └── CompilerIdCXX │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ └── a.out │ ├── CMakeDirectoryInformation.cmake │ ├── CMakeError.log │ ├── CMakeOutput.log │ ├── KETI_Validator.dir │ │ ├── CSDValidator.cpp.o │ │ ├── CSDValidator.cpp.o.d │ │ ├── DependInfo.cmake │ │ ├── HistogramTable.cpp.o │ │ ├── HistogramTable.cpp.o.d │ │ ├── QEMUHandler.cpp.o │ │ ├── QEMUHandler.cpp.o.d │ │ ├── QueryParser.cpp.o │ │ ├── QueryParser.cpp.o.d │ │ ├── RestHandler.cpp.o │ │ ├── RestHandler.cpp.o.d │ │ ├── SSDValidator.cpp.o │ │ ├── SSDValidator.cpp.o.d │ │ ├── StorageValidator.cpp.o │ │ ├── StorageValidator.cpp.o.d │ │ ├── build.make │ │ ├── cmake_clean.cmake │ │ ├── compiler_depend.internal │ │ ├── compiler_depend.make │ │ ├── compiler_depend.ts │ │ ├── depend.make │ │ ├── flags.make │ │ ├── link.txt │ │ ├── main.cpp.o │ │ ├── main.cpp.o.d │ │ └── progress.make │ ├── Makefile.cmake │ ├── Makefile2 │ ├── TargetDirectories.txt │ ├── cmake.check_cache │ └── progress.marks │ ├── KETI_Validator │ ├── Makefile │ ├── cmake_install.cmake │ └── result_hj ├── cmake_install.cmake ├── common.cmake ├── image.png ├── internal_queue.hpp ├── keti_log.h ├── keti_type.h ├── libstdc++.so.6 ├── main.cpp ├── snippet ├── tpch01 │ ├── tpch01-0.json │ └── tpch01-1.json ├── tpch02 │ ├── tpch02-0.json │ ├── tpch02-1.json │ ├── tpch02-10.json │ ├── tpch02-11.json │ ├── tpch02-12.json │ ├── tpch02-2.json │ ├── tpch02-3.json │ ├── tpch02-4.json │ ├── tpch02-5.json │ ├── tpch02-6.json │ ├── tpch02-7.json │ ├── tpch02-8.json │ └── tpch02-9.json ├── tpch03 │ ├── tpch03-0.json │ ├── tpch03-1.json │ ├── tpch03-2.json │ ├── tpch03-3.json │ ├── tpch03-4.json │ └── tpch03-5.json ├── tpch04 │ ├── tpch04-0.json │ ├── tpch04-1.json │ └── tpch04-2.json ├── tpch05 │ ├── tpch05-0.json │ ├── tpch05-1.json │ ├── tpch05-10.json │ ├── tpch05-11.json │ ├── tpch05-2.json │ ├── tpch05-3.json │ ├── tpch05-4.json │ ├── tpch05-5.json │ ├── tpch05-6.json │ ├── tpch05-7.json │ ├── tpch05-8.json │ └── tpch05-9.json ├── tpch06 │ ├── tpch06-0.json │ └── tpch06-1.json ├── tpch07 │ ├── tpch07-0.json │ ├── tpch07-1.json │ ├── tpch07-10.json │ ├── tpch07-11.json │ ├── tpch07-12.json │ ├── tpch07-13.json │ ├── tpch07-14.json │ ├── tpch07-2.json │ ├── tpch07-3.json │ ├── tpch07-4.json │ ├── tpch07-5.json │ ├── tpch07-6.json │ ├── tpch07-7.json │ ├── tpch07-8.json │ └── tpch07-9.json ├── tpch08 │ ├── tpch08-0.json │ ├── tpch08-1.json │ ├── tpch08-10.json │ ├── tpch08-11.json │ ├── tpch08-12.json │ ├── tpch08-13.json │ ├── tpch08-14.json │ ├── tpch08-15.json │ ├── tpch08-16.json │ ├── tpch08-2.json │ ├── tpch08-3.json │ ├── tpch08-4.json │ ├── tpch08-5.json │ ├── tpch08-6.json │ ├── tpch08-7.json │ ├── tpch08-8.json │ └── tpch08-9.json ├── tpch09 │ ├── tpch09-0.json │ ├── tpch09-1.json │ ├── tpch09-10.json │ ├── tpch09-11.json │ ├── tpch09-2.json │ ├── tpch09-3.json │ ├── tpch09-4.json │ ├── tpch09-5.json │ ├── tpch09-6.json │ ├── tpch09-7.json │ ├── tpch09-8.json │ └── tpch09-9.json ├── tpch10 │ ├── tpch10-0.json │ ├── tpch10-1.json │ ├── tpch10-2.json │ ├── tpch10-3.json │ ├── tpch10-4.json │ ├── tpch10-5.json │ ├── tpch10-6.json │ └── tpch10-7.json ├── tpch11 │ ├── tpch11-0.json │ ├── tpch11-1.json │ ├── tpch11-2.json │ ├── tpch11-3.json │ ├── tpch11-4.json │ ├── tpch11-5.json │ ├── tpch11-6.json │ └── tpch11-7.json ├── tpch12 │ ├── tpch12-0.json │ ├── tpch12-1.json │ └── tpch12-2.json ├── tpch13 │ ├── tpch13-0.json │ ├── tpch13-1.json │ ├── tpch13-2.json │ └── tpch13-3.json ├── tpch14 │ ├── tpch14-0.json │ ├── tpch14-1.json │ ├── tpch14-2.json │ └── tpch14-3.json ├── tpch15 │ ├── tpch15-0.json │ ├── tpch15-1.json │ ├── tpch15-2.json │ ├── tpch15-3.json │ ├── tpch15-4.json │ └── tpch15-5.json ├── tpch16 │ ├── tpch16-0.json │ ├── tpch16-1.json │ ├── tpch16-2.json │ ├── tpch16-3.json │ └── tpch16-4.json ├── tpch17 │ ├── tpch17-0.json │ ├── tpch17-1.json │ ├── tpch17-2.json │ └── tpch17-3.json ├── tpch18 │ ├── tpch18-0.json │ ├── tpch18-1.json │ ├── tpch18-2.json │ ├── tpch18-3.json │ ├── tpch18-4.json │ ├── tpch18-5.json │ ├── tpch18-6.json │ └── tpch18-7.json ├── tpch19 │ ├── tpch19-0.json │ ├── tpch19-1.json │ ├── tpch19-10.json │ ├── tpch19-2.json │ ├── tpch19-3.json │ ├── tpch19-4.json │ ├── tpch19-5.json │ ├── tpch19-6.json │ ├── tpch19-7.json │ ├── tpch19-8.json │ └── tpch19-9.json ├── tpch20 │ ├── tpch20-0.json │ ├── tpch20-1.json │ ├── tpch20-2.json │ ├── tpch20-3.json │ ├── tpch20-4.json │ ├── tpch20-5.json │ ├── tpch20-6.json │ ├── tpch20-7.json │ └── tpch20-8.json ├── tpch21 │ ├── tpch21-0.json │ ├── tpch21-1.json │ ├── tpch21-10.json │ ├── tpch21-2.json │ ├── tpch21-3.json │ ├── tpch21-4.json │ ├── tpch21-5.json │ ├── tpch21-6.json │ ├── tpch21-7.json │ ├── tpch21-8.json │ └── tpch21-9.json └── tpch22 │ ├── tpch22-0.json │ ├── tpch22-1.json │ ├── tpch22-2.json │ ├── tpch22-3.json │ ├── tpch22-4.json │ ├── tpch22-5.json │ └── tpch22-6.json └── stdafx.hpp /CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /CMakeFiles/3.25.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/CMakeFiles/3.25.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /CMakeFiles/3.25.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/CMakeFiles/3.25.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /CMakeFiles/KETI_Validator.dir/depend.make: -------------------------------------------------------------------------------- 1 | # Empty dependencies file for KETI_Validator. 2 | # This may be replaced when dependencies are built. 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /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}) -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /DBManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/DBManager.cpp -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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); -------------------------------------------------------------------------------- /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 | }; -------------------------------------------------------------------------------- /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); -------------------------------------------------------------------------------- /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); -------------------------------------------------------------------------------- /build/0.build-image.sh: -------------------------------------------------------------------------------- 1 | registry="ketidevit2" 2 | image_name="validator" 3 | version="v1.0" 4 | 5 | ( 6 | cd cmake/build 7 | make -j 100 8 | ) 9 | 10 | # make image 11 | docker build -t $image_name:$version . && \ 12 | 13 | # add tag 14 | docker tag $image_name:$version $registry/$image_name:$version && \ 15 | 16 | # login 17 | docker login && \ 18 | 19 | # push image 20 | docker push $registry/$image_name:$version -------------------------------------------------------------------------------- /build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.25.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/CMakeFiles/3.25.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /build/CMakeFiles/3.25.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/CMakeFiles/3.25.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /build/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /build/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") 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}) -------------------------------------------------------------------------------- /build/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:18.04 2 | 3 | ENV OPERATOR=/usr/local/bin/validator \ 4 | USER_UID=root \ 5 | USER_NAME=discovery 6 | COPY ./cmake/build/KETI_Validator ${OPERATOR} 7 | COPY ./cmake/snippet /usr/local/snippet 8 | COPY ./shared_library /usr/lib/x86_64-linux-gnu 9 | 10 | WORKDIR /usr/local/bin 11 | ENTRYPOINT ["./validator"] 12 | 13 | USER ${USER_UID} -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /build/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 | -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/3.25.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/3.25.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/3.25.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/3.25.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /build/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/build/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 | -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/DBManager.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/KETI_Validator.dir/DBManager.cpp.o -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/DBManager.cpp.o.d: -------------------------------------------------------------------------------- 1 | CMakeFiles/KETI_Validator.dir/DBManager.cpp.o: \ 2 | /root/workspace/Simulator-Instance/DBManager.cpp \ 3 | /usr/include/stdc-predef.h 4 | -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/KETI_Validator.dir/QueryParser.cpp.o -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/KETI_Validator.dir/RestHandler.cpp.o -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o -------------------------------------------------------------------------------- /build/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 | -------------------------------------------------------------------------------- /build/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 | -------------------------------------------------------------------------------- /build/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 | -------------------------------------------------------------------------------- /build/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 | -------------------------------------------------------------------------------- /build/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 -pthread -lpthread 2 | -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/KETI_Validator.dir/main.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/CMakeFiles/KETI_Validator.dir/main.cpp.o -------------------------------------------------------------------------------- /build/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 | -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /root/workspace/keti/Validator-Instance/build/cmake/build/CMakeFiles/KETI_Validator.dir 2 | /root/workspace/keti/Validator-Instance/build/cmake/build/CMakeFiles/edit_cache.dir 3 | /root/workspace/keti/Validator-Instance/build/cmake/build/CMakeFiles/rebuild_cache.dir 4 | -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /build/cmake/build/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /build/cmake/build/KETI_Validator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/cmake/build/KETI_Validator -------------------------------------------------------------------------------- /build/cmake/build/result_hj: -------------------------------------------------------------------------------- 1 | query_log 2 | snippet 3 | validation_csd_metric 4 | validation_log 5 | validation_option 6 | validation_snippet 7 | workbench_user 8 | RUN QEMU HANDLER 9 | VALIDATION ID : 0 10 | URI: http://0.0.0.0:40000/ 11 | /validator/run 12 | REST HANDLER 13 | USER_ID : keti-admin OPTION_ID : 2 QUERY STATEMENT : TPC-H_15 14 | ---OPTION ANALYZE--- 15 | USER ID : keti-admin OPTION ID : 2 16 | /validator/run 17 | REST HANDLER 18 | USER_ID : keti-admin OPTION_ID : 2 QUERY STATEMENT : TPC-H_15 19 | ---OPTION ANALYZE--- 20 | USER ID : keti-admin OPTION ID : 2 21 | -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/cmake/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 | } -------------------------------------------------------------------------------- /build/shared_library/libboost_system.so.1.65.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libboost_system.so.1.65.1 -------------------------------------------------------------------------------- /build/shared_library/libboost_thread.so.1.65.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libboost_thread.so.1.65.1 -------------------------------------------------------------------------------- /build/shared_library/libc.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libc.so.6 -------------------------------------------------------------------------------- /build/shared_library/libcpprest.so.2.10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libcpprest.so.2.10 -------------------------------------------------------------------------------- /build/shared_library/libcrypto.so.1.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libcrypto.so.1.1 -------------------------------------------------------------------------------- /build/shared_library/libdl.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libdl.so.2 -------------------------------------------------------------------------------- /build/shared_library/libgcc_s.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libgcc_s.so.1 -------------------------------------------------------------------------------- /build/shared_library/libltdl.so.7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libltdl.so.7 -------------------------------------------------------------------------------- /build/shared_library/libm.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libm.so.6 -------------------------------------------------------------------------------- /build/shared_library/libmysqlclient.so.20: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libmysqlclient.so.20 -------------------------------------------------------------------------------- /build/shared_library/libmysqlcppconn.so.7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libmysqlcppconn.so.7 -------------------------------------------------------------------------------- /build/shared_library/libodbc.so.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libodbc.so.2 -------------------------------------------------------------------------------- /build/shared_library/libpthread.so.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libpthread.so.0 -------------------------------------------------------------------------------- /build/shared_library/librt.so.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/librt.so.1 -------------------------------------------------------------------------------- /build/shared_library/libssl.so.1.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libssl.so.1.1 -------------------------------------------------------------------------------- /build/shared_library/libstdc++.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/build/shared_library/libstdc++.so.6 -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/CMakeFiles/3.25.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /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/3.25.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/CMakeFiles/3.25.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/3.25.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/CMakeFiles/3.25.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/CMakeFiles/KETI_Validator.dir/CSDValidator.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/CMakeFiles/KETI_Validator.dir/HistogramTable.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/QEMUHandler.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/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/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/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/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/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/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/CMakeFiles/KETI_Validator.dir/SSDValidator.cpp.o -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/CMakeFiles/KETI_Validator.dir/StorageValidator.cpp.o -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/KETI_Validator.dir/main.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/CMakeFiles/KETI_Validator.dir/main.cpp.o -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /cmake/build/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /cmake/build/KETI_Validator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/KETI_Validator -------------------------------------------------------------------------------- /cmake/build/result_hj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/cmake/build/result_hj -------------------------------------------------------------------------------- /image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/image.png -------------------------------------------------------------------------------- /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 | }; -------------------------------------------------------------------------------- /libstdc++.so.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencsd/KETI-Validator/dd772f1309bb39384bf2cedd2bd60cee6c5e57a0/libstdc++.so.6 -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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 | } -------------------------------------------------------------------------------- /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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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-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/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/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/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-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-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/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-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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | } -------------------------------------------------------------------------------- /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/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 | } -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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-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/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 | } -------------------------------------------------------------------------------- /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/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/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/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/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/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/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 | } -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------