Skip to content

Commit

Permalink
refactor velox_cursor into velox/exec as it's used by LocalRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Nov 22, 2024
1 parent 6808b5a commit 010b345
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 31 deletions.
1 change: 0 additions & 1 deletion CMake/VeloxUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ function(velox_link_libraries TARGET)
# explicitly (this is a hack)
set(explicit_targets
velox_exec_test_lib
velox_cursor
# see velox/experimental/wave/README.md
velox_wave_common
velox_wave_decode
Expand Down
2 changes: 1 addition & 1 deletion velox/dwio/parquet/tests/writer/ParquetWriterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "velox/dwio/parquet/RegisterParquetWriter.h" // @manual
#include "velox/dwio/parquet/tests/ParquetTestBase.h"
#include "velox/exec/tests/utils/AssertQueryBuilder.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
#include "velox/exec/tests/utils/QueryAssertions.h"
#include "velox/exec/tests/utils/TempDirectoryPath.h"
Expand Down
17 changes: 17 additions & 0 deletions velox/exec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,23 @@ velox_link_libraries(
velox_arrow_bridge
velox_common_compression)


velox_add_library(velox_cursor Cursor.cpp)
velox_link_libraries(
velox_cursor
velox_core
velox_exception
velox_expression
velox_dwio_common
velox_dwio_dwrf_reader
velox_dwio_dwrf_writer
velox_type_fbhive
velox_hive_connector
velox_tpch_connector
velox_presto_serializer
velox_functions_prestosql
velox_aggregates)

if(${VELOX_BUILD_TESTING})
add_subdirectory(fuzzer)
add_subdirectory(tests)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion velox/exec/benchmarks/WindowPrefixSortBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <folly/init/Init.h>
#include <string>

#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/HiveConnectorTestBase.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
#include "velox/functions/prestosql/aggregates/RegisterAggregateFunctions.h"
Expand Down
2 changes: 1 addition & 1 deletion velox/exec/tests/DriverTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "velox/exec/PlanNodeStats.h"
#include "velox/exec/Values.h"
#include "velox/exec/tests/utils/AssertQueryBuilder.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/OperatorTestBase.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
#include "velox/functions/Udf.h"
Expand Down
2 changes: 1 addition & 1 deletion velox/exec/tests/GroupedExecutionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "velox/common/memory/MemoryArbitrator.h"
#include "velox/exec/OutputBufferManager.h"
#include "velox/exec/PlanNodeStats.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/HiveConnectorTestBase.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
#include "velox/exec/tests/utils/TempDirectoryPath.h"
Expand Down
2 changes: 1 addition & 1 deletion velox/exec/tests/HashJoinTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "velox/exec/PlanNodeStats.h"
#include "velox/exec/tests/utils/ArbitratorTestUtil.h"
#include "velox/exec/tests/utils/AssertQueryBuilder.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/HiveConnectorTestBase.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
#include "velox/exec/tests/utils/TempDirectoryPath.h"
Expand Down
2 changes: 1 addition & 1 deletion velox/exec/tests/TableScanTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "velox/exec/PlanNodeStats.h"
#include "velox/exec/TableScan.h"
#include "velox/exec/tests/utils/AssertQueryBuilder.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/HiveConnectorTestBase.h"
#include "velox/exec/tests/utils/LocalExchangeSource.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
Expand Down
2 changes: 1 addition & 1 deletion velox/exec/tests/TaskTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "velox/exec/PlanNodeStats.h"
#include "velox/exec/Values.h"
#include "velox/exec/tests/utils/AssertQueryBuilder.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/HiveConnectorTestBase.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
#include "velox/exec/tests/utils/QueryAssertions.h"
Expand Down
16 changes: 0 additions & 16 deletions velox/exec/tests/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,6 @@ add_library(velox_temp_path TempFilePath.cpp TempDirectoryPath.cpp)
target_link_libraries(
velox_temp_path velox_exception)

add_library(velox_cursor Cursor.cpp)
target_link_libraries(
velox_cursor
velox_core
velox_exception
velox_expression
velox_dwio_common
velox_dwio_dwrf_reader
velox_dwio_dwrf_writer
velox_type_fbhive
velox_hive_connector
velox_tpch_connector
velox_presto_serializer
velox_functions_prestosql
velox_aggregates)

add_library(
velox_exec_test_lib
AssertQueryBuilder.cpp
Expand Down
2 changes: 1 addition & 1 deletion velox/exec/tests/utils/QueryAssertions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "duckdb/common/types.hpp" // @manual
#include "velox/duckdb/conversion/DuckConversion.h"
#include "velox/exec/tests/utils/ArbitratorTestUtil.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/QueryAssertions.h"
#include "velox/functions/prestosql/types/TimestampWithTimeZoneType.h"
#include "velox/vector/VectorTypeUtils.h"
Expand Down
2 changes: 1 addition & 1 deletion velox/exec/tests/utils/QueryAssertions.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "velox/common/testutil/TestValue.h"
#include "velox/core/PlanNode.h"
#include "velox/exec/Operator.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/vector/ComplexVector.h"

#include <duckdb.hpp> // @manual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <folly/init/Init.h>
#include <string>

#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/HiveConnectorTestBase.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
#include "velox/vector/fuzzer/VectorFuzzer.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <folly/init/Init.h>
#include <string>

#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/HiveConnectorTestBase.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
#include "velox/vector/fuzzer/VectorFuzzer.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <string>

#include "velox/exec/PlanNodeStats.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/exec/tests/utils/HiveConnectorTestBase.h"
#include "velox/exec/tests/utils/PlanBuilder.h"
#include "velox/vector/fuzzer/VectorFuzzer.h"
Expand Down
2 changes: 1 addition & 1 deletion velox/runner/LocalRunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "velox/connectors/Connector.h"
#include "velox/exec/Exchange.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/runner/LocalSchema.h"
#include "velox/runner/MultiFragmentPlan.h"
#include "velox/runner/Runner.h"
Expand Down
2 changes: 1 addition & 1 deletion velox/runner/Runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "velox/connectors/Connector.h"
#include "velox/exec/Exchange.h"
#include "velox/exec/tests/utils/Cursor.h"
#include "velox/exec/Cursor.h"
#include "velox/runner/LocalSchema.h"
#include "velox/runner/MultiFragmentPlan.h"

Expand Down

0 comments on commit 010b345

Please sign in to comment.