-
Notifications
You must be signed in to change notification settings - Fork 625
[FLINK] Support ORC filesystem sink format #12327
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
Open
zhanglistar
wants to merge
6
commits into
apache:main
Choose a base branch
from
zhanglistar:codex/flink-orc-sink-format
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0a83c1f
Rebase onto upstream/main: ORC sink, finishTask in endInput, close tests
zhanglistar 11bca73
Fix q10 ORC partition commit trigger
zhanglistar 649d55b
Fix Flink watermark status reactivation
zhanglistar 6d53e12
[FLINK] Fix bounded stateful task cleanup
zhanglistar 51c7f24
Thread.sleep(2000) is applied to every non-Kafka Nexmark query.
zhanglistar f8c51e7
[FLINK] Verify q10 ORC sink output
zhanglistar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,16 @@ | ||
| diff --git a/src/main/cpp/CMakeLists.txt b/src/main/cpp/CMakeLists.txt | ||
| index 9ed0551..5ded913 100644 | ||
| --- a/src/main/cpp/CMakeLists.txt | ||
| +++ b/src/main/cpp/CMakeLists.txt | ||
| @@ -82,7 +82,7 @@ else() | ||
| GIT_REPOSITORY | ||
| ${VELOX_SOURCE_URL} | ||
| GIT_TAG | ||
| - c9efdf308a94ea1cb846e2440aeb975572497d87) | ||
| + bfa91ab98d6b53fccf2c862cdc926832835db35c) | ||
| endif() | ||
| if(TARGET gflags::gflags_shared) | ||
| get_target_property(GFLAGS_SHARED_LIBRARY gflags::gflags_shared | ||
| diff --git a/src/main/cpp/main/CMakeLists.txt b/src/main/cpp/main/CMakeLists.txt | ||
| index ada06f8..7ed80bb 100644 | ||
| --- a/src/main/cpp/main/CMakeLists.txt | ||
|
|
@@ -15,3 +28,31 @@ index ada06f8..7ed80bb 100644 | |
| message(\"Found all shared 3rd dependencies of velox4j: \${3rd_deps}\") | ||
| foreach(dep IN LISTS 3rd_deps) | ||
| get_filename_component(link_name \${dep} NAME) | ||
| diff --git a/src/main/cpp/main/velox4j/query/StatefulQueryExecutor.cc b/src/main/cpp/main/velox4j/query/StatefulQueryExecutor.cc | ||
| index 2357cf2..159e3d6 100644 | ||
| --- a/src/main/cpp/main/velox4j/query/StatefulQueryExecutor.cc | ||
| +++ b/src/main/cpp/main/velox4j/query/StatefulQueryExecutor.cc | ||
|
Contributor
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. This patch should be applied to velox4j |
||
| @@ -81,15 +81,8 @@ StatefulSerialTask::StatefulSerialTask( | ||
| } | ||
|
|
||
| StatefulSerialTask::~StatefulSerialTask() { | ||
| - if (task_ != nullptr && task_->isRunning()) { | ||
| - // TODO: add a method to finish the task and set state. | ||
| - task_->finish(); | ||
| - // FIXME: Calling .wait() may take no effect in single thread execution | ||
| - // mode. | ||
| - task_->requestCancel().wait(); | ||
| - } | ||
| if (task_ != nullptr) { | ||
| - task_->setNativeCallbackBridge(nullptr); | ||
| + task_->close(); | ||
| } | ||
| task_.reset(); | ||
| } | ||
| diff --git a/src/main/cpp/velox-ref.txt b/src/main/cpp/velox-ref.txt | ||
| index c24a828..47d494e 100644 | ||
| --- a/src/main/cpp/velox-ref.txt | ||
| +++ b/src/main/cpp/velox-ref.txt | ||
| @@ -1 +1 @@ | ||
| -c9efdf308a94ea1cb846e2440aeb975572497d87 | ||
| +bfa91ab98d6b53fccf2c862cdc926832835db35c | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,7 +41,6 @@ | |
| import org.apache.flink.FlinkVersion; | ||
| import org.apache.flink.api.dag.Transformation; | ||
| import org.apache.flink.configuration.ReadableConfig; | ||
| import org.apache.flink.streaming.api.operators.StreamOperator; | ||
| import org.apache.flink.streaming.api.operators.TwoInputStreamOperator; | ||
| import org.apache.flink.streaming.api.transformations.TwoInputTransformation; | ||
| import org.apache.flink.table.data.RowData; | ||
|
|
@@ -325,30 +324,15 @@ protected Transformation<RowData> translateToPlanInternal( | |
| } | ||
|
|
||
| final RowType returnType = (RowType) getOutputType(); | ||
| final TwoInputTransformation<RowData, RowData, RowData> transform; | ||
| if (operator instanceof GlutenTwoInputOperator) { | ||
| transform = | ||
| ExecNodeUtil.createTwoInputTransformation( | ||
| leftTransform, | ||
| rightTransform, | ||
| createTransformationMeta(JOIN_TRANSFORMATION, config), | ||
| new GlutenTwoInputOperatorFactory<RowData, RowData, RowData>( | ||
| (StreamOperator<RowData>) operator), | ||
| InternalTypeInfo.of(returnType), | ||
| leftTransform.getParallelism(), | ||
| 0L, | ||
| false); | ||
| } else { | ||
| transform = | ||
| ExecNodeUtil.createTwoInputTransformation( | ||
| leftTransform, | ||
| rightTransform, | ||
| createTransformationMeta(JOIN_TRANSFORMATION, config), | ||
| operator, | ||
| InternalTypeInfo.of(returnType), | ||
| leftTransform.getParallelism(), | ||
| false); | ||
| } | ||
| final TwoInputTransformation<RowData, RowData, RowData> transform = | ||
|
Contributor
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. If |
||
| ExecNodeUtil.createTwoInputTransformation( | ||
| leftTransform, | ||
| rightTransform, | ||
| createTransformationMeta(JOIN_TRANSFORMATION, config), | ||
| new GlutenTwoInputOperatorFactory<>(operator), | ||
|
|
||
| InternalTypeInfo.of(returnType), | ||
| leftTransform.getParallelism(), | ||
| 0L); | ||
|
|
||
| // set KeyType and Selector for state | ||
| RowDataKeySelector leftSelect = | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.