Class DynamicFilteringJdbcSplitSource

java.lang.Object
io.trino.plugin.jdbc.DynamicFilteringJdbcSplitSource
All Implemented Interfaces:
ConnectorSplitSource, Closeable, AutoCloseable

public class DynamicFilteringJdbcSplitSource extends Object implements ConnectorSplitSource
Attaches dynamic filter to JdbcSplit after JdbcDynamicFilteringSplitManager has waited for the collection of dynamic filters. This allows JDBC based connectors to avoid waiting for dynamic filters again on the worker node in JdbcRecordSetProvider. The number of splits generated by JDBC based connectors are typically small, therefore attaching dynamic filter here does not add significant overhead. Waiting for dynamic filters in JdbcDynamicFilteringSplitManager is preferred over waiting for them on the worker node in JdbcRecordSetProvider to allow connectors to take advantage of dynamic filters during the splits generation phase.