-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add getCompletedPositions to ConnectorPageSource #8524
Conversation
core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorPageSource.java
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/operator/TableScanWorkProcessorOperator.java
Show resolved
Hide resolved
@@ -150,6 +150,21 @@ public void testCustomMetricsScanOnly() | |||
.getMetrics(); | |||
} | |||
|
|||
@Test(timeOut = 30_000) | |||
public void testPhysicalInputPositions() |
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.
Could you add similar test for ORC in Hive connector?
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.
that's tricky to test, requires hive3 setup for acid and assertions on operator stats outside of memory connector are quite flaky
lgtm % @martint comment. I think we should either have explicit method for completed positions OR we should move other methods (like completed bytes) to metrics for consistency. However, I think we can start with former |
This allows connectors to report input rows processed by ConnectorPageSource rather than relying solely on the positions count of the page returned from getNextPage
8e6e2d5
to
b506f0a
Compare
I'm avoiding use of |
This allows connectors to report input rows processed
by ConnectorPageSource rather than relying solely on
the positions count of the page returned from getNextPage