File tree Expand file tree Collapse file tree 5 files changed +21
-28
lines changed Expand file tree Collapse file tree 5 files changed +21
-28
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ if(ANTLR_EXECUTABLE AND Java_JAVA_EXECUTABLE)
156156 OUTPUT ${ANTLR_${Name} _OUTPUTS}
157157 COMMAND
158158 ${Java_JAVA_EXECUTABLE} -jar ${ANTLR_EXECUTABLE} ${InputFile} -o
159- ${ANTLR_${Name} _ORIGINAL_OUTPUT_DIR } -no -listener -Dlanguage=Cpp
159+ ${ANTLR_${Name} _OUTPUT_DIR } -no -listener -Dlanguage=Cpp
160160 ${ANTLR_TARGET_COMPILE_FLAGS}
161161 DEPENDS ${InputFile} ${ANTLR_TARGET_DEPENDS}
162162 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Original file line number Diff line number Diff line change @@ -21,21 +21,8 @@ velox_add_library(
2121 ClpDataSource.cpp
2222 ClpTableHandle.cpp)
2323
24- velox_link_libraries(
25- velox_clp_connector
26- PRIVATE
27- clp-s-search
28- velox_connector
29- simdjson::simdjson
30- msgpack-cxx
31- spdlog::spdlog
32- absl::flat_hash_map
33- Boost::filesystem
34- Boost::headers)
35-
36- velox_include_directories(
37- velox_clp_connector PUBLIC ${clp_SOURCE_DIR} /components/core/submodules
38- ${CLP_SRC_DIR} )
24+ velox_link_libraries(velox_clp_connector PRIVATE clp-s-search velox_connector
25+ simdjson::simdjson)
3926
4027target_compile_features (velox_clp_connector PRIVATE cxx_std_20)
4128
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17+ #include " clp_s/TimestampPattern.hpp"
18+
1719#include " velox/connectors/clp/ClpConnector.h"
1820#include " velox/connectors/clp/ClpDataSource.h"
1921
@@ -46,4 +48,14 @@ std::unique_ptr<DataSink> ClpConnector::createDataSink(
4648 VELOX_NYI (" createDataSink for ClpConnector is not implemented!" );
4749}
4850
51+ ClpConnectorFactory::ClpConnectorFactory ()
52+ : ConnectorFactory(kClpConnectorName ) {
53+ clp_s::TimestampPattern::init ();
54+ }
55+
56+ ClpConnectorFactory::ClpConnectorFactory (const char * connectorName)
57+ : ConnectorFactory(connectorName) {
58+ clp_s::TimestampPattern::init ();
59+ }
60+
4961} // namespace facebook::velox::connector::clp
Original file line number Diff line number Diff line change 1616
1717#pragma once
1818
19- #include " clp_s/TimestampPattern.hpp"
2019#include " velox/connectors/Connector.h"
2120#include " velox/connectors/clp/ClpConfig.h"
2221
@@ -62,11 +61,8 @@ class ClpConnectorFactory : public ConnectorFactory {
6261 public:
6362 static constexpr const char * kClpConnectorName = " clp" ;
6463
65- ClpConnectorFactory () : ConnectorFactory(kClpConnectorName ) {}
66- explicit ClpConnectorFactory (const char * connectorName)
67- : ConnectorFactory(connectorName) {
68- clp_s::TimestampPattern::init ();
69- }
64+ ClpConnectorFactory ();
65+ explicit ClpConnectorFactory (const char * connectorName);
7066
7167 std::shared_ptr<Connector> newConnector (
7268 const std::string& id,
Original file line number Diff line number Diff line change @@ -110,22 +110,20 @@ velox_include_directories(
110110
111111velox_link_libraries(
112112 clp-s-search
113+ PUBLIC msgpack-cxx spdlog::spdlog
113114 PRIVATE
115+ absl::flat_hash_map
114116 antlr4_static
115117 Boost::filesystem
116118 Boost::iostreams
117119 Boost::program_options
118120 Boost::url
119- absl::flat_hash_map
120121 clp::string_utils
121122 ${CURL_LIBRARIES}
122123 glog::glog
123124 OpenSSL::Crypto
124125 simdjson::simdjson
125- msgpack-cxx
126+ velox_vector
126127 ystdlib::containers
127128 ystdlib::error_handling
128- zstd::zstd
129- spdlog::spdlog
130- velox_vector
131- velox_external_date)
129+ zstd::zstd)
You can’t perform that action at this time.
0 commit comments