-
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 all 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 | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -29,9 +29,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED True) | |||||||||||||||||||||||||||||||||||||||||||||||
| message("Appending CMAKE_CXX_FLAGS with ${SCRIPT_CXX_FLAGS}") | ||||||||||||||||||||||||||||||||||||||||||||||||
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SCRIPT_CXX_FLAGS}") | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| # Known warnings that are benign can be disabled. | ||||||||||||||||||||||||||||||||||||||||||||||||
| # Known warnings that are benign can be disabled: | ||||||||||||||||||||||||||||||||||||||||||||||||
| # - `restrict` since it triggers a bug in gcc 12. See | ||||||||||||||||||||||||||||||||||||||||||||||||
| # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105651 | ||||||||||||||||||||||||||||||||||||||||||||||||
| set(DISABLED_WARNINGS | ||||||||||||||||||||||||||||||||||||||||||||||||
| "-Wno-nullability-completeness -Wno-deprecated-declarations") | ||||||||||||||||||||||||||||||||||||||||||||||||
| "-Wno-nullability-completeness \ | ||||||||||||||||||||||||||||||||||||||||||||||||
| -Wno-deprecated-declarations \ | ||||||||||||||||||||||||||||||||||||||||||||||||
| -Wno-restrict") | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+32
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. 🛠️ Refactor suggestion Gate
- -Wno-deprecated-declarations \
- -Wno-restrict")
+ -Wno-deprecated-declarations")
+
+# Suppress -Wrestrict only for the GCC 12 series (see
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105651). Other
+# compilers/versions still benefit from the diagnostic.
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
+ AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12
+ AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13)
+ list(APPEND DISABLED_WARNINGS "-Wno-restrict")
+endif()This keeps the workaround while preserving the warning where it is still valuable. 📝 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 |
|---|---|---|
| @@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify the necessity of suppressing the -Wrestrict warning.
The addition of
-Wno-restrictto the disabled warnings list suggests that the new CLP connector code triggers this warning. Please verify that this warning suppression is necessary and doesn't hide important issues.🏁 Script executed:
Length of output: 304
Remove unnecessary
-Wno-restrictsuppressionNo usage patterns (e.g.
strcpy,memcpy, or pointer qualifiers likerestrict) were found in the CLP connector code that would trigger a-Wrestrictwarning. To avoid hiding potential issues, please remove the-Wno-restrictentry.• File to update: presto-native-execution/CMakeLists.txt (around lines 34–36)
• Suggested diff:
📝 Committable suggestion
🤖 Prompt for AI Agents