-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Pushdown cast to source local #26655
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
base: master
Are you sure you want to change the base?
Conversation
Reviewer's GuideThis PR introduces a new native execution session property to push down integer upcasts to the scan operator, wiring it through both the Java and C++ layers, updating connector interfaces and tests, and also tweaks build configuration defaults for spatial support. ER diagram for session property metadata changeserDiagram
SESSION_PROPERTY {
string name
string description
string type
bool defaultValue
string configKey
string value
}
SESSION_PROPERTY ||--o| NATIVE_PUSHDOWN_INTEGER_UPCASTS_TO_SCAN : contains
Class diagram for new and updated session property handlingclassDiagram
class NativeWorkerSessionPropertyProvider {
+NATIVE_PUSHDOWN_INTEGER_UPCASTS_TO_SCAN : String
...
}
class SessionProperties {
+kPushdownIntegerUpcastsToScan : const char*
+addSessionProperty(...)
...
}
NativeWorkerSessionPropertyProvider --> SessionProperties : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
| option(PRESTO_ENABLE_ARROW_FLIGHT_CONNECTOR "Enable Arrow Flight connector" OFF) | ||
|
|
||
| option(PRESTO_ENABLE_SPATIAL "Enable spatial support" ON) | ||
| option(PRESTO_ENABLE_SPATIAL "Enable spatial support" OFF) |
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.
This change should be reverted.
| 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}") | ||
| #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -g -O0 ") |
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.
Remove these debug messages.
| cmake_policy(SET CMP0104 NEW) | ||
| endif() | ||
|
|
||
| set(PRESTO_ENABLE_SPATIAL OFF) |
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.
Same here. This is switching off SPATIAL needed for Bolt.
| CACHE BOOL | ||
| "Enable Velox Geometry (aka spatial) support" | ||
| ) | ||
| message(STATUS "PRESTO_ENABLE_SPATIAL: ${PRESTO_ENABLE_SPATIAL}") |
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.
Remove these debug messages.
presto-native-execution/Makefile
Outdated
| velox-submodule: #: Check out code for velox submodule | ||
| git submodule sync --recursive | ||
| git submodule update --init --recursive | ||
| # git submodule sync --recursive |
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.
Remove these changes.
ed39537 to
9287947
Compare
9287947 to
e650316
Compare
This commit adds a new native session property native_pushdown_integer_ upcasts_to_scan, which when set to true, would rewrite the local plan and push down integer upcasts to the source operaters.
e650316 to
fb32a04
Compare
|
Please include documentation for the new session property, likely in https://github.com/prestodb/presto/blob/master/presto-docs/src/main/sphinx/presto_cpp/properties-session.rst. |
Description
Motivation and Context
Impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.
If release note is NOT required, use: