-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Remove foreign handles from materialized view refresh SPI #26454
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 all 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 |
|---|---|---|
|
|
@@ -622,32 +622,18 @@ public CompletableFuture<?> refreshMaterializedView(ConnectorSession session, Sc | |
| } | ||
|
|
||
| @Override | ||
| public ConnectorInsertTableHandle beginRefreshMaterializedView(ConnectorSession session, ConnectorTableHandle tableHandle, List<ConnectorTableHandle> sourceTableHandles, RetryMode retryMode, RefreshType refreshType) | ||
| public ConnectorInsertTableHandle beginRefreshMaterializedView(ConnectorSession session, ConnectorTableHandle tableHandle, List<ConnectorTableHandle> sourceTableHandles, boolean hasForeignSourceTables, RetryMode retryMode, RefreshType refreshType) | ||
| { | ||
| try (ThreadContextClassLoader _ = new ThreadContextClassLoader(classLoader)) { | ||
| return delegate.beginRefreshMaterializedView(session, tableHandle, sourceTableHandles, retryMode, refreshType); | ||
| return delegate.beginRefreshMaterializedView(session, tableHandle, sourceTableHandles, hasForeignSourceTables, retryMode, refreshType); | ||
| } | ||
| } | ||
|
|
||
| @Override | ||
| public Optional<ConnectorOutputMetadata> finishRefreshMaterializedView( | ||
| ConnectorSession session, | ||
| ConnectorTableHandle tableHandle, | ||
| ConnectorInsertTableHandle insertHandle, | ||
| Collection<Slice> fragments, | ||
| Collection<ComputedStatistics> computedStatistics, | ||
| List<ConnectorTableHandle> sourceTableHandles, | ||
| List<String> sourceTableFunctions) | ||
| { | ||
| try (ThreadContextClassLoader _ = new ThreadContextClassLoader(classLoader)) { | ||
| return delegate.finishRefreshMaterializedView( | ||
| session, | ||
| tableHandle, | ||
| insertHandle, | ||
| fragments, | ||
| computedStatistics, | ||
| sourceTableHandles, | ||
| sourceTableFunctions); | ||
| public Optional<ConnectorOutputMetadata> finishRefreshMaterializedView(ConnectorSession session, ConnectorTableHandle tableHandle, ConnectorInsertTableHandle insertHandle, Collection<Slice> fragments, Collection<ComputedStatistics> computedStatistics, List<ConnectorTableHandle> sourceTableHandles, boolean hasForeignSourceTables, boolean hasSourceTableFunctions) | ||
|
Member
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'd leave this chopped down as there are so many args.
Member
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. We don't do that in any of these forwarding classes since the parameter names aren't important to read |
||
| { | ||
| try (ThreadContextClassLoader _ = new ThreadContextClassLoader(classLoader)) { | ||
| return delegate.finishRefreshMaterializedView(session, tableHandle, insertHandle, fragments, computedStatistics, sourceTableHandles, hasForeignSourceTables, hasSourceTableFunctions); | ||
electrum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
|
|
||
|
|
||
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.
Consider combining hasForeighSourceTable and RefreshType.