-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Add Prestissimo support for the CLP connector and update to the latest y-scope/velox commit. #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Prestissimo support for the CLP connector and update to the latest y-scope/velox commit. #34
Changes from 10 commits
4f8c525
754026b
af78eb3
7f45c1b
d2a5fd2
f118e47
cfd3ad1
50563ee
5ff4aa8
35dd6ad
46155a7
ca813fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -31,7 +31,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SCRIPT_CXX_FLAGS}") | |||||||||||
|
|
||||||||||||
| # Known warnings that are benign can be disabled. | ||||||||||||
| set(DISABLED_WARNINGS | ||||||||||||
| "-Wno-nullability-completeness -Wno-deprecated-declarations") | ||||||||||||
| "-Wno-nullability-completeness \ | ||||||||||||
| -Wno-deprecated-declarations \ | ||||||||||||
| -Wno-restrict") | ||||||||||||
|
Comment on lines
+36
to
+38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify the necessity of suppressing the -Wrestrict warning. The addition of 🏁 Script executed: #!/bin/bash
# Description: Check if the CLP connector code triggers -Wrestrict warnings
# Expected: Find instances where this warning would be triggered
# Search for patterns that commonly trigger -Wrestrict warnings in CLP-related files
echo "Searching for potential -Wrestrict triggers in CLP connector code..."
rg -A 3 -B 3 "strcpy|strncpy|sprintf|memcpy|memmove" --type cpp --glob "*clp*" || true
rg -A 3 -B 3 "restrict|__restrict" --type cpp --glob "*clp*" || trueLength of output: 304 Remove unnecessary No usage patterns (e.g. • File to update: presto-native-execution/CMakeLists.txt (around lines 34–36) - "-Wno-nullability-completeness \
- -Wno-deprecated-declarations \
- -Wno-restrict")
+ "-Wno-nullability-completeness \
+ -Wno-deprecated-declarations")📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
|
|
||||||||||||
| # Important warnings that must be explicitly enabled. | ||||||||||||
| set(ENABLE_WARNINGS "-Wreorder") | ||||||||||||
|
|
||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ if(PRESTO_ENABLE_ARROW_FLIGHT_CONNECTOR) | |
| endif() | ||
|
|
||
| target_link_libraries(presto_connectors presto_velox_expr_conversion | ||
| velox_type_fbhive) | ||
| velox_type_fbhive velox_clp_connector) | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,7 @@ target_link_libraries( | |
| $<TARGET_OBJECTS:presto_types> | ||
| velox_hive_connector | ||
| velox_tpch_connector | ||
| velox_clp_connector | ||
anlowee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| velox_presto_serializer | ||
| velox_functions_prestosql | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Same optional-build issue for test target
🤖 Prompt for AI Agents |
||
| velox_aggregates | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ target_link_libraries( | |
| velox_dwio_orc_reader | ||
| velox_hive_connector | ||
| velox_tpch_connector | ||
| velox_clp_connector | ||
anlowee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| velox_exec | ||
| velox_dwio_common_exception | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Guard CLP linkage in Add a feature flag guard around 🤖 Prompt for AI Agents |
||
| presto_type_converter | ||
|
|
@@ -64,6 +65,7 @@ target_link_libraries( | |
| velox_functions_lib | ||
| velox_hive_connector | ||
| velox_tpch_connector | ||
| velox_clp_connector | ||
anlowee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| velox_hive_partition_function | ||
| velox_presto_serializer | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Guard CLP linkage in Same optional-build concern as above. 🤖 Prompt for AI Agents |
||
| velox_serialization | ||
|
|
@@ -96,6 +98,7 @@ target_link_libraries( | |
| velox_dwio_common | ||
| velox_hive_connector | ||
| velox_tpch_connector | ||
| velox_clp_connector | ||
anlowee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| GTest::gtest | ||
| GTest::gtest_main) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Guard CLP linkage in Mirror the conditional linkage pattern so builds that exclude CLP stay healthy. 🤖 Prompt for AI Agents |
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,8 @@ TEST_F(PrestoToVeloxConnectorTest, registerVariousConnectors) { | |
| "iceberg", std::make_unique<IcebergPrestoToVeloxConnector>("iceberg"))); | ||
| connectorList.emplace_back( | ||
| std::pair("tpch", std::make_unique<HivePrestoToVeloxConnector>("tpch"))); | ||
| connectorList.emplace_back( | ||
| std::pair("clp", std::make_unique<ClpPrestoToVeloxConnector>("clp"))); | ||
|
||
|
|
||
| for (auto& [connectorName, connector] : connectorList) { | ||
| registerPrestoToVeloxConnector(std::move(connector)); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| /* | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| #pragma once | ||
| #include "presto_cpp/presto_protocol/connector/clp/presto_protocol_clp.h" | ||
| #include "presto_cpp/presto_protocol/core/ConnectorProtocol.h" | ||
|
|
||
| namespace facebook::presto::protocol::clp { | ||
| using ClpConnectorProtocol = ConnectorProtocolTemplate< | ||
| ClpTableHandle, | ||
| ClpTableLayoutHandle, | ||
| ClpColumnHandle, | ||
| NotImplemented, | ||
| NotImplemented, | ||
| ClpSplit, | ||
| NotImplemented, | ||
| ClpTransactionHandle, | ||
| NotImplemented>; | ||
| } // namespace facebook::presto::protocol::clp |
Uh oh!
There was an error while loading. Please reload this page.