Skip to content

Commit

Permalink
More open source build fixes (#32)
Browse files Browse the repository at this point in the history
Summary:
Adding missing files, fixing last compilation nit exposed by clang 16, and disabling compilation of test which currently brings too many velox dependencies.

Pull Request resolved: #32

Reviewed By: helfman

Differential Revision: D56453875

Pulled By: pedroerp

fbshipit-source-id: 88cf902a897cf35cb0c48f589e54c08328c8e799
  • Loading branch information
pedroerp authored and facebook-github-bot committed Apr 23, 2024
1 parent 66ae255 commit bd98b28
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dwio/nimble/tablet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ target_include_directories(nimble_footer_fb
INTERFACE ${FLATBUFFERS_INCLUDE_DIR})
add_dependencies(nimble_footer_fb nimble_footer_schema_fb)

add_library(nimble_tablet Compression.cpp StreamInput.cpp Tablet.cpp)
add_library(nimble_tablet Compression.cpp Tablet.cpp)

target_link_libraries(nimble_tablet nimble_footer_fb Folly::folly)
6 changes: 3 additions & 3 deletions dwio/nimble/velox/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ add_library(nimble_velox_serializer Serializer.cpp)
target_link_libraries(nimble_velox_serializer nimble_common
nimble_velox_schema_builder velox_vector)

add_library(nimble_velox_reader StreamInputDecoder.cpp StreamLabels.cpp
VeloxReader.cpp)
add_library(nimble_velox_reader ChunkedStream.cpp ChunkedStreamDecoder.cpp
StreamLabels.cpp VeloxReader.cpp)
target_link_libraries(
nimble_velox_reader
nimble_velox_schema
Expand All @@ -105,6 +105,6 @@ target_link_libraries(

add_library(
nimble_velox_writer EncodingLayoutTree.cpp FlushPolicy.cpp VeloxWriter.cpp
VeloxWriterDefaultMetadataOSS.cpp)
ChunkedStreamWriter.cpp VeloxWriterDefaultMetadataOSS.cpp)
target_link_libraries(nimble_velox_writer nimble_encodings nimble_common
nimble_velox_metadata_fb Folly::folly)
4 changes: 3 additions & 1 deletion dwio/nimble/velox/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ add_executable(
SerializationTests.cpp
TypeTests.cpp
VeloxReaderTests.cpp
VeloxWriterTests.cpp)
# TODO: Disabled until MemoryReclaimer is decouple from velox_exec in Velox.
# VeloxWriterTests.cpp
)
add_test(nimble_velox_tests nimble_velox_tests)

target_link_libraries(
Expand Down
2 changes: 1 addition & 1 deletion dwio/nimble/velox/tests/VeloxReaderTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ class VeloxMapGenerator {
{
.vectorSize = static_cast<size_t>(childSize),
.nullRatio = 0.1,
.dictionaryHasNulls = config_.hasNulls,
.stringLength = 20,
.stringVariableLength = true,
.containerLength = 5,
.dictionaryHasNulls = config_.hasNulls,
.containerVariableLength = true,
},
leafPool_,
Expand Down

0 comments on commit bd98b28

Please sign in to comment.