Repository navigation
fix: Update native protocol code updates and apply format fixes missed in previous PRs. #43
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
Changes from 2 commits
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,8 @@ 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: | ||
| # - `restrict` since it triggers a bug in gcc 12. See | ||
| # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105651 | ||
| # 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 \ | ||
|
|
@@ -69,9 +68,10 @@ option(PRESTO_ENABLE_JWT "Enable JWT (JSON Web Token) authentication" OFF) | |
|
|
||
| option(PRESTO_ENABLE_ARROW_FLIGHT_CONNECTOR "Enable Arrow Flight connector" OFF) | ||
|
|
||
| # Set all Velox options below | ||
| # Make sure that if we include folly headers or other dependency headers | ||
| # that include folly headers we turn off the coroutines and turn on int128. | ||
| # Set all Velox options below. | ||
|
|
||
| # Make sure that if we include folly headers or other dependency headers that | ||
| # include folly headers we turn off the coroutines and turn on int128. | ||
|
Comment on lines
-72
to
+76
Author
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. I think the orignal comments (in prestodb master branch) are not formatted well so the clang-format is trying to fix this issue. I changed it a bit according to this line: https://github.com/y-scope/presto/pull/43/files#diff-f4770996c945761a121b4351ae31adecae46b00a0767c8c4cb04112731984795R45 |
||
| add_compile_definitions(FOLLY_HAVE_INT128_T=1 FOLLY_CFG_NO_COROUTINES) | ||
|
|
||
| if(PRESTO_ENABLE_S3) | ||
|
|
@@ -199,7 +199,8 @@ find_package(wangle CONFIG) | |
| find_package(FBThrift) | ||
| include_directories(SYSTEM ${FBTHRIFT_INCLUDE_DIR}) | ||
|
|
||
| set(PROXYGEN_LIBRARIES ${PROXYGEN_HTTP_SERVER} ${PROXYGEN} ${WANGLE} ${FIZZ} ${MVFST_EXCEPTION}) | ||
| set(PROXYGEN_LIBRARIES ${PROXYGEN_HTTP_SERVER} ${PROXYGEN} ${WANGLE} ${FIZZ} | ||
| ${MVFST_EXCEPTION}) | ||
| find_path(PROXYGEN_DIR NAMES include/proxygen) | ||
| set(PROXYGEN_INCLUDE_DIR "${PROXYGEN_DIR}/include/proxygen") | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -111,10 +111,10 @@ set_property(TARGET presto_server_lib PROPERTY JOB_POOL_LINK | |||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| add_executable(presto_server PrestoMain.cpp) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| # velox_tpch_connector is an OBJECT target in Velox and so needs to be linked | ||||||||||||||||||||||||||||||
| # to the executable or use TARGET_OBJECT linkage for the presto_server_lib target. | ||||||||||||||||||||||||||||||
| # However, we also would need to add its dependencies (tpch_gen etc). | ||||||||||||||||||||||||||||||
| # TODO change the target in Velox to a library target then we can move this to the | ||||||||||||||||||||||||||||||
| # velox_tpch_connector is an OBJECT target in Velox and so needs to be linked to | ||||||||||||||||||||||||||||||
| # the executable or use TARGET_OBJECT linkage for the presto_server_lib target. | ||||||||||||||||||||||||||||||
| # However, we also would need to add its dependencies (tpch_gen etc). TODO | ||||||||||||||||||||||||||||||
| # change the target in Velox to a library target then we can move this to the | ||||||||||||||||||||||||||||||
|
anlowee marked this conversation as resolved.
Resolved
|
||||||||||||||||||||||||||||||
| # presto_server_lib. | ||||||||||||||||||||||||||||||
|
Comment on lines
+114
to
120
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. 🧹 Nitpick (assertive) Remove stray duplicate comment line. Line 120 repeats the fragment “presto_server_lib.” that is already covered in the previous sentence and adds no value. Trimming it keeps the comment block tidy. -# presto_server_lib.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
| target_link_libraries(presto_server presto_server_lib velox_tpch_connector) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.